42 lines
902 B
JavaScript
42 lines
902 B
JavaScript
import request from '@/utils/request';
|
|
|
|
/** 创建分组 */
|
|
export function createMapGroup(data) {
|
|
return request({
|
|
url: `/api/mapGroup`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
}
|
|
/** 修改分组 */
|
|
export function updateMapGroup(data) {
|
|
return request({
|
|
url: `/api/mapGroup/${data.groupId}`,
|
|
method: 'put',
|
|
data
|
|
});
|
|
}
|
|
/** 删除分组 */
|
|
export function deleteMapGroup(groupId) {
|
|
return request({
|
|
url: `/api/mapGroup/${groupId}`,
|
|
method: 'delete'
|
|
});
|
|
}
|
|
/** 分页查询地图分组 */
|
|
export function queryMapGroupPaging(params) {
|
|
return request({
|
|
url: `/api/mapGroup/page`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
}
|
|
/** 导入数据 */
|
|
export function importMapGroupData( groupId, data) {
|
|
return request({
|
|
url: `/api/mapGroup/${groupId}/syc/import`,
|
|
method: 'put',
|
|
data
|
|
});
|
|
}
|