Selaa lähdekoodia

地图增加图层点击弹出四长摄像头

wang_xy 2 vuotta sitten
vanhempi
commit
b5401a5850
2 muutettua tiedostoa jossa 728 lisäystä ja 652 poistoa
  1. 715 651
      src/components/TVWalls.vue
  2. 13 1
      src/views/forest.vue

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 715 - 651
src/components/TVWalls.vue


+ 13 - 1
src/views/forest.vue

@@ -117,7 +117,7 @@
         </div>
       </div>
       <!-- 地图 -->
-      <supermap ref="supermap" style="width: 100%;height: 100vh;" @showEventDialog="showEventDialog" :showLayer="true"></supermap>
+      <supermap ref="supermap" style="width: 100%;height: 100vh;" @showEventDialog="showEventDialog" :showLayer="true" @fatherMethod="fatherMethod"></supermap>
       <!-- 右侧 -->
       <div class="rightbar rightbar-index" ref="right">
         <div class="right-item1">
@@ -425,6 +425,7 @@
       @showDialog="showDialog"></firespread>
     <eventLocation ref="eventLocation"></eventLocation>
     <TVWall ref="TVWall"></TVWall>
+    <TVWalls ref="TVWalls"></TVWalls>
   </div>
 </template>
 
@@ -456,6 +457,7 @@
   import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
   import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
   import TVWall from '@/components/TVWall.vue' //电视墙弹窗
+  import TVWalls from '@/components/TVWalls.vue' //电视墙弹窗
   import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
   import firespread from '@/views/firespread.vue' //事件详情弹窗
   import {getIconBg} from '@/api/components/sookaMapIcon';//资源底色控制文件
@@ -482,6 +484,7 @@
       vBottomMenu,
       eventLocation,
       TVWall,
+      TVWalls,
       dateChoose,
       eventdetailsdialog,
       firespread
@@ -1013,6 +1016,15 @@
           }]
         })
       },
+      fatherMethod(dianshiqiang, longitude, latitude, item) {
+        this.$refs.TVWalls.showTVWall(
+          dianshiqiang, {
+            longitude: longitude,
+            latitude: latitude,
+          },
+          item
+        );
+      },
       getBaseInfo() {
         //左侧获取部门信息
         getBaseInfo().then(res => {