From eb26594f41b020208e2bceace91806da523f15d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 29 Jul 2026 00:52:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(user):=20=E4=BC=98=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E5=92=8C=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表格大小设置为 small,提升视觉紧凑度 - 用户名称显示优先 realName,其次 nickname,缺失时显示 "-" - 邮箱列添加排序功能,支持用户交互排序 - 移除创建时间列的文字省略,完整显示时间信息 --- src/views/system/user/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index bce89a3..b5f2089 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -54,6 +54,7 @@ :datasource="datasource" v-model:selection="selection" :scroll="{ x: 1800 }" + size="small" :where="defaultWhere" :customRow="customRow" cache-key="proSystemUserTable" @@ -125,7 +126,7 @@
- {{ record.realName || '-' }} + {{ record.realName || record.nickname || '-' }} {{ hasRole('superAdmin') ? record.phone : record.mobile }}
@@ -415,6 +416,7 @@ { title: '邮箱', dataIndex: 'email', + sorter: true, showSorterTooltip: false }, { @@ -510,7 +512,6 @@ dataIndex: 'createTime', sorter: true, showSorterTooltip: false, - ellipsis: true, customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') }, {