From b740f6b5fd641992a44cf5a2bfd8b7593af48450 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 13 Mar 2025 11:05:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A1=A8=E6=A0=BC=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=AE=BD=E5=BA=A6width200px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faultManage/active-alarm/index.vue | 8 +------- src/views/faultManage/event/index.vue | 2 +- src/views/faultManage/history-alarm/index.vue | 10 ++-------- src/views/logManage/alarm/index.vue | 4 ++-- src/views/logManage/forwarding/index.vue | 6 +++--- src/views/system/dept/index.vue | 2 +- src/views/system/log/login/index.vue | 7 +++---- src/views/system/log/operate/index.vue | 6 +++--- src/views/system/role/index.vue | 2 +- src/views/system/user/index.vue | 2 +- 10 files changed, 18 insertions(+), 31 deletions(-) diff --git a/src/views/faultManage/active-alarm/index.vue b/src/views/faultManage/active-alarm/index.vue index 3a42c7a1..acdaefb7 100644 --- a/src/views/faultManage/active-alarm/index.vue +++ b/src/views/faultManage/active-alarm/index.vue @@ -193,7 +193,7 @@ let tableColumns: ColumnsType = [ title: t('views.faultManage.activeAlarm.eventTime'), dataIndex: 'eventTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (typeof opt.value === 'number') { return parseDateToStr(+opt.value); @@ -232,12 +232,6 @@ let tableColumns: ColumnsType = [ align: 'left', width: 100, }, - { - title: t('views.ne.neInfo.pvflag'), - dataIndex: 'pvFlag', - align: 'left', - width: 150, - }, { title: t('common.operate'), key: 'id', diff --git a/src/views/faultManage/event/index.vue b/src/views/faultManage/event/index.vue index 486e2ff6..95ebba77 100644 --- a/src/views/faultManage/event/index.vue +++ b/src/views/faultManage/event/index.vue @@ -132,7 +132,7 @@ let tableColumns: ColumnsType = [ title: t('views.faultManage.activeAlarm.eventTime'), dataIndex: 'eventTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (typeof opt.value === 'number') { return parseDateToStr(+opt.value); diff --git a/src/views/faultManage/history-alarm/index.vue b/src/views/faultManage/history-alarm/index.vue index 71d06956..5bc1f21c 100644 --- a/src/views/faultManage/history-alarm/index.vue +++ b/src/views/faultManage/history-alarm/index.vue @@ -170,7 +170,7 @@ let tableColumns: ColumnsType = [ title: t('views.faultManage.activeAlarm.eventTime'), dataIndex: 'eventTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (typeof opt.value === 'number') { return parseDateToStr(+opt.value); @@ -209,12 +209,6 @@ let tableColumns: ColumnsType = [ align: 'left', width: 100, }, - { - title: t('views.ne.neInfo.pvflag'), - dataIndex: 'pvFlag', - align: 'left', - width: 150, - }, { title: t('views.faultManage.activeAlarm.clearUser'), dataIndex: 'clearUser', @@ -232,7 +226,7 @@ let tableColumns: ColumnsType = [ title: t('views.faultManage.activeAlarm.clearTime'), dataIndex: 'clearTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (typeof opt.value === 'number') { return parseDateToStr(+opt.value); diff --git a/src/views/logManage/alarm/index.vue b/src/views/logManage/alarm/index.vue index fa1ad9e7..e53cfb2d 100644 --- a/src/views/logManage/alarm/index.vue +++ b/src/views/logManage/alarm/index.vue @@ -98,7 +98,7 @@ type TabeStateType = { let tableState: TabeStateType = reactive({ loading: false, size: 'middle', - seached: false, + seached: true, data: [], }); @@ -177,7 +177,7 @@ let tableColumns: ColumnsType = [ if (!opt.value) return ''; return parseDateToStr(+opt.value); }, - width: 150, + width: 200, }, { title: t('views.logManage.alarm.logTime'), diff --git a/src/views/logManage/forwarding/index.vue b/src/views/logManage/forwarding/index.vue index 58e02b2b..edaff875 100644 --- a/src/views/logManage/forwarding/index.vue +++ b/src/views/logManage/forwarding/index.vue @@ -93,7 +93,7 @@ type TabeStateType = { let tableState: TabeStateType = reactive({ loading: false, size: 'middle', - seached: false, + seached: true, data: [], }); @@ -191,7 +191,7 @@ let tableColumns: ColumnsType = reactive([ if (!opt.value) return ''; return parseDateToStr(+opt.value); }, - width: 150, + width: 200, }, { title: t('views.logManage.forwarding.logTime'), @@ -201,7 +201,7 @@ let tableColumns: ColumnsType = reactive([ if (!opt.value) return ''; return parseDateToStr(+opt.value); }, - width: 150, + width: 200, }, ]); diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 762e3ecd..5d634f32 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -108,7 +108,7 @@ let tableColumns: ColumnsType = [ title: t('views.system.dept.createTime'), dataIndex: 'createTime', align: 'center', - width: 150, + width: 200, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); diff --git a/src/views/system/log/login/index.vue b/src/views/system/log/login/index.vue index 8e001542..a0cf877c 100644 --- a/src/views/system/log/login/index.vue +++ b/src/views/system/log/login/index.vue @@ -134,13 +134,13 @@ let tableColumns: ColumnsType = [ title: t('views.system.log.login.status'), dataIndex: 'statusFlag', key: 'statusFlag', - align: 'center', + align: 'left', width: 100, }, { title: t('views.system.log.login.loginTime'), dataIndex: 'loginTime', - align: 'center', + align: 'left', width: 200, customRender(opt) { if (+opt.value <= 0) return ''; @@ -151,7 +151,6 @@ let tableColumns: ColumnsType = [ title: t('views.system.log.login.info'), dataIndex: 'msg', align: 'left', - width: 200, }, ]; @@ -534,7 +533,7 @@ onMounted(() => { :loading="tableState.loading" :data-source="tableState.data" :size="tableState.size" - :scroll="{ x: tableColumns.length * 150 }" + :scroll="{ x: tableColumns.length * 180 }" :pagination="tablePagination" :row-selection="{ type: 'checkbox', diff --git a/src/views/system/log/operate/index.vue b/src/views/system/log/operate/index.vue index 56bb228d..385b3bc1 100644 --- a/src/views/system/log/operate/index.vue +++ b/src/views/system/log/operate/index.vue @@ -139,13 +139,13 @@ let tableColumns: ColumnsType = [ dataIndex: 'statusFlag', key: 'statusFlag', align: 'left', - width: 150, + width: 100, }, { title: t('views.system.log.operate.operDate'), dataIndex: 'operaTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); @@ -156,7 +156,7 @@ let tableColumns: ColumnsType = [ dataIndex: 'costTime', key: 'costTime', align: 'right', - width: 150, + width: 100, customRender(opt) { return `${opt.value} ms`; }, diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index c882b42e..21e93468 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -144,7 +144,7 @@ let tableColumns: ColumnsType = [ title: t('views.system.role.createTime'), dataIndex: 'createTime', align: 'center', - width: 150, + width: 200, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c8153e5b..73506555 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -158,7 +158,7 @@ let tableColumns: ColumnsType = [ title: t('views.system.user.loginTime'), dataIndex: 'loginTime', align: 'left', - width: 150, + width: 200, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value);