BUG 26119

This commit is contained in:
aixianling
2021-12-31 10:28:36 +08:00
parent 41b4957440
commit f395c5afd0
2 changed files with 16 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
<template>
<div class="AppSpecialPeople">
<component
v-if="refresh"
:is="component"
@change="onChange"
:params="params">
@@ -19,7 +20,8 @@ export default {
data() {
return {
component: 'Detail',
params: {}
params: {},
refresh: true
}
},
@@ -32,6 +34,10 @@ export default {
},
onShow() {
document.title = "特殊人群"
this.refresh = false
this.$nextTick(() => {
this.refresh = true
})
}
},
}
@@ -41,6 +47,7 @@ export default {
uni-page-body {
height: 100%;
}
.AppSpecialPeople {
height: 100%;
}

View File

@@ -8,7 +8,7 @@
</div>
</div> -->
<div class="area-content">
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName" all>
<img src="./img/local-icon.png" alt="">
<span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
@@ -99,7 +99,6 @@ export default {
this.nodes.push(row)
this.getMonitors(row.nodeId, row.hasChild == 1 ? 0 : 1)
},
isCurrent(index) {
return index == Math.max(this.nodes?.length - 1, 0)
},
@@ -107,10 +106,9 @@ export default {
this.nodes.splice(index + 1)
this.getMonitors(node.nodeId)
},
getList() {
this.$http.post(`/app/appzyvideoequipment/getAreaEquipment?areaId=${this.areaId}`).then(res => {
if (res.code == 0) {
if (res?.data) {
this.list = res.data.list
this.count = res.data.count
this.onlineRate = (this.count.online / this.count.sum).toFixed(2)
@@ -171,15 +169,11 @@ export default {
option && this.Echart.setOption(option)
},
},
created() {
onShow() {
document.title = '视频监控'
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.getList()
// this.getMonitors()
},
onShow() {
document.title = '视频监控'
},
mounted() {
this.Echart = echarts.init(document.getElementById('echarts'))