JX.LI 2 năm trước cách đây
mục cha
commit
d5d3608490
1 tập tin đã thay đổi với 7 bổ sung5 xóa
  1. 7 5
      src/views/monitor.vue

+ 7 - 5
src/views/monitor.vue

@@ -206,14 +206,14 @@
       this.selectKeyAreaList()
       this.getTreeselect();
       this.bottomMenuList() //获取底部公共组件消息和任务
-      this.getMonitorDeviceAndDataLists()
       this.deptId = Cookies.get("deptId")
+      this.getMonitorDeviceAndDataLists()
       // this.getSensorListByDeptId(-1)
       // this.getDlblistBydeptId(-1)
-      this.getMonitorDeviceAndDataList()
-      this.cgqTimer = setInterval(() => {
-        this.getMonitorDeviceAndDataList()
-      }, 5 * 60 * 1000)
+      // this.getMonitorDeviceAndDataList()
+      // this.cgqTimer = setInterval(() => {
+      //   this.getMonitorDeviceAndDataList()
+      // }, 5 * 60 * 1000)
       this.getDlblistBydeptIds(-1)
       this.selectDeviceType(-1)
     },
@@ -428,12 +428,14 @@
         this.onChuan = false
         this.localMark = 'la'
         this.placeholderMsg = "请输入大喇叭名称"
+        this.deptId = Cookies.get("deptId")
         clearInterval(this.cgqTimer)
         this.getDlblistBydeptId()
       },
       chuanClick() {
         this.localMark = 'chuan'
         this.placeholderMsg = "请输入传感器名称"
+        this.deptId = Cookies.get("deptId")
         this.getMonitorDeviceAndDataList()
         clearInterval(this.cgqTimer)
         this.cgqTimer = setInterval(() => {