From 092d1991c75bfe5400b8dd5b1fe50b020a9ddf76 Mon Sep 17 00:00:00 2001 From: zou Date: Tue, 18 Aug 2026 15:29:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(F006):=20=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=9A=90=E8=97=8F=E7=94=A8=E6=88=B7ID=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=9D=A1=E4=BB=B6=E4=B8=8E=E5=88=97(=E7=94=A8?= =?UTF-8?q?=E4=B8=8D=E5=88=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/user/UserListView.vue | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/modules/user/UserListView.vue b/src/modules/user/UserListView.vue index 6ccff28..8b4f01d 100644 --- a/src/modules/user/UserListView.vue +++ b/src/modules/user/UserListView.vue @@ -3,7 +3,7 @@ * F006 用户管理 (前台用户列表) - 2026-08-18 v2 简化版 * * 用户反馈: 列表内容简化 - 单行显示、无头像、字段保持原样 (仅 UI 美化) - * 字段: 用户ID / 用户昵称 / 手机号 / 是否企业认证 / 关联企业 / 平台账户余额 / 禁用标识 / 注册时间 / 操作 + * 字段: 用户昵称 / 手机号 / 是否企业认证 / 关联企业 / 平台账户余额 / 禁用标识 / 注册时间 / 操作 (用户ID 已按需求隐藏) * 后端端点: GET /user/user/page / GET /user/user/export / POST /user/user/update / POST /user/user/delete * 保留功能: tab 全部/正常/已禁用(stats 与 tab 解耦) / 搜索 / 导出 / 新建编辑(UserFormDialog) / 批量操作 */ @@ -49,7 +49,6 @@ const exporting = ref(false) const query = reactive({ page: 1, limit: 10, - userId: '', nickName: '', mobile: '', enterpriseName: '', @@ -69,8 +68,7 @@ const CERT_META: Record = const columns: any[] = [ { type: 'selection', width: 48, fixed: 'left', align: 'center' }, - { prop: 'id', label: '用户ID', width: 110, slot: 'id', align: 'center' }, - { prop: 'nickName', label: '用户昵称', minWidth: 140, slot: 'nickName' }, + { prop: 'nickName', label: '用户昵称', minWidth: 200, slot: 'nickName' }, { prop: 'mobile', label: '手机号', width: 140, slot: 'mobile' }, { prop: 'isEnterprise', label: '是否企业认证', width: 120, slot: 'cert', align: 'center' }, { prop: 'enterpriseName', label: '关联企业', minWidth: 180, slot: 'enterpriseName' }, @@ -97,7 +95,6 @@ function fmtDate(ts: number | null | undefined) { */ function buildSearchParams() { const params: any = {} - if (query.userId) params.id = query.userId if (query.nickName) params.nickName = query.nickName if (query.mobile) params.mobile = query.mobile if (query.enterpriseName) params.enterpriseName = query.enterpriseName @@ -179,7 +176,7 @@ function onPageChange(p: number) { query.page = p; load() } function onLimitChange(l: number) { query.limit = l; query.page = 1; load() } function onSearch() { query.page = 1; load() } function onReset() { - query.userId = ''; query.nickName = ''; query.mobile = '' + query.nickName = ''; query.mobile = '' query.enterpriseName = ''; query.isEnterprise = ''; query.enabled = '' activeTab.value = 'all' query.page = 1 @@ -299,7 +296,6 @@ onMounted(load) - - -