瀏覽代碼

GIS弹窗完成

yangxiao 3 年之前
父節點
當前提交
cdc69e2b94
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/HealthControl/infotrack2.vue

+ 13 - 3
src/views/HealthControl/infotrack2.vue

@@ -197,6 +197,9 @@
       :close-on-click-modal="true">
       <video class="videoPlayer" id="videoPlayer" muted autoplay webkit-playsinline playsinline></video>
     </el-dialog>
+    <el-dialog title="GIS地貌" v-model="gisBoxShow" width="80%" custom-class="modal gisBox" :close-on-click-modal="true">
+      <iframe width="100%" height="100%" src="http://10.155.32.4:8070/gisweb/ditujiankang.html?LAT=106.23507&LNG=38.48989&userid=1500" sryle="width:100%;height:100%;"></iframe>
+    </el-dialog>
   </div>
 </template>
 
@@ -215,6 +218,7 @@ export default {
   },
   data () {
     return {
+      gisBoxShow: false,
       videoBoxShow: false,
       location: '',
       tableData: {
@@ -371,12 +375,10 @@ export default {
     };
   },
   created () {
-    console.log(11111)
     this.setData();
   },
 
   updated () {
-    console.log(22222)
     this.setData();
   },
 
@@ -534,7 +536,9 @@ export default {
     },
     selectTab: function (tab, index) {
       this.activeTab = index;
-      if (index == 1) {
+      if (index === 0) {
+        this.gisBoxShow = true;
+      } else if (index == 1) {
         this.showDet();
       } else if (index === 2) {
         this.showVideoBox();
@@ -777,4 +781,10 @@ export default {
     }
   }
 }
+
+.gisBox {
+  .el-dialog__body {
+    height: 600px;
+  }
+}
 </style>