From 239b9fea44e86511ba9a4b46bb247bd776011f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 12 Jul 2026 01:55:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(user-pending):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=BE=85=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=8A=E7=95=8C=E9=9D=A2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉批量删除按钮,暂时禁用该功能 - 将所有店铺名称字段由storeName改为shopName,保持一致性 - 精简操作栏中的按钮,删除“修改”、“重置密码”等按钮,仅保留“审核”和“删除” - 移除邮箱和证件号码列配置,简化表格字段 - 调整注册时间列,不再支持排序功能 - 删除数据请求参数中的auditPending字段,修改接口调用参数结构 --- src/views/system/user/pending/index.vue | 61 +++++++------------------ 1 file changed, 16 insertions(+), 45 deletions(-) diff --git a/src/views/system/user/pending/index.vue b/src/views/system/user/pending/index.vue index 27f43b1..c58392c 100644 --- a/src/views/system/user/pending/index.vue +++ b/src/views/system/user/pending/index.vue @@ -25,18 +25,18 @@ 批量审核 - - - - - 批量删除 - + + + + + + + + + + + + {{ record.nickname }} - - {{ record.storeName || '-' }} + + {{ record.shopName || '-' }} {{ record.phone }} @@ -109,18 +109,7 @@ - 修改 - 审核 - - - - 删除 - @@ -150,7 +139,7 @@ style="margin-bottom: 16px; padding: 12px; background: #f5f5f5; border-radius: 4px;" > - 店名:{{ currentAuditUser.storeName || '-' }} + 店名:{{ currentAuditUser.shopName || '-' }} 姓名:{{ currentAuditUser.realName || currentAuditUser.nickname || '-' }} @@ -336,19 +325,6 @@ const columns = ref([ key: 'region', showSorterTooltip: false }, - { - title: '邮箱', - dataIndex: 'email', - align: 'center', - hideInTable: true, - showSorterTooltip: false - }, - { - title: '证件号码', - dataIndex: 'idCard', - align: 'center', - hideInTable: true - }, { title: '出生日期', dataIndex: 'birthday', @@ -373,15 +349,11 @@ const columns = ref([ title: '审核状态', dataIndex: 'auditStatus', key: 'auditStatus', - align: 'center', width: 100 }, { title: '注册时间', dataIndex: 'createTime', - sorter: true, - showSorterTooltip: false, - ellipsis: true, customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') }, { @@ -403,8 +375,7 @@ const defaultWhere = reactive({ const datasource: DatasourceFunction = ({ page, limit, where, orders }) => { const params = { ...where, - keywords: searchText.value, - auditPending: true + keywords: searchText.value }; return pageUsers({ page, limit, ...params, ...orders }); };
- 店名:{{ currentAuditUser.storeName || '-' }} + 店名:{{ currentAuditUser.shopName || '-' }}
姓名:{{ currentAuditUser.realName || currentAuditUser.nickname || '-' }} @@ -336,19 +325,6 @@ const columns = ref([ key: 'region', showSorterTooltip: false }, - { - title: '邮箱', - dataIndex: 'email', - align: 'center', - hideInTable: true, - showSorterTooltip: false - }, - { - title: '证件号码', - dataIndex: 'idCard', - align: 'center', - hideInTable: true - }, { title: '出生日期', dataIndex: 'birthday', @@ -373,15 +349,11 @@ const columns = ref([ title: '审核状态', dataIndex: 'auditStatus', key: 'auditStatus', - align: 'center', width: 100 }, { title: '注册时间', dataIndex: 'createTime', - sorter: true, - showSorterTooltip: false, - ellipsis: true, customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss') }, { @@ -403,8 +375,7 @@ const defaultWhere = reactive({ const datasource: DatasourceFunction = ({ page, limit, where, orders }) => { const params = { ...where, - keywords: searchText.value, - auditPending: true + keywords: searchText.value }; return pageUsers({ page, limit, ...params, ...orders }); };