You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
867 B
JavaScript
45 lines
867 B
JavaScript
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询监控单元列表
|
||
|
export function listMonitorUnit(query) {
|
||
|
return request({
|
||
|
url: '/business/monitorUnit/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询监控单元详细
|
||
|
export function getMonitorUnit(monitorUnitId) {
|
||
|
return request({
|
||
|
url: '/business/monitorUnit/' + monitorUnitId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增监控单元
|
||
|
export function addMonitorUnit(data) {
|
||
|
return request({
|
||
|
url: '/business/monitorUnit',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改监控单元
|
||
|
export function updateMonitorUnit(data) {
|
||
|
return request({
|
||
|
url: '/business/monitorUnit',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除监控单元
|
||
|
export function delMonitorUnit(monitorUnitId) {
|
||
|
return request({
|
||
|
url: '/business/monitorUnit/' + monitorUnitId,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|