feat(仪表板): 增加世界地图及相关配置

This commit is contained in:
fit2cloud-chenyw
2022-07-21 13:41:03 +08:00
parent c731df25e1
commit 7f7cdeb0dd
22 changed files with 1315 additions and 30 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/utils/request'
export const areaMapping = () => {
return request({
url: '/api/map/areaEntitys/0',
url: '/api/map/globalEntitys/0',
method: 'get',
loading: true
})
@@ -17,9 +17,28 @@ export const globalMapping = () => {
}
export function geoJson(areaCode) {
const countryCode = areaCode.substring(0, 3)
return request({
url: '/geo/' + areaCode + '_full.json',
url: '/geo/full/' + countryCode + '/' + areaCode + '_full.json',
method: 'get',
loading: true
})
}
export function saveMap(data) {
return request({
url: '/api/map/saveMapNode',
method: 'post',
loading: true,
data
})
}
export function removeMap(data) {
return request({
url: '/api/map/delMapNode',
method: 'post',
loading: true,
data
})
}