45 lines
768 B
JavaScript
45 lines
768 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询经营现状列表
|
|
export function listManagement(query) {
|
|
return request({
|
|
url: '/management/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询经营现状详细
|
|
export function getManagement(id) {
|
|
return request({
|
|
url: '/management/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增经营现状
|
|
export function addManagement(data) {
|
|
return request({
|
|
url: '/management',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改经营现状
|
|
export function updateManagement(data) {
|
|
return request({
|
|
url: '/management',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除经营现状
|
|
export function delManagement(id) {
|
|
return request({
|
|
url: '/management/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|