Parcourir la source

数据中心 新增数据详情接口&&水利专题层联动

付宇航 il y a 1 an
Parent
commit
c8c4e312e2
2 fichiers modifiés avec 30 ajouts et 2 suppressions
  1. 8 0
      src/api/datacenter.js
  2. 22 2
      src/views/datacenter.vue

+ 8 - 0
src/api/datacenter.js

@@ -14,3 +14,11 @@ export function fireControlViewPoint(type, name,deptId) {
     method: 'get'
     method: 'get'
   })
   })
 }
 }
+
+//点击左侧菜单列表查询落点+按部门分组 NEW
+export function fireControlViewPointSearchInfo(type,id) {
+  return request({
+    url: '/sooka-middleware/visual/getResourceDetail?type='+type+'&id='+id,
+    method: 'get'
+  })
+}

+ 22 - 2
src/views/datacenter.vue

@@ -53,6 +53,7 @@
         ref="supermap"
         ref="supermap"
         style="width: 100%; height: 100vh"
         style="width: 100%; height: 100vh"
         @sewageOutletClick="sewageOutletClick"
         @sewageOutletClick="sewageOutletClick"
+        @fatherMethod="fatherMethod"
       ></supermap>
       ></supermap>
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      </button>-->
       <!--      </button>-->
@@ -98,7 +99,8 @@
       <vBottomMenu ref="bottomMenu"></vBottomMenu>
       <vBottomMenu ref="bottomMenu"></vBottomMenu>
     </div>
     </div>
     <eventLocation ref="eventLocation"></eventLocation>
     <eventLocation ref="eventLocation"></eventLocation>
-    <TVWall ref="TVWall"></TVWall>
+    <TVWall ref="TVWall" :detailInfo="detailInfo"></TVWall>
+    <TVWalls ref="TVWalls"></TVWalls>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -106,6 +108,7 @@
 import {
 import {
   fireControlViewList,
   fireControlViewList,
   fireControlViewPoint,
   fireControlViewPoint,
+  fireControlViewPointSearchInfo
 } from "@/api/datacenter";
 } from "@/api/datacenter";
 
 
 import supermap from "@/components/supermap-2.5d"; //超图
 import supermap from "@/components/supermap-2.5d"; //超图
@@ -113,6 +116,7 @@ import vheader from "@/components/v-header.vue"; //一体化共用头部
 import vBottomMenu from "@/components/vBottomMenu.vue"; //一体化公共底部菜单
 import vBottomMenu from "@/components/vBottomMenu.vue"; //一体化公共底部菜单
 import eventLocation from "@/components/eventLocation.vue"; //事件定位弹窗
 import eventLocation from "@/components/eventLocation.vue"; //事件定位弹窗
 import TVWall from "@/components/TVWall.vue"; //电视墙弹窗
 import TVWall from "@/components/TVWall.vue"; //电视墙弹窗
+import TVWalls from "@/components/TVWalls.vue"; //电视墙弹窗
 import { getIconBg } from "@/api/components/sookaMapIcon";
 import { getIconBg } from "@/api/components/sookaMapIcon";
 import {getUserProfile} from "@/api/system/user";
 import {getUserProfile} from "@/api/system/user";
 import { Button } from '@/dahua/TVWalllib/iview' //资源底色控制文件
 import { Button } from '@/dahua/TVWalllib/iview' //资源底色控制文件
@@ -127,6 +131,7 @@ export default {
     vBottomMenu,
     vBottomMenu,
     eventLocation,
     eventLocation,
     TVWall,
     TVWall,
+    TVWalls
   },
   },
   created() {
   created() {
     /** ----------------------------------底部按钮公用组件开始------------------------------------- */
     /** ----------------------------------底部按钮公用组件开始------------------------------------- */
@@ -166,6 +171,8 @@ export default {
       //右侧资源
       //右侧资源
       deptGroupList: [],
       deptGroupList: [],
       source: [],
       source: [],
+      size:'',
+      detailInfo:[],
     };
     };
   },
   },
   watch: {
   watch: {
@@ -431,6 +438,15 @@ export default {
         that.$refs.supermap.setMarkers(that.markersList);
         that.$refs.supermap.setMarkers(that.markersList);
       });
       });
     },
     },
+    fatherMethod(dianshiqiang, longitude, latitude, item) {
+      this.$refs.TVWalls.showTVWall(
+        dianshiqiang, {
+          longitude: longitude,
+          latitude: latitude,
+        },
+        item
+      );
+    },
     getMarkersMap(resourceTable, markersMap, item) {
     getMarkersMap(resourceTable, markersMap, item) {
       let icon = "sj-icon-map-"+resourceTable.replaceAll("_", "-");
       let icon = "sj-icon-map-"+resourceTable.replaceAll("_", "-");
       markersMap.lng = item.longitude;
       markersMap.lng = item.longitude;
@@ -489,7 +505,7 @@ export default {
         "                </span></div>";
         "                </span></div>";
       return markersMap;
       return markersMap;
     },
     },
-    sewageOutletClick(data) {
+    async sewageOutletClick(data) {
       console.log(data);
       console.log(data);
       const params = Object.assign({});
       const params = Object.assign({});
       params.longitude = data.longitude;
       params.longitude = data.longitude;
@@ -534,6 +550,10 @@ export default {
           labelChannels: labelChannels,
           labelChannels: labelChannels,
         },
         },
       ];
       ];
+      let result = await fireControlViewPointSearchInfo(data.indexName,data.id)
+      this.detailInfo = result.data.detail
+      this.$refs.TVWall.showTVWall1()
+      return
       if (data.cameraList.length > 0) {
       if (data.cameraList.length > 0) {
         this.$refs.TVWall.showTVWall1(
         this.$refs.TVWall.showTVWall1(
           data.longitude,
           data.longitude,