You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
926 B
49 lines
926 B
import request from '@/utils/request'
|
|
import qs from 'qs'
|
|
|
|
// 地图列表
|
|
export function FetchMapTree(params) {
|
|
return request({
|
|
url: 'api/fengmap/getMapTree' + '?' + qs.stringify(params, { indices: false }),
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/fengmap/editMap',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/fengmap/editMap',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/fengmap/deleteMaps',
|
|
method: 'post',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
// 根据id查询地图详情
|
|
export function FetchMapDetails(params) {
|
|
return request({
|
|
url: 'api/fengmap/getMapDetails' + '?' + qs.stringify(params, { indices: false }),
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export default {
|
|
FetchMapTree,
|
|
add,
|
|
edit,
|
|
del,
|
|
FetchMapDetails
|
|
}
|