From 8a612e0760c9c9c9e5b39794cbf6791b8ff3370e Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 21 Mar 2025 16:17:35 +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 | 76 ++++--------- src/views/faultManage/event/index.vue | 42 +++---- src/views/faultManage/history-alarm/index.vue | 103 ++++++------------ 3 files changed, 70 insertions(+), 151 deletions(-) diff --git a/src/views/faultManage/active-alarm/index.vue b/src/views/faultManage/active-alarm/index.vue index d2b8bd36..474e988d 100644 --- a/src/views/faultManage/active-alarm/index.vue +++ b/src/views/faultManage/active-alarm/index.vue @@ -145,66 +145,54 @@ let alarmTableState: TabeStateType = reactive({ let tableColumns: ColumnsType = [ { title: t('views.faultManage.activeAlarm.origLevel'), - align: 'center', + align: 'left', key: 'origSeverity', dataIndex: 'origSeverity', - width: 5, + width: 100, }, { title: t('views.faultManage.activeAlarm.alarmTitle'), dataIndex: 'alarmTitle', align: 'left', - width: 5, + width: 200, }, { title: t('views.faultManage.activeAlarm.neType'), dataIndex: 'neType', - align: 'center', - width: 5, + align: 'left', + width: 100, }, { title: t('views.faultManage.activeAlarm.eventTime'), dataIndex: 'eventTime', - align: 'center', + align: 'left', sorter: (a: any, b: any) => 1, - width: 5, + width: 150, }, { title: t('views.faultManage.activeAlarm.alarmCode'), dataIndex: 'alarmCode', - align: 'center', - width: 5, + align: 'left', + width: 100, }, { title: t('views.faultManage.activeAlarm.alarmType'), dataIndex: 'alarmType', key: 'alarmType', align: 'left', - width: 5, + width: 120, }, { title: t('views.faultManage.activeAlarm.neName'), dataIndex: 'neName', - align: 'center', - width: 5, + align: 'left', + width: 100, }, { title: t('views.faultManage.activeAlarm.neId'), dataIndex: 'neId', - align: 'center', - width: 5, - }, - { - title: t('views.faultManage.activeAlarm.pvFlag'), - dataIndex: 'pvFlag', - align: 'center', - width: 5, - }, - { - title: t('views.faultManage.activeAlarm.alarmId'), - dataIndex: 'alarmId', - align: 'center', - width: 5, + align: 'left', + width: 100, }, { @@ -212,20 +200,20 @@ let tableColumns: ColumnsType = [ dataIndex: 'ackState', key: 'ackState', align: 'left', - width: 5, + width: 100, }, { title: t('views.faultManage.activeAlarm.ackUser'), dataIndex: 'ackUser', align: 'left', - width: 5, + width: 100, }, { title: t('common.operate'), key: 'alarm_id', - align: 'center', + align: 'left', fixed: 'right', - width: 5, + width: 100, }, ]; @@ -1022,12 +1010,12 @@ onMounted(() => { :data-source="tableState.data" :size="tableState.size" :row-selection="{ - columnWidth: 2, + columnWidth: 48, selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange, }" :pagination="tablePagination" - :scroll="{ x: 2500, y: 400 }" + :scroll="{ x: tableColumns.length * 150, y: 400 }" >