Jelajahi Sumber

弹窗添加查看摄像头

王通 1 tahun lalu
induk
melakukan
fb2b6a211e
2 mengubah file dengan 26 tambahan dan 3 penghapusan
  1. 26 2
      src/components/supermap-2.5d.vue
  2. 0 1
      src/views/forest.vue

+ 26 - 2
src/components/supermap-2.5d.vue

@@ -1,6 +1,7 @@
 <template>
   <div id="supermap3D" style="width: 100%; height: 100%;background: none;overflow-y: auto;">
     <div id="cesiumContainer" style="width: 100%; height: 100%;background: none;">
+      </div>
       <!--地图top 显示 开始-->
       <transition name='fade'>
         <div class="map-tit" v-show="mapshow">
@@ -10,7 +11,9 @@
           </div>
           <div class="map-txt" v-html="bindPopupHtml">
           </div>
-          <div id="super2" />
+          <el-button size="mini" type="primary" class="sj-icon-btn" @click="openTvwall()">
+            查看
+          </el-button>
         </div>
       </transition>
       <!--地图top 显示 结束-->
@@ -31,6 +34,9 @@
     name: 'supermap-2.5d',
     data() {
       return {
+        _click:null,
+        openZt: false,
+        _parameter:null,
         bindPopupHtml: null,
         mapshow: false,
         superMapRootUrl: null,
@@ -826,7 +832,13 @@
         });
       },
       openTvwall(){
-        this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
+        this.mapshow=false;
+        if(this.openZt){
+          this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
+        }else{
+          this.$emit(this._click,this._parameter);
+        }
+
       },
       /**
        * 地图落点
@@ -876,6 +888,9 @@
             if (html != undefined && html._value != null && html._value != '' && html != 'cgq') {
               that.bindPopupHtml = html
               that.mapshow = true
+              that.openZt=false
+              that._click = id._click;
+              that._parameter = id._parameter;
             } else if (html == 'cgq') {
               that.timer = setInterval(function() {
                 var color = "green";
@@ -1028,4 +1043,13 @@
     opacity: 0;
     transform: translateY(-10rem);
   }
+  .map-tit{
+    .sj-icon-btn{
+      display: block;
+      margin: 10px auto 15px auto;
+      padding: 0px 16px;
+      font-size: 10px;
+      height: 1.7rem;
+    }
+  }
 </style>

+ 0 - 1
src/views/forest.vue

@@ -491,7 +491,6 @@ export default {
       this.getSupermap(this.getCurrentDataStr())
       this.title = '四平市态势感知平台'
     }, 2000)
-    this.getBaseInfo()
 
     this.getMenuEventType()
     /** ----------------------------------weosocket开始------------------------------------- */