配置代码
This commit is contained in:
107
src/api/deviceManagement/deviceinspect.js
Normal file
107
src/api/deviceManagement/deviceinspect.js
Normal file
@@ -0,0 +1,107 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 设备检查项分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listDeviceInspect(query) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备检查项
|
||||
* @param data
|
||||
*/
|
||||
export function addDeviceInspect(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改设备检查项
|
||||
* @param data
|
||||
*/
|
||||
export function updateDeviceInspect(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取设备检查项详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getDeviceInspect(id) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备检查项
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delDeviceInspect(pid) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查看设备已绑定 Isbind = 1,未绑定 Isbind = 0 的检查项
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listDeviceInspect2(query) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/list2',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加设备与检查项的关联
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function addBind(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/addbind',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消设备与检查项的关联
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function removeBind(query) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/removebind',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查项排序
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function sortDeviceInspect(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceInspect/sort',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user