王通 2 лет назад
Родитель
Сommit
9e2934dfb4
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/views/monitor.vue

+ 9 - 1
src/views/monitor.vue

@@ -206,6 +206,7 @@
       this.selectKeyAreaList()
       this.getTreeselect();
       this.bottomMenuList() //获取底部公共组件消息和任务
+      this.getMonitorDeviceAndDataLists()
       this.deptId = Cookies.get("deptId")
       // this.getSensorListByDeptId(-1)
       // this.getDlblistBydeptId(-1)
@@ -333,6 +334,13 @@
       //   }, 5000)
       // },
       /* 电视墙替换开始 */
+      //传感器2
+      getMonitorDeviceAndDataLists() {
+        let that = this
+        getMonitorDeviceAndDataList(this.deptId).then((res) => {
+          that.sensorNum = res.data.length
+        })
+      },
       showTVWall(channelCode, channelName) {
         let tvListJson = [{
           "switchTab": "2",
@@ -501,7 +509,7 @@
         getMonitorDeviceAndDataList(this.deptId).then((res) => {
           this.visuForestCloudCameraBOListSearch = []
           list = res.data
-          this.sensorNum = list.length
+          //this.sensorNum = list.length
           list.forEach(item => {
             let dat = {
               cameraName: item.deviceName,