补充提交监控设备js

This commit is contained in:
wangyan21 2023-10-17 15:56:45 +08:00
parent a7b2bd7095
commit 0c3ba98674

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询区域监控设备列表
export function listEquip(query) {
return request({
url: '/monitor/equip/list',
method: 'get',
params: query
})
}
// 查询区域监控设备详细
export function getEquip(id) {
return request({
url: '/monitor/equip/' + id,
method: 'get'
})
}
// 新增区域监控设备
export function addEquip(data) {
return request({
url: '/monitor/equip',
method: 'post',
data: data
})
}
// 修改区域监控设备
export function updateEquip(data) {
return request({
url: '/monitor/equip',
method: 'put',
data: data
})
}
// 删除区域监控设备
export function delEquip(id) {
return request({
url: '/monitor/equip/' + id,
method: 'delete'
})
}