wang_xy %!s(int64=2) %!d(string=hai) anos
pai
achega
9c20edb41e

+ 9 - 3
src/components/supermap-2.5d.vue

@@ -42,18 +42,24 @@ export default {
   },
   watch: {},
   created() {
-    // this.superMapRootUrl = Cookies.get('superMap.iServer');
+    this.superMapRootUrl = Cookies.get('superMap.iServer');
     //进入主页时就获取超图地址并存入cookie
-
+    if(this.superMapRootUrl != null && this.superMapRootUrl != '' && this.superMapRootUrl != undefined && this.superMapRootUrl != 'undefined'){
+      this.onload();
+    }else{
+      this.superMapInfo();
+    }
   },
   mounted() {
-    this.superMapInfo();
   },
   props: {},
   methods: {
     superMapInfo(){
       getConfigKey('superMap.iServer').then(response => {
         this.superMapRootUrl = response.msg;
+        Cookies.set('superMap.iServer', response.msg, {
+          expires: 300
+        })
         this.onload();
       })
     },

+ 1 - 1
src/views/eventdetailsdialog.vue

@@ -5,7 +5,7 @@
     <!--主体-->
     <div class="visual-body">
       <button @click="showEventDialog"
-              style="position: absolute; left:50%;top: 50vh; transform: translateX(-50%);">触发事件详情
+              style="position: absolute; left:50%;top: 50vh; transform: translateX(-50%);">
       </button>
       <!-- 弹层 -->
       <el-dialog title="事件详情" :visible.sync="eventDialog" customClass="customWidth" v-if="eventDialog"

+ 1 - 1
src/views/firespread.vue

@@ -5,7 +5,7 @@
     <!--主体-->
     <div class="visual-body">
       <button @click="showEventDialog"
-              style="position: absolute; left:50%;top: 50vh; transform: translateX(-50%);">触发事件详情
+              style="position: absolute; left:50%;top: 50vh; transform: translateX(-50%);">
       </button>
       <!-- 弹层 -->
       <el-dialog title="事件详情" :visible.sync="eventDialog" customClass="customWidth" v-if="eventDialog"

+ 0 - 1
src/views/monitor.vue

@@ -617,7 +617,6 @@ export default {
             this.sourceData.push(aa)
           }
         }
-debugger
         that.visuForestCloudCameraBOList = res.data.visuForestCloudCameraBOList
         that.visuForestCloudCameraBOListSearch = res.data.visuForestCloudCameraBOList
         if (res.data.visuForestCloudCameraBOList != null && res.data.visuForestCloudCameraBOList.length > 0) {