配置代码
This commit is contained in:
57
src/api/deviceManagement/deviceformconfig.js
Normal file
57
src/api/deviceManagement/deviceformconfig.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 设备检查项表单配置表分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listDeviceFormConfig(query) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceFormConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备检查项表单配置表
|
||||
* @param data
|
||||
*/
|
||||
export function addDeviceFormConfig(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceFormConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改设备检查项表单配置表
|
||||
* @param data
|
||||
*/
|
||||
export function updateDeviceFormConfig(data) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceFormConfig',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取设备检查项表单配置表详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getDeviceFormConfig(id) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceFormConfig/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备检查项表单配置表
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delDeviceFormConfig(pid) {
|
||||
return request({
|
||||
url: 'mes/deviceManagement/DeviceFormConfig/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user