diff --git a/src/views/sponeScreen/gisMF/cesiumMapLegend.js b/src/views/sponeScreen/gisMF/cesiumMapLegend.js index 137f198..d5bfe4e 100644 --- a/src/views/sponeScreen/gisMF/cesiumMapLegend.js +++ b/src/views/sponeScreen/gisMF/cesiumMapLegend.js @@ -12,6 +12,7 @@ import { waterloggingPointList, queryProjectStation, getStationList } from '@/api/sponeScreen/syntherticData.js'; import { realtimeRainfallStatistics } from '@/api/floodSys/oneMap.js'; import { waterCompPage } from '@/api/longoPeration/RiverSection'; +import { rtuSiteInfoList } from '@/api/dataAnalysis/AlertService'; import bus from '@/bus'; let YSBZ, @@ -28,28 +29,37 @@ rainStationData, rainStationArea, riverSuperVise, - waterFactory; + waterFactory, + spongeFacility; let legendDataList; export default class cesiumMapCommonLegend { //获取站点数据 static async getStationData() { - let results = await Promise.all([oneMapFacilityPumpList(), haiMianfacilitySewagePage(), getStationList(), waterCompPage()]); + let results = await Promise.all([ + oneMapFacilityPumpList(), + haiMianfacilitySewagePage(), + getStationList(), + waterCompPage(), + rtuSiteInfoList(), + ]); let resRainwater = results[0]; let resWSCLC = results[1]; let stationDataList = results[2]; let waterFactoryDatalist = results[3]; - // console.log('waterFactoryDatalist--', waterFactoryDatalist); + let spongeFacilityDataList = results[4]; + console.log('spongeFacilityDataList--', spongeFacilityDataList); //雨水泵站 let YSBZDataList = resRainwater.data.filter(data => data.pumpType == 'rain_water'); //雨水泵站 let WSBZDataList = resRainwater.data.filter(data => data.pumpType == 'sewage_water'); //污水泵站 let HLBZDataList = resRainwater.data.filter(data => data.pumpType == 'confluence'); //合流泵站 let riverDataList = stationDataList.data.filter(data => data.monitorTargetType == 'river'); //河道监测 - + let spongeFacilityList = spongeFacilityDataList.data.filter(data => data.monitorTargetType == 'drain_outlet'); //海绵设施 YSBZ = this.getGeojsonData(YSBZDataList); WSBZ = this.getGeojsonData(WSBZDataList); - HLBZ = this.getGeojsonData(HLBZDataList); + HLBZ = this.getGeojsonData(spongeFacilityList); + spongeFacility = this.getGeojsonData(HLBZDataList); riverSuperVise = this.getGeojsonData(riverDataList); waterFactory = this.getGeojsonData(waterFactoryDatalist.data); //水厂 ysArea = this.getPolygonGeojson(YSBZDataList); //雨水泵站范围 @@ -438,7 +448,7 @@ url: 'spongeFacility_icon.png', //图层+json √ mapUrl: 'yiLao.png', type: 'point', - data: kaifengHaiMianSheShi, + data: spongeFacility, }, { isCheck: false,