Commit 64b8321118cbb10f5101f101c69351d0a0578bd1
1 parent
ff223685
feat(src/packages): 修改地图 针对内蒙古自治区特殊处理
Showing
2 changed files
with
4 additions
and
2 deletions
... | ... | @@ -112,8 +112,9 @@ const handleMap3DClick = async (params: any) => { |
112 | 112 | saveGeojson.value?.features.forEach((item: any) => { |
113 | 113 | if (item.properties.name === name) { |
114 | 114 | const level = item.properties.level.toUpperCase() |
115 | - if (level === 'DISTRICT') return | |
116 | 115 | const adcode = item.properties.adcode |
116 | + if (level === 'DISTRICT') return | |
117 | + if(String(adcode).startsWith('15') && level===areaEnum.CITY) return | |
117 | 118 | props.chartConfig.option.mapRegion.adcode = adcode |
118 | 119 | saveLevelStr.level = level |
119 | 120 | handleDataPoint(adcode) | ... | ... |
... | ... | @@ -308,8 +308,9 @@ const handleVChartClick = async (params: any) => { |
308 | 308 | saveGeojson.value?.features.forEach((item: any) => { |
309 | 309 | if (item.properties.name === name) { |
310 | 310 | const level = item.properties.level.toUpperCase() |
311 | - if (level === 'DISTRICT') return | |
312 | 311 | const adcode = item.properties.adcode |
312 | + if (level === 'DISTRICT') return | |
313 | + if(String(adcode).startsWith('15') && level===areaEnum.CITY) return | |
313 | 314 | props.chartConfig.option.mapRegion.adcode = adcode |
314 | 315 | saveLevelStr.level = level |
315 | 316 | handleDataPoint(adcode) | ... | ... |