添加产品管理、物模型配置、产品分类界面,完善设备管理的物模型配置界面
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 告警规则列表
|
||||
// 告警规则列表(全局,不含产品/设备归属规则)
|
||||
export function getAlertRuleList() {
|
||||
return request.get('/inspection/alert-rule/list')
|
||||
}
|
||||
|
||||
// 某归属对象(产品/设备)下的规则列表;pointCode 可选按点过滤
|
||||
export function getOwnerAlertRules(ownerType, ownerId, pointCode) {
|
||||
return request.get('/inspection/alert-rule/owner', {
|
||||
params: { ownerType, ownerId, pointCode: pointCode || undefined }
|
||||
})
|
||||
}
|
||||
|
||||
// 新增告警规则
|
||||
export function addAlertRule(data) {
|
||||
return request.post('/inspection/alert-rule/add', data)
|
||||
|
||||
Reference in New Issue
Block a user