mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 12:45:37 +08:00
feat(仪表板): 增加世界地图及相关配置
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user