浏览代码

更改气泡层点击打开视频操作方式

JX.LI 2 年之前
父节点
当前提交
df6c0f4a37
共有 1 个文件被更改,包括 14 次插入4 次删除
  1. 14 4
      src/components/supermap-2.5d.vue

+ 14 - 4
src/components/supermap-2.5d.vue

@@ -5,11 +5,14 @@
       <transition name='fade'>
         <div class="map-tit" v-show="mapshow">
           <div class="top-tit">
-            <i class="iconfont sj-icon-jkzx" @click="openTvwall()"></i>
+            <i class="iconfont sj-icon-jkzx"></i>
             <span><img src="../assets/images/close.svg" @click="mapshow=false" /></span>
           </div>
           <div class="map-txt" v-html="bindPopupHtml">
           </div>
+          <el-button size="mini" type="primary" class="sj-icon-btn" @click="openTvwall()" v-if="_click!=''">
+            查看
+          </el-button>
           <div id="super2" />
         </div>
       </transition>
@@ -194,6 +197,9 @@
             "Cun_yitong@SiPing#1",
           ],
         ],
+        vdivcesiumContainer: "",
+        _click: null,
+        _parameter: null,
       }
     },
     watch: {},
@@ -827,9 +833,11 @@
         });
       },
       openTvwall() {
-        if(this.openZt){
-          this.mapshow=false;
+        this.mapshow = false;
+        if (this.openZt) {
           this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
+        } else {
+          this.$emit(this._click, this._parameter);
         }
       },
       /**
@@ -878,6 +886,8 @@
               that.bindPopupHtml = html
               that.mapshow = true
               that.openZt = false
+              that._click = id._click;
+              that._parameter = id._parameter;
             } else {
               that.mapshow = false
             }
@@ -1012,4 +1022,4 @@
     opacity: 0;
     transform: translateY(-10rem);
   }
-</style>
+</style>