2025-06-23 18:18:19 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
export function add(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function del(ids) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint/',
|
|
|
|
|
method: 'delete',
|
|
|
|
|
data: ids
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function edit(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function changeUsed(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint/changeUsed',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getPointList(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint/getPointList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function changeLock(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/schBasePoint/changeLock',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2026-06-10 13:55:39 +08:00
|
|
|
export function getRegionPoints(param) {
|
|
|
|
|
return request({
|
2026-07-08 14:22:52 +08:00
|
|
|
url: 'api/schBasePoint/getRegionPointSet',
|
2026-06-10 13:55:39 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: param
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-06-23 18:18:19 +08:00
|
|
|
|
2026-06-10 13:55:39 +08:00
|
|
|
export default { add, edit, del, changeUsed, getPointList, changeLock, getRegionPoints }
|