瀏覽代碼

专题层修改

wang_xy 2 年之前
父節點
當前提交
2840e15620
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/components/supermap-2.5d.vue

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

@@ -33,6 +33,7 @@
       return {
         bindPopupHtml: null,
         mapshow: false,
+        openZt: false,
         superMapRootUrl: null,
         viewer: null,
         scene: null,
@@ -753,6 +754,7 @@
             that.queryParams.mapData = entity.pickResult[entity.layerID][0].feature.properties.SmUserID;
             that.queryParams.mapName = entity.pickResult[entity.layerID][0].feature.properties.layer;
             getDeviceList(that.queryParams).then(res => {
+              that.openZt = true;
               const treeLabels = [{
                 "id": null,
                 "labelCode": "999",
@@ -825,8 +827,10 @@
         });
       },
       openTvwall() {
-        this.mapshow=false
-        this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
+        if(this.openZt){
+          this.mapshow=false;
+          this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
+        }
       },
       /**
        * 地图落点
@@ -873,6 +877,7 @@
             if (html != undefined && html._value != null && html._value != '') {
               that.bindPopupHtml = html
               that.mapshow = true
+              that.openZt = false
             } else {
               that.mapshow = false
             }