JX.LI 2 年之前
父節點
當前提交
30fc2b1426
共有 2 個文件被更改,包括 27 次插入3 次删除
  1. 13 1
      src/views/leader.vue
  2. 14 2
      src/views/resources.vue

+ 13 - 1
src/views/leader.vue

@@ -65,7 +65,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;" :showLayer="true"></supermap>
+      <supermap ref="supermap" style="width: 100%;height: 100vh;" @fatherMethod="fatherMethod" :showLayer="true"></supermap>
       <!-- 右侧 -->
       <div class="rightbar" :class="indentright" ref="right">
         <div class="forthis">
@@ -137,6 +137,7 @@
     </div>
     <eventLocation ref="eventLocation"></eventLocation>
     <TVWall ref="TVWall"></TVWall>
+    <TVWalls2 ref="TVWalls2"></TVWalls2>
   </div>
 </template>
 
@@ -154,6 +155,7 @@
   import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
   import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
   import TVWall from '@/components/TVWall.vue' //电视墙弹窗
+  import TVWalls2 from '@/components/TVWalls2.vue' //电视墙弹窗
   import {
     getRyList,
     getRyListByJob
@@ -167,6 +169,7 @@ import {getUserProfile} from "@/api/system/user";
       vheader,
       vBottomMenu,
       eventLocation,
+      TVWalls2,
       TVWall
     },
     data() {
@@ -328,6 +331,15 @@ import {getUserProfile} from "@/api/system/user";
           that.personnelChart()
         })
       },
+      fatherMethod(dianshiqiang, longitude, latitude, item) {
+        this.$refs.TVWalls2.showTVWall(
+          dianshiqiang, {
+            longitude: longitude,
+            latitude: latitude,
+          },
+          item
+        );
+      },
       getRyListByJob(jobValue) {
         let that = this
         that.listCurrentIndex1 = ''

+ 14 - 2
src/views/resources.vue

@@ -30,7 +30,7 @@
         </div>
       </div>
       <!-- 地图 -->
-      <supermap ref="supermap" style="width: 100%; height: 100vh" @sewageOutletClick="sewageOutletClick"></supermap>
+      <supermap ref="supermap" style="width: 100%; height: 100vh" @fatherMethod="fatherMethod" @sewageOutletClick="sewageOutletClick"></supermap>
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      </button>-->
       <!-- 右侧 -->
@@ -65,6 +65,7 @@
     <eventLocation ref="eventLocation"></eventLocation>
     <TVWall ref="TVWall"></TVWall>
     <TVWalls ref="TVWalls"></TVWalls>
+    <TVWalls2 ref="TVWalls2"></TVWalls2>
   </div>
 </template>
 
@@ -81,6 +82,7 @@
   import eventLocation from "@/components/eventLocation.vue"; //事件定位弹窗
   import TVWall from "@/components/TVWall.vue"; //电视墙弹窗
   import TVWalls from "@/components/TVWalls.vue"; //电视墙弹窗
+  import TVWalls2 from "@/components/TVWalls2.vue"; //电视墙弹窗
   import {
     getIconBg
   } from "@/api/components/sookaMapIcon";
@@ -101,7 +103,8 @@
       vBottomMenu,
       eventLocation,
       TVWall,
-      TVWalls
+      TVWalls,
+      TVWalls2,
     },
     created() {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
@@ -201,6 +204,15 @@
           this.$refs.bottomMenu.showChild = false;
         }
       },
+      fatherMethod(dianshiqiang, longitude, latitude, item) {
+        this.$refs.TVWalls2.showTVWall(
+          dianshiqiang, {
+            longitude: longitude,
+            latitude: latitude,
+          },
+          item
+        );
+      },
       //选择图层
       choseLayerSwitching(url, isClear) {
         this.$refs.supermap.layerSwitching(url, isClear);