From f848089742b66b80e3ee00ba354c29b653ecd2ed Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 10 Jan 2024 16:24:10 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/log/login/index.vue | 35 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/src/views/system/log/login/index.vue b/src/views/system/log/login/index.vue index 439a60b8..6926e1b0 100644 --- a/src/views/system/log/login/index.vue +++ b/src/views/system/log/login/index.vue @@ -100,53 +100,62 @@ let tableColumns: ColumnsType = [ { title: t('views.system.log.login.operId'), dataIndex: 'loginId', - align: 'center', + align: 'left', + width: 100, }, { title: t('views.system.log.login.account'), dataIndex: 'userName', - align: 'center', + align: 'left', + width: 150, }, { title: t('views.system.log.login.loginIp'), dataIndex: 'ipaddr', - align: 'center', + align: 'left', + width: 150, }, { title: t('views.system.log.login.loginLoc'), dataIndex: 'loginLocation', - align: 'center', + align: 'left', + width: 150, }, { title: t('views.system.log.login.os'), dataIndex: 'os', - align: 'center', + align: 'left', + width: 200, }, { title: t('views.system.log.login.browser'), dataIndex: 'browser', - align: 'center', + align: 'left', + width: 200, }, { title: t('views.system.log.login.status'), dataIndex: 'status', key: 'status', align: 'center', - }, - { - title: t('views.system.log.login.info'), - dataIndex: 'msg', - align: 'center', - }, + width: 100, + }, { title: t('views.system.log.login.loginTime'), dataIndex: 'loginTime', align: 'center', + width: 200, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); }, }, + { + title: t('views.system.log.login.info'), + dataIndex: 'msg', + align: 'left', + width: 200, + }, ]; /**表格分页器参数 */ @@ -541,7 +550,7 @@ onMounted(() => { :data-source="tableState.data" :size="tableState.size" :row-class-name="fnTableStriped" - :scroll="{ x: true }" + :scroll="{ x: tableColumns.length * 150 }" :pagination="tablePagination" :row-selection="{ type: 'checkbox',