Browse Source

supermap-延时

qinhouyu 2 years ago
parent
commit
f9e4313442
3 changed files with 7 additions and 1 deletions
  1. 3 1
      src/views/datacenter.vue
  2. 2 0
      src/views/forest.vue
  3. 2 0
      src/views/monitor.vue

+ 3 - 1
src/views/datacenter.vue

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

+ 2 - 0
src/views/forest.vue

@@ -466,6 +466,7 @@ export default {
   mounted() {
     // 初始化地图数据
     this.getSuperMapUrl();
+    setTimeout(() => {
     this.getBaseInfo()
     this.getTodayEvents(this.getCurrentDataStr())
     this.getDeptEventCount(this.getCurrentDataStr())
@@ -476,6 +477,7 @@ export default {
     this.getExposureStage(this.getCurrentDataStr())
     this.getSupermap(this.getCurrentDataStr())
     this.getMenuEventType()
+    }, 2000)
     /** ----------------------------------weosocket开始------------------------------------- */
     // this.initWebSocket()
     /** ----------------------------------weosocket结束------------------------------------- */

+ 2 - 0
src/views/monitor.vue

@@ -176,6 +176,7 @@
     mounted() {
       // 初始化地图数据
       this.getSuperMapUrl();
+      setTimeout(() => {
       this.selectKeyAreaList()
       this.bottomMenuList() //获取底部公共组件消息和任务
       this.getTreeselect()
@@ -185,6 +186,7 @@
       this.getMonitorDeviceAndDataLists()
       this.getDlblistBydeptIds()
       this.selectDeviceType(-1)
+      }, 2000)
     },
     data() {
       return {