地图增加开封

This commit is contained in:
aixianling
2024-08-26 10:52:17 +08:00
parent d035585751
commit 384c4d3883

View File

@@ -28,6 +28,7 @@ export default {
getData() {
const {$http, $waitFor} = window
const {groupCodeList, currentDate, hourNum} = this.search
const maps = []
return $waitFor($http).then(() => Promise.all([
$http.post("/data-boot/la/screen/marketBoard/storeReport", {
groupCodeList, currentDate, hourNum
@@ -38,10 +39,17 @@ export default {
}),
axios.get('http://10.0.97.209/blade-visual/map/data?id=1456').then(res => {
if (res?.data) {
return this.geoJson = res.data
return maps.push(res.data.features)
}
}),
axios.get('http://10.0.97.209/blade-visual/map/data?id=1469').then(res => {
if (res?.data) {
return maps.push(res.data.features)
}
})
]))
])).then(() => {
return this.geoJson = {type: 'FeatureCollection', features: maps.flat(1)}
})
},
initMap() {
const {echarts, turf} = window