change - 补充js(设备台账页面增加设备配套按钮及后端接口)

master
zch 2 months ago
parent 4f869ddf71
commit 5a68da2092

@ -0,0 +1,54 @@
import request from '@/utils/request'
// 查询设备配套信息列表
export function listDmsBaseDeviceSupplies(query) {
return request({
url: '/dms/dmsBaseDeviceSupplies/list',
method: 'get',
params: query
})
}
// 查询设备配套信息详细
export function getDmsBaseDeviceSupplies(deviceSuppliesId) {
return request({
url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId,
method: 'get'
})
}
// 新增设备配套信息
export function addDmsBaseDeviceSupplies(data) {
return request({
url: '/dms/dmsBaseDeviceSupplies',
method: 'post',
data: data
})
}
// 修改设备配套信息
export function updateDmsBaseDeviceSupplies(data) {
return request({
url: '/dms/dmsBaseDeviceSupplies',
method: 'put',
data: data
})
}
// 删除设备配套信息
export function delDmsBaseDeviceSupplies(deviceSuppliesId) {
return request({
url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId,
method: 'delete'
})
}
// 根据deviceId查询设备配套信息列表
export function listDmsBaseDeviceSuppliesByDeviceId(deviceId) {
return request({
url: '/dms/dmsBaseDeviceSupplies/listByDeviceId/' + deviceId,
method: 'get'
})
}
Loading…
Cancel
Save