JX.LI 2 年之前
父節點
當前提交
1b06b65ec9
共有 3 個文件被更改,包括 7 次插入1 次删除
  1. 2 0
      src/views/forest.vue
  2. 3 1
      src/views/monitor.vue
  3. 2 0
      src/views/resources.vue

+ 2 - 0
src/views/forest.vue

@@ -506,6 +506,7 @@ import {getUserProfile} from "@/api/system/user";
           // 初始化地图数据
           this.getSuperMapUrl();
       this.getBaseInfo()
+    setTimeout(() => {
       this.getTodayEvents(this.getCurrentDataStr())
       this.getDeptEventCount(this.getCurrentDataStr())
       this.getWeather(this.getCurrentDataStr())
@@ -516,6 +517,7 @@ import {getUserProfile} from "@/api/system/user";
       this.getSupermap(this.getCurrentDataStr())
       this.getMenuEventType()
       this.getResourcesCount();
+    }, 2000)
       /** ----------------------------------weosocket开始------------------------------------- */
       // this.initWebSocket()
       /** ----------------------------------weosocket结束------------------------------------- */

+ 3 - 1
src/views/monitor.vue

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

+ 2 - 0
src/views/resources.vue

@@ -142,8 +142,10 @@ export default {
   mounted() {
     // 初始化地图数据
     this.getSuperMapUrl();
+    setTimeout(() => {
     this.getResourcesCount();
     this.selectResources();
+    }, 2000)
     this.bottomMenuList(); //获取底部公共组件消息和任务
   },
   data() {