Commit 399dd7ac0589ae9ad269c9e29902e1cc0f6b16f1

Authored by xp.Huang
2 parents 8e8ec54b 116711bf

Merge branch 'fix/DEFECT-1829' into 'main_dev'

fix: 看板中告警记录,第一栏状态修改为告警级别,第四栏修改为告警等级,并调换第一栏和第四栏的位置

See merge request yunteng/thingskit-front!1130
@@ -58,24 +58,24 @@ @@ -58,24 +58,24 @@
58 58
59 const alarmColumns: BasicColumn[] = [ 59 const alarmColumns: BasicColumn[] = [
60 { 60 {
61 - title: '状态',  
62 - dataIndex: 'severity', 61 + title: '告警等级',
  62 + dataIndex: 'status',
63 ellipsis: true, 63 ellipsis: true,
64 width: 80, 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 { title: '设备', dataIndex: 'device', ellipsis: true, width: 120 }, 67 { title: '设备', dataIndex: 'device', ellipsis: true, width: 120 },
72 { title: '告警场景', dataIndex: 'type', ellipsis: true, width: 80 }, 68 { title: '告警场景', dataIndex: 'type', ellipsis: true, width: 80 },
73 { 69 {
74 - title: '状态',  
75 - dataIndex: 'status', 70 + title: '告警级别',
  71 + dataIndex: 'severity',
76 ellipsis: true, 72 ellipsis: true,
77 width: 80, 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 title: '时间', 81 title: '时间',