hmm 7 miesięcy temu
rodzic
commit
3070eef9da

+ 13 - 0
src/api/globalMap/spatialAnalysis.ts

@@ -140,3 +140,16 @@ export const getUAVDetails = (id: string) => {
     }
   });
 };
+
+// 雨窝点详情
+export const getRainbowDetails = (id: string) => {
+  return request({
+    url: '/api/gateway/v2/get_point_info_rain_pits',
+    method: 'post',
+    data: {
+      query: {
+        id: id
+      }
+    }
+  });
+};

+ 6 - 4
src/components/Map/index.vue

@@ -33,8 +33,8 @@ import {
   getWaterloggedRoadsDetails,
   getShipRealtilmePositionDetails,
   getPeratingEenterpriseDetails,
-  getUAVDetails
-} from '@/api/globalMap/spatialAnalysis';
+  getUAVDetails, getRainbowDetails
+} from "@/api/globalMap/spatialAnalysis";
 import { pointDetailTemplate } from '@/views/globalMap/data/mapData';
 import ElementResizeDetectorMaker from 'element-resize-detector';
 import useAppStore from '@/store/modules/app';
@@ -163,7 +163,8 @@ const handlePointDetails = (data) => {
     '12': getChemicalcompanyDetails,
     '13': getChemicalcompanyDetails,
     '14': getChemicalcompanyDetails,
-    '15': getUAVDetails
+    '15': getUAVDetails,
+    '16': getRainbowDetails
   };
   let titleList = {
     '1': '专家信息',
@@ -180,7 +181,8 @@ const handlePointDetails = (data) => {
     '12': '危险化学品生产企业信息',
     '13': '危险化学品使用企业(使用许可)信息',
     '14': '化工企业(不发使用许可)信息',
-    '15': '无人机信息'
+    '15': '无人机信息',
+    '16': '雨窝点'
   };
   let method = methodList[data.dataType];
   let title = !!titleList[data.dataType] ? titleList[data.dataType] : '信息';

+ 0 - 3
src/types/components.d.ts

@@ -43,8 +43,6 @@ declare module 'vue' {
     ElRow: typeof import('element-plus/es')['ElRow']
     ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
     ElSelect: typeof import('element-plus/es')['ElSelect']
-    ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
-    ElSkeletonItem: typeof import('element-plus/es')['ElSkeletonItem']
     ElSlider: typeof import('element-plus/es')['ElSlider']
     ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
     ElSwitch: typeof import('element-plus/es')['ElSwitch']
@@ -53,7 +51,6 @@ declare module 'vue' {
     ElTimeline: typeof import('element-plus/es')['ElTimeline']
     ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
     ElTooltip: typeof import('element-plus/es')['ElTooltip']
-    ElTree: typeof import('element-plus/es')['ElTree']
     ElUpload: typeof import('element-plus/es')['ElUpload']
     FileUpload: typeof import('./../components/FileUpload/index.vue')['default']
     FooterSection: typeof import('./../components/FooterSection/index.vue')['default']

+ 8 - 0
src/views/globalMap/data/mapData.ts

@@ -4553,6 +4553,14 @@ export const pointDetailTemplate = {
     response_time: '调度响应时间',
     address: '常驻地址'
   },
+  '16': {
+    id: '编号',
+    name: '名称',
+    location: '位置',
+    district: '所属区县',
+    longitude: '经度',
+    latitude: '纬度'
+  },
 };
 
 export const creatDetailTemplate = (data, type) => {};