wang_xy vor 2 Jahren
Ursprung
Commit
6d9a478c81

+ 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"

+ 1 - 1
src/views/monitor.vue

@@ -702,7 +702,7 @@ export default {
           setTimeout(() => {
             that.$refs.supermap.clearM()
             that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
-          }, 5000)
+          }, 3000)
         }
       })
     },