You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
970 B
TypeScript
40 lines
970 B
TypeScript
import { defHttp } from '@/utils/http/axios';
|
|
enum Api {
|
|
// 获取地图作业区域列表
|
|
GetWorkAreaList = '/api/Manage/GetWorkAreaList',
|
|
// 添加地图作业区域
|
|
AddWorkArea = '/api/Manage/AddWorkArea',
|
|
// 更新地图作业区域
|
|
UpdateWorkArea = '/api/Manage/UpdateWorkArea',
|
|
// 删除地图作业区域
|
|
DeleteWorkArea = '/api/Manage/DeleteWorkArea',
|
|
}
|
|
|
|
// 获取地图作业区域列表
|
|
export function GetWorkAreaList(params) {
|
|
return defHttp.get({
|
|
url: Api.GetWorkAreaList,
|
|
params
|
|
});
|
|
}
|
|
// 添加地图作业区域
|
|
export function AddWorkArea(params) {
|
|
return defHttp.post({
|
|
url: Api.AddWorkArea,
|
|
data:params
|
|
});
|
|
}
|
|
// 更新地图作业区域
|
|
export function UpdateWorkArea(params) {
|
|
return defHttp.post({
|
|
url: Api.UpdateWorkArea,
|
|
data:params
|
|
});
|
|
}
|
|
// 删除地图作业区域
|
|
export function DeleteWorkArea(params) {
|
|
return defHttp.post({
|
|
url: Api.DeleteWorkArea + '?id=' + params.id,
|
|
data:params
|
|
});
|
|
} |