diff --git a/src/apps/AppBuilding/add.vue b/src/apps/AppBuilding/add.vue
index 8a3f8fc2..5c4b9adf 100644
--- a/src/apps/AppBuilding/add.vue
+++ b/src/apps/AppBuilding/add.vue
@@ -44,7 +44,7 @@
起租日期
- {{ houseInfo.startDate || '请选择' }}
+ {{ $dateFormat(houseInfo.startDate,'YYYY-MM-DD') || '请选择' }}
@@ -167,9 +167,6 @@ export default {
let {id} = this.$route.query
id && this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
if (res?.data) {
- if (res.data.startDate) {
- res.data.startDate = res.data.startDate.substring(0, 10)
- }
this.houseInfo = res.data
}
})
@@ -193,7 +190,7 @@ export default {
this.houseInfo[this.formName] = e[0].value
},
dateConfirm(e) {
- this.houseInfo.startDate = `${e.year}-${e.month}-${e.day}`
+ this.houseInfo.startDate = `${e.year}-${e.month}-${e.day} 00:00:00`
}
}
}
diff --git a/src/apps/AppBuilding/detail.vue b/src/apps/AppBuilding/detail.vue
index ceedb05e..ac4ea0e2 100644
--- a/src/apps/AppBuilding/detail.vue
+++ b/src/apps/AppBuilding/detail.vue
@@ -69,7 +69,7 @@
-
{{ houseInfo.startDate }}
+
{{ $dateFormat(houseInfo.startDate,'YYYY-MM-DD') }}
起租日期
@@ -228,10 +228,7 @@ export default {
getHouseDetail(id) {
this.houseId = id
this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
- if (res.code == 0) {
- if (res.data.startDate) {
- res.data.startDate = res.data.startDate.substring(0, 10)
- }
+ if (res?.data) {
this.houseInfo = res.data
this.show = true
}
diff --git a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue
index 831754fc..82ee640e 100644
--- a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue
+++ b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue
@@ -12,7 +12,7 @@
{{ areaName }}
请选择
-
+
@@ -24,15 +24,15 @@
-
{{count.online || 0}}
+
{{ count.online || 0 }}
在线
-
{{count.sum - count.online || 0}}
+
{{ count.sum - count.online || 0 }}
离线
-
{{onlineRate*100 || 0}}%
+
{{ onlineRate * 100 || 0 }}%
在线率
@@ -53,7 +53,7 @@

-
{{item.name}}
+
{{ item.name }}
@@ -63,7 +63,8 @@