67 lines
1.5 KiB
JavaScript
67 lines
1.5 KiB
JavaScript
/*
|
|
* @Author: zwq
|
|
* @Date: 2020-12-29 16:00:14
|
|
* @LastEditors: zwq
|
|
* @LastEditTime: 2021-05-28 15:38:19
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
export function powerClassificationList(data) { // 获取powerClassification列表
|
|
return request({
|
|
url: '/order/power-classification/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function powerClassificationTree(data) { // 获取powerClassification列表
|
|
return request({
|
|
url: '/order/power-classification/tree',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function powerClassificationDetail(id) { // 获取powerClassification单条数据
|
|
const data = {
|
|
'id': id
|
|
}
|
|
return request({
|
|
url: '/order/power-classification/get',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function powerClassificationUpdate(data) { // 更新powerClassification单条数据
|
|
return request({
|
|
url: '/order/power-classification/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function powerClassificationAdd(data) { // 新增powerClassification单条数据
|
|
return request({
|
|
url: '/order/power-classification/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function powerClassificationCode() { // 获取powerClassificationcode
|
|
return request({
|
|
url: '/order/power-classification/get-code',
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
export function powerClassificationDelete(id) { // 删除powerClassification单条数据
|
|
return request({
|
|
url: '/order/power-classification/delete',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|