From c91f3e7927f015cd332739f822453dbfaaa6fbbd Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 17 Mar 2025 18:40:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=8A=E8=AD=A6=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=BC=82=E5=B8=B8/=E5=91=8A=E8=AD=A6ID?= =?UTF-8?q?=E5=88=97=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faultManage/active-alarm/index.vue | 6 ------ src/views/faultManage/event/index.vue | 14 ++++---------- src/views/faultManage/history-alarm/index.vue | 6 ------ 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/views/faultManage/active-alarm/index.vue b/src/views/faultManage/active-alarm/index.vue index edb02463..474e988d 100644 --- a/src/views/faultManage/active-alarm/index.vue +++ b/src/views/faultManage/active-alarm/index.vue @@ -194,12 +194,6 @@ let tableColumns: ColumnsType = [ align: 'left', width: 100, }, - { - title: t('views.faultManage.activeAlarm.alarmId'), - dataIndex: 'alarmId', - align: 'left', - width: 100, - }, { title: t('views.faultManage.activeAlarm.ackState'), diff --git a/src/views/faultManage/event/index.vue b/src/views/faultManage/event/index.vue index 1b1d7b88..2065d1cc 100644 --- a/src/views/faultManage/event/index.vue +++ b/src/views/faultManage/event/index.vue @@ -118,29 +118,23 @@ let tableState: TabeStateType = reactive({ /**表格字段列 */ let tableColumns: ColumnsType = [ - { - title: t('views.faultManage.activeAlarm.alarmId'), - dataIndex: 'alarmId', - align: 'left', - width: 200, - }, { title: t('views.faultManage.activeAlarm.neId'), dataIndex: 'neId', align: 'left', - width: 100, + width: 150, }, { title: t('views.faultManage.activeAlarm.neName'), dataIndex: 'neName', align: 'left', - width: 100, + width: 150, }, { title: t('views.faultManage.activeAlarm.neType'), dataIndex: 'neType', align: 'left', - width: 100, + width: 150, }, { title: t('views.faultManage.activeAlarm.alarmCode'), @@ -308,7 +302,7 @@ function mapKeysWithReduce(data: any, titleMapping: any) { const title = titleMapping[key] || key; newItem[title] = item[key]; return newItem; - }); + }, {}); }); } diff --git a/src/views/faultManage/history-alarm/index.vue b/src/views/faultManage/history-alarm/index.vue index b7c01308..8df7ca15 100644 --- a/src/views/faultManage/history-alarm/index.vue +++ b/src/views/faultManage/history-alarm/index.vue @@ -122,12 +122,6 @@ let tableState: TabeStateType = reactive({ /**表格字段列 */ let tableColumns: ColumnsType = [ - { - title: t('views.faultManage.activeAlarm.alarmId'), - dataIndex: 'alarmId', - align: 'left', - width: 100, - }, { title: t('views.faultManage.activeAlarm.neId'), dataIndex: 'neId',