添加产品管理、物模型配置、产品分类界面,完善设备管理的物模型配置界面

This commit is contained in:
2026-09-03 17:39:48 +08:00
parent eb0ddafc64
commit a72e2e6ff5
6 changed files with 617 additions and 25 deletions
+8 -1
View File
@@ -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)