优化修复告警和工单

This commit is contained in:
mmc
2026-05-18 09:35:44 +08:00
parent f0ebf0e348
commit baf3a4141b
4 changed files with 162 additions and 36 deletions

View File

@@ -16,3 +16,27 @@ export const sourceTypeMap = {
6: '人工',
7: '告警'
};
export const alarmTypeMap = {
1: '设备故障',
2: '数据异常',
3: '通信中断',
4: '性能告警',
5: '安全告警',
6: '环境告警'
};
export const alarmLevelConfig = {
1: { description: '严重', color: '#FF4D4F' },
2: { description: '重要', color: '#FA8C16' },
3: { description: '一般', color: '#FADB14' },
4: { description: '提示', color: '#1890FF' }
};
export const handleStatusMap = {
1: '待处理',
2: '处理中',
3: '已关闭',
4: '已忽略'
};