Commit 116711bfa4ee8b4c118171b14dda60cac81ed8fe
1 parent
0fb766c4
fix: 看板中告警记录,第一栏状态修改为告警级别,第四栏修改为告警等级,并调换第一栏和第四栏的位置
Showing
1 changed file
with
10 additions
and
10 deletions
... | ... | @@ -58,24 +58,24 @@ |
58 | 58 | |
59 | 59 | const alarmColumns: BasicColumn[] = [ |
60 | 60 | { |
61 | - title: '状态', | |
62 | - dataIndex: 'severity', | |
61 | + title: '告警等级', | |
62 | + dataIndex: 'status', | |
63 | 63 | ellipsis: true, |
64 | 64 | width: 80, |
65 | - customRender: ({ record }) => { | |
66 | - const { severity } = record; | |
67 | - const { text, color } = alarmLevel(severity); | |
68 | - return h(Tag, { color }, () => text); | |
69 | - }, | |
65 | + format: (text) => statusType(text), | |
70 | 66 | }, |
71 | 67 | { title: '设备', dataIndex: 'device', ellipsis: true, width: 120 }, |
72 | 68 | { title: '告警场景', dataIndex: 'type', ellipsis: true, width: 80 }, |
73 | 69 | { |
74 | - title: '状态', | |
75 | - dataIndex: 'status', | |
70 | + title: '告警级别', | |
71 | + dataIndex: 'severity', | |
76 | 72 | ellipsis: true, |
77 | 73 | width: 80, |
78 | - format: (text) => statusType(text), | |
74 | + customRender: ({ record }) => { | |
75 | + const { severity } = record; | |
76 | + const { text, color } = alarmLevel(severity); | |
77 | + return h(Tag, { color }, () => text); | |
78 | + }, | |
79 | 79 | }, |
80 | 80 | { |
81 | 81 | title: '时间', | ... | ... |