Browse Source

监控中心云广播显示问题

wang_xy 2 years ago
parent
commit
98cbbea397
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/views/monitor.vue

+ 2 - 3
src/views/monitor.vue

@@ -206,13 +206,12 @@
     mounted() {
       // 初始化地图数据
       this.getSuperMapUrl();
-
+      this.deptId = Cookies.get("deptId");
       setTimeout(() => {
         this.selectKeyAreaList();
         this.getTreeselect();
-        this.deptId = Cookies.get("deptId");
-        this.getMonitorDeviceAndDataLists();
       }, 2000)
+      this.getMonitorDeviceAndDataLists();
       this.bottomMenuList(); //获取底部公共组件消息和任务
       // this.getSensorListByDeptId(-1)
       // this.getDlblistBydeptId(-1)