Commit 30099968ec4b1578a4a0bde0e387e05d8cde28c8

Authored by fengwotao
1 parent 7d29d23b

perf: 优化告警记录表格列表顺序展示和表格查询

@@ -150,7 +150,7 @@ export const alarmColumns: BasicColumn[] = [ @@ -150,7 +150,7 @@ export const alarmColumns: BasicColumn[] = [
150 dataIndex: 'status', 150 dataIndex: 'status',
151 customRender({ record }: { record }) { 151 customRender({ record }: { record }) {
152 const flag = handleAlarmStatus(record.status); 152 const flag = handleAlarmStatus(record.status);
153 - return h(Tag, { color: flag ? 'green' : 'red' }, () => (flag ? '激活' : '清除')); 153 + return h(Tag, { color: flag ? 'red' : 'green' }, () => (flag ? '激活' : '清除'));
154 }, 154 },
155 width: 90, 155 width: 90,
156 }, 156 },
@@ -185,7 +185,7 @@ export const alarmColumns: BasicColumn[] = [ @@ -185,7 +185,7 @@ export const alarmColumns: BasicColumn[] = [
185 dataIndex: 'ackStatus', 185 dataIndex: 'ackStatus',
186 customRender({ record }: { record }) { 186 customRender({ record }: { record }) {
187 const flag = handleAlarmAckStatus(record.status); 187 const flag = handleAlarmAckStatus(record.status);
188 - return h(Tag, { color: flag ? 'green' : 'red' }, () => (flag ? '已确认' : '未确认')); 188 + return h(Tag, { color: flag ? 'blue' : 'orange' }, () => (flag ? '已确认' : '未确认'));
189 }, 189 },
190 width: 110, 190 width: 110,
191 }, 191 },