BUG 26119
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user