45 lines
828 B
JavaScript
45 lines
828 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询经营项目记录列表
|
||
|
export function listBusinessItems(query) {
|
||
|
return request({
|
||
|
url: '/businessItems/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询经营项目记录详细
|
||
|
export function getBusinessItems(id) {
|
||
|
return request({
|
||
|
url: '/businessItems/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增经营项目记录
|
||
|
export function addBusinessItems(data) {
|
||
|
return request({
|
||
|
url: '/businessItems',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改经营项目记录
|
||
|
export function updateBusinessItems(data) {
|
||
|
return request({
|
||
|
url: '/businessItems',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除经营项目记录
|
||
|
export function delBusinessItems(id) {
|
||
|
return request({
|
||
|
url: '/businessItems/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|