Hwf 2 місяців тому
батько
коміт
bfed6142a2

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

@@ -223,3 +223,11 @@ export const getRainPitsType = (data) => {
   });
 };
 
+// 儿童福利机构分类统计
+export const getCountPointInfoTypeErtongfulijigou = (data) => {
+  return request({
+    url: '/api/gateway/v2/get_count_point_info_type_ertongfulijigou',
+    method: 'post',
+    data: data
+  });
+};

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

@@ -442,3 +442,15 @@ export const getVehicleInfo = (id: string) => {
     }
   });
 };
+
+export const getChildWelfareInstitutionsInfo = (id: string) => {
+  return request({
+    url: '/api/gateway/v2/get_point_info_ertongfulijigou',
+    method: 'post',
+    data: {
+      query: {
+        id: id
+      }
+    }
+  });
+};

+ 10 - 3
src/components/Map/data.ts

@@ -27,7 +27,12 @@ import {
   getWaterList,
   getVideoDrowning,
   getVideoForestFire,
-  getVideoDisasterPrevention, getVideoTraffic, getVideoTraffic2, getPointInfoTransportationVideo, getVehicleInfo
+  getVideoDisasterPrevention,
+  getVideoTraffic,
+  getVideoTraffic2,
+  getPointInfoTransportationVideo,
+  getVehicleInfo,
+  getChildWelfareInstitutionsInfo
 } from '@/api/globalMap/spatialAnalysis';
 import { getRescueTeamsInfo } from '@/api/globalMap/rescueTeam';
 
@@ -68,7 +73,8 @@ export const methodList = {
   '35': getVideoTraffic,
   '41': getRescueTeamsInfo,
   '42': getPointInfoTransportationVideo,
-  '43': getVehicleInfo
+  '43': getVehicleInfo,
+  '44': getChildWelfareInstitutionsInfo
 };
 export const titleList = {
   '1': '专家信息',
@@ -108,5 +114,6 @@ export const titleList = {
   '35': '交通视频',
   '41': '救援队伍',
   '42': '交通局视频',
-  '43': '重点车辆'
+  '43': '重点车辆',
+  '44': '儿童福利机构'
 };

+ 3 - 3
src/views/globalMap/RightMenu/LayerAnalysis.vue

@@ -32,7 +32,7 @@ import {
   getBuildingProjectType,
   getChemicalType, getChemicalWarehouseType, getConstructionSitesType,
   getCountPointInfo,
-  getCountPointInfoAreaList,
+  getCountPointInfoAreaList, getCountPointInfoTypeErtongfulijigou,
   getDroneType, getEmergencyDisasterInfoOfficerType,
   getEmergencyExpertType,
   getEmergencyShelterType, getEmergencyTransportResourcesType,
@@ -43,7 +43,7 @@ import {
   getSchoolType,
   getShipType, getStationInfoType, getTouristAttractionType,
   getWaterloggedRoadsType, getYardSitesType
-} from "@/api/globalMap/layerAnalysis";
+} from '@/api/globalMap/layerAnalysis';
 import { option4, option5 } from './echartOptions';
 import BigNumber from 'bignumber.js';
 
@@ -193,7 +193,7 @@ watch(
         '27': getConstructionSitesType,
         '28': getEmergencyTransportResourcesType,
         '29': getEmergencyDisasterInfoOfficerType,
-
+        '44': getCountPointInfoTypeErtongfulijigou
       };
       let method = methodList[dataList.value[0].dataType];
       if (!method) return;

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

@@ -4993,5 +4993,15 @@ export const pointDetailTemplate = {
     vin: '车架号',
     chelodmass: '核定吨位',
     bnscope: '经营范围'
+  },
+  '44': {
+    jigoumincheng: '机构名称',
+    jigoudizhi: '机构地址',
+    jigouxingzhi: '机构性质',
+    jigouleixing: '机构类型',
+    area: '所属区域',
+    jingdu: '经度',
+    weidu: '纬度',
+    jigoujianjie: '机构简介'
   }
 };