60 lines
1.0 KiB
JavaScript
60 lines
1.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/region',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/region/',
|
|
method: 'delete',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/region',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function changeActive(data) {
|
|
return request({
|
|
url: 'api/region/changeActive',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getPointStatusSelectByCode(code) {
|
|
return request({
|
|
url: 'api/region/getPointStatusSelectByCode',
|
|
method: 'post',
|
|
data: code
|
|
})
|
|
}
|
|
|
|
export function getPointTypeSelectByCode(code) {
|
|
return request({
|
|
url: 'api/region/getPointTypeSelectByCode',
|
|
method: 'post',
|
|
data: code
|
|
})
|
|
}
|
|
|
|
export function getRegionSelect(data) {
|
|
return request({
|
|
url: 'api/region/getRegionSelect',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, changeActive, getPointStatusSelectByCode, getPointTypeSelectByCode, getRegionSelect }
|