55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 创建设备数采详情
|
||
|
export function createEquipmentPlcParam(data) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/create',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 更新设备数采详情
|
||
|
export function updateEquipmentPlcParam(data) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/update',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除设备数采详情
|
||
|
export function deleteEquipmentPlcParam(id) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/delete?id=' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得设备数采详情
|
||
|
export function getEquipmentPlcParam(id) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/get?id=' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获得设备数采详情分页
|
||
|
export function getEquipmentPlcParamPage(query) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/page',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 导出设备数采详情 Excel
|
||
|
export function exportEquipmentPlcParamExcel(query) {
|
||
|
return request({
|
||
|
url: '/base/equipment-plc-param/export-excel',
|
||
|
method: 'get',
|
||
|
params: query,
|
||
|
responseType: 'blob'
|
||
|
})
|
||
|
}
|