Parcourir la source

perf(views): 优化“报警管理”模块历史数据表格显示字段

wangshun il y a 1 mois
Parent
commit
78e9f117a4
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/views/alarm-manage/AlarmManage.vue

+ 4 - 4
src/views/alarm-manage/AlarmManage.vue

@@ -152,8 +152,8 @@ const historyColumns = [
   },
   {
     title: t('algorithmManage.dateOccurrence'),
-    dataIndex: 'state1',
-    key: 'state1',
+    dataIndex: 'createTime',
+    key: 'createTime',
     ellipsis: true,
     sorter: (a: { state1: string | number | Date }, b: { state1: string | number | Date }) => {
       const timeA = new Date(a.state1).getTime();
@@ -163,8 +163,8 @@ const historyColumns = [
   },
   {
     title: t('algorithmManage.settlementDate'),
-    dataIndex: 'state2',
-    key: 'state2',
+    dataIndex: 'recoveryTime',
+    key: 'recoveryTime',
     ellipsis: true,
   },
 ];