Forráskód Böngészése

监控&&环保&统计 新增水利专题层联动

付宇航 1 éve
szülő
commit
d668097a09
3 módosított fájl, 301 hozzáadás és 221 törlés
  1. 276 220
      src/views/forest.vue
  2. 15 1
      src/views/leader.vue
  3. 10 0
      src/views/monitor.vue

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 276 - 220
src/views/forest.vue


+ 15 - 1
src/views/leader.vue

@@ -93,7 +93,7 @@
       <!--      <supermap ref="supermap" style="width: 100%;height: 100vh;" :mapDiv="'forestMap'" class="indexSupermapClass"
                 :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"></supermap>
  -->
-      <supermap ref="supermap" style="width: 100%; height: 100vh"></supermap>
+      <supermap ref="supermap" style="width: 100%; height: 100vh" @fatherMethod="fatherMethod"></supermap>
       <!-- 右侧 -->
       <div class="rightbar" :class="indentright" ref="right">
         <div class="forthis">
@@ -190,6 +190,7 @@
     </div>
     <eventLocation ref="eventLocation"></eventLocation>
     <TVWall ref="TVWall"></TVWall>
+    <TVWalls ref="TVWalls"></TVWalls>
   </div>
 </template>
 
@@ -207,7 +208,9 @@ import vheader from "@/components/v-header.vue"; //一体化共用头部
 import vBottomMenu from "@/components/vBottomMenu.vue"; //一体化公共底部菜单
 import eventLocation from "@/components/eventLocation.vue"; //事件定位弹窗
 import TVWall from "@/components/TVWall.vue";
+// import TVWalls from "@/components/TVWall.vue";
 import {getUserProfile} from "@/api/system/user"; //电视墙弹窗
+import TVWalls from '@/components/TVWalls.vue';
 
 let echarts = require("echarts");
 export default {
@@ -217,6 +220,7 @@ export default {
     vBottomMenu,
     eventLocation,
     TVWall,
+    TVWalls,
   },
   data() {
     return {
@@ -271,6 +275,16 @@ export default {
     },
   },
   methods: {
+    fatherMethod(dianshiqiang, longitude, latitude, item) {
+      console.log(this.$refs.TVWalls)
+      this.$refs.TVWalls.showTVWall(
+        dianshiqiang, {
+          longitude: longitude,
+          latitude: latitude,
+        },
+        item
+      );
+    },
     //初始化地图数据
     getSuperMapUrl(){
       getUserProfile().then(response => {

+ 10 - 0
src/views/monitor.vue

@@ -112,6 +112,7 @@
         style="width: 100%; height: 100vh"
         @preview="preview"
         @jump="jump"
+        @fatherMethod="fatherMethod"
       >
       </supermap>
       <!-- 右侧 -->
@@ -373,6 +374,15 @@ export default {
     },
   },
   methods: {
+    fatherMethod(dianshiqiang, longitude, latitude, item) {
+      this.$refs.TVWalls.showTVWall(
+        dianshiqiang, {
+          longitude: longitude,
+          latitude: latitude,
+        },
+        item
+      );
+    },
     //初始化地图数据
     getSuperMapUrl(){
       getUserProfile().then(response => {