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 }" >