ct
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="AppSpecialPeople">
 | 
					  <div class="AppSpecialPeople">
 | 
				
			||||||
    <component
 | 
					    <component
 | 
				
			||||||
 | 
					        v-if="refresh"
 | 
				
			||||||
        :is="component"
 | 
					        :is="component"
 | 
				
			||||||
        @change="onChange"
 | 
					        @change="onChange"
 | 
				
			||||||
        :params="params">
 | 
					        :params="params">
 | 
				
			||||||
@@ -19,11 +20,12 @@ export default {
 | 
				
			|||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      component: 'Detail',
 | 
					      component: 'Detail',
 | 
				
			||||||
      params: {}
 | 
					      params: {},
 | 
				
			||||||
 | 
					      refresh: true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  components: { Detail, Add },
 | 
					  components: {Detail, Add},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    onChange(e) {
 | 
					    onChange(e) {
 | 
				
			||||||
@@ -32,16 +34,21 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    onShow() {
 | 
					    onShow() {
 | 
				
			||||||
      document.title = "特殊人群"
 | 
					      document.title = "特殊人群"
 | 
				
			||||||
 | 
					      this.refresh = false
 | 
				
			||||||
 | 
					      this.$nextTick(() => {
 | 
				
			||||||
 | 
					        this.refresh = true
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss" scoped>
 | 
					<style lang="scss" scoped>
 | 
				
			||||||
uni-page-body{
 | 
					uni-page-body {
 | 
				
			||||||
  height: 100%;
 | 
					  height: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.AppSpecialPeople{
 | 
					
 | 
				
			||||||
 | 
					.AppSpecialPeople {
 | 
				
			||||||
  height: 100%;
 | 
					  height: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div> -->
 | 
					      </div> -->
 | 
				
			||||||
      <div class="area-content">
 | 
					      <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="">
 | 
					          <img src="./img/local-icon.png" alt="">
 | 
				
			||||||
          <span class="label" v-if="areaName">{{ areaName }}</span>
 | 
					          <span class="label" v-if="areaName">{{ areaName }}</span>
 | 
				
			||||||
          <span v-else>请选择</span>
 | 
					          <span v-else>请选择</span>
 | 
				
			||||||
@@ -99,7 +99,6 @@ export default {
 | 
				
			|||||||
      this.nodes.push(row)
 | 
					      this.nodes.push(row)
 | 
				
			||||||
      this.getMonitors(row.nodeId, row.hasChild == 1 ? 0 : 1)
 | 
					      this.getMonitors(row.nodeId, row.hasChild == 1 ? 0 : 1)
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					 | 
				
			||||||
    isCurrent(index) {
 | 
					    isCurrent(index) {
 | 
				
			||||||
      return index == Math.max(this.nodes?.length - 1, 0)
 | 
					      return index == Math.max(this.nodes?.length - 1, 0)
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -107,10 +106,9 @@ export default {
 | 
				
			|||||||
      this.nodes.splice(index + 1)
 | 
					      this.nodes.splice(index + 1)
 | 
				
			||||||
      this.getMonitors(node.nodeId)
 | 
					      this.getMonitors(node.nodeId)
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					 | 
				
			||||||
    getList() {
 | 
					    getList() {
 | 
				
			||||||
      this.$http.post(`/app/appzyvideoequipment/getAreaEquipment?areaId=${this.areaId}`).then(res => {
 | 
					      this.$http.post(`/app/appzyvideoequipment/getAreaEquipment?areaId=${this.areaId}`).then(res => {
 | 
				
			||||||
        if (res.code == 0) {
 | 
					        if (res?.data) {
 | 
				
			||||||
          this.list = res.data.list
 | 
					          this.list = res.data.list
 | 
				
			||||||
          this.count = res.data.count
 | 
					          this.count = res.data.count
 | 
				
			||||||
          this.onlineRate = (this.count.online / this.count.sum).toFixed(2)
 | 
					          this.onlineRate = (this.count.online / this.count.sum).toFixed(2)
 | 
				
			||||||
@@ -171,15 +169,11 @@ export default {
 | 
				
			|||||||
      option && this.Echart.setOption(option)
 | 
					      option && this.Echart.setOption(option)
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  onShow() {
 | 
				
			||||||
 | 
					    document.title = '视频监控'
 | 
				
			||||||
    this.areaId = this.user.areaId
 | 
					    this.areaId = this.user.areaId
 | 
				
			||||||
    this.areaName = this.user.areaName
 | 
					    this.areaName = this.user.areaName
 | 
				
			||||||
    this.getList()
 | 
					    this.getList()
 | 
				
			||||||
    // this.getMonitors()
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  onShow() {
 | 
					 | 
				
			||||||
    document.title = '视频监控'
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  mounted() {
 | 
					  mounted() {
 | 
				
			||||||
    this.Echart = echarts.init(document.getElementById('echarts'))
 | 
					    this.Echart = echarts.init(document.getElementById('echarts'))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user