This commit is contained in:
lzx1216
2020-11-09 09:27:35 +08:00
parent e9263648a0
commit 70887ab4dc
3 changed files with 486 additions and 4 deletions

45
src/api/system/device.js Normal file
View File

@ -0,0 +1,45 @@
import request from '@/utils/request'
// 查询设备列表
export function listDevice(query) {
return request({
url: '/system/device/list',
method: 'get',
params: query
})
}
// 查询设备详细
export function getDevice(deviceId) {
return request({
url: '/system/device/' + deviceId,
method: 'get'
})
}
// 新增设备
export function addDevice(data) {
return request({
url: '/system/device',
method: 'post',
data: data
})
}
// 修改设备
export function updateDevice(data) {
return request({
url: '/system/device',
method: 'post',
data: data
})
}
// 删除设备
export function delDevice(deviceId) {
return request({
url: '/system/device/' + deviceId,
method: 'delete'
})
}