hmm il y a 3 mois
Parent
commit
8898152638

+ 8 - 0
src/api/globalMap/mitigation.ts

@@ -7,3 +7,11 @@ export const getRescue = (data) => {
     data: data
   });
 };
+// 交通视频
+export const getTraffic = (data) => {
+  return request({
+    url: '/api/gateway/v2/get_video_transportation_list',
+    method: 'post',
+    data: data
+  });
+};

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

@@ -403,3 +403,16 @@ export const getVideoDisasterPrevention = (id: string) => {
     }
   });
 };
+
+// 交通视频
+export const getVideoTraffic = (id: string) => {
+  return request({
+    url: '/api/gateway/v2/get_video_transportation_list',
+    method: 'post',
+    data: {
+      query: {
+        id: id
+      }
+    }
+  });
+};

+ 4 - 2
src/components/Map/data.ts

@@ -27,8 +27,8 @@ import {
   getWaterList,
   getVideoDrowning,
   getVideoForestFire,
-  getVideoDisasterPrevention
-} from '@/api/globalMap/spatialAnalysis';
+  getVideoDisasterPrevention, getVideoTraffic
+} from "@/api/globalMap/spatialAnalysis";
 import { getRescueTeamsInfo } from '@/api/globalMap/rescueTeam';
 
 export const methodList = {
@@ -65,6 +65,7 @@ export const methodList = {
   '32': getVideoDrowning,
   '33': getVideoForestFire,
   '34': getVideoDisasterPrevention,
+  '35': getVideoTraffic,
   '41': getRescueTeamsInfo
 };
 export const titleList = {
@@ -102,5 +103,6 @@ export const titleList = {
   '32': '防溺水',
   '33': '森林防火',
   '34': '防灾救援',
+  '35': '交通视频',
   '41': '救援队伍'
 };