From 15294f5c1cd2df50bbd3664f96b4fb4fa21d0d20 Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Fri, 10 Jul 2026 08:45:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(F006-W17.6):=20=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=88=97=E5=B1=85=E4=B8=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20(9=20=E5=88=97=E5=8A=A0=20align=20center,=20?= =?UTF-8?q?=E4=BD=99=E9=A2=9D=E4=BF=9D=E7=95=99=20right)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/user/UserListView.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/modules/user/UserListView.vue b/src/modules/user/UserListView.vue index 2fabc77..5eb2300 100644 --- a/src/modules/user/UserListView.vue +++ b/src/modules/user/UserListView.vue @@ -53,20 +53,22 @@ const query = reactive({ }) const columns: any[] = [ - { type: 'selection', width: 50, fixed: 'left' }, - { prop: 'id', label: '用户ID', width: 100 }, - { prop: 'nickName', label: '用户昵称', minWidth: 160 }, - { prop: 'mobile', label: '手机号', width: 140 }, + { type: 'selection', width: 50, fixed: 'left', align: 'center' }, + { prop: 'id', label: '用户ID', width: 100, align: 'center' }, + { prop: 'nickName', label: '用户昵称', minWidth: 160, align: 'center' }, + { prop: 'mobile', label: '手机号', width: 140, align: 'center' }, { prop: 'isEnterprise', label: '是否企业认证', width: 140, + align: 'center', formatter: (row: FrontUser) => row.isEnterprise === 1 ? '是' : '否' }, { prop: 'enterpriseName', label: '关联企业', minWidth: 200, + align: 'center', formatter: (row: FrontUser) => row.enterpriseName || '--' }, { @@ -80,15 +82,17 @@ const columns: any[] = [ prop: 'enabled', label: '禁用标识', width: 110, + align: 'center', slot: 'enabled' }, { prop: 'createDate', label: '注册时间', width: 180, + align: 'center', formatter: (row: FrontUser) => fmtDate(row.createDate) }, - { label: '操作', width: 140, slot: 'action', fixed: 'right' } + { label: '操作', width: 140, slot: 'action', fixed: 'right', align: 'center' } ] function fmtDate(ts: number | null | undefined) {