refactor(user-pending): 优化用户待审核页面数据及界面展示
- 注释掉批量删除按钮,暂时禁用该功能 - 将所有店铺名称字段由storeName改为shopName,保持一致性 - 精简操作栏中的按钮,删除“修改”、“重置密码”等按钮,仅保留“审核”和“删除” - 移除邮箱和证件号码列配置,简化表格字段 - 调整注册时间列,不再支持排序功能 - 删除数据请求参数中的auditPending字段,修改接口调用参数结构
This commit is contained in:
@@ -25,18 +25,18 @@
|
||||
</template>
|
||||
<span>批量审核</span>
|
||||
</a-button>
|
||||
<a-button
|
||||
danger
|
||||
type="primary"
|
||||
class="ele-btn-icon"
|
||||
:disabled="selection.length === 0"
|
||||
@click="removeBatch"
|
||||
>
|
||||
<template #icon>
|
||||
<delete-outlined />
|
||||
</template>
|
||||
<span>批量删除</span>
|
||||
</a-button>
|
||||
<!-- <a-button-->
|
||||
<!-- danger-->
|
||||
<!-- type="primary"-->
|
||||
<!-- class="ele-btn-icon"-->
|
||||
<!-- :disabled="selection.length === 0"-->
|
||||
<!-- @click="removeBatch"-->
|
||||
<!-- >-->
|
||||
<!-- <template #icon>-->
|
||||
<!-- <delete-outlined />-->
|
||||
<!-- </template>-->
|
||||
<!-- <span>批量删除</span>-->
|
||||
<!-- </a-button>-->
|
||||
<a-input-search
|
||||
allow-clear
|
||||
v-model:value="searchText"
|
||||
@@ -61,8 +61,8 @@
|
||||
<template v-if="column.key === 'nickname'">
|
||||
<span>{{ record.nickname }}</span>
|
||||
</template>
|
||||
<template v-if="column.key === 'storeName'">
|
||||
<span :title="record.storeName">{{ record.storeName || '-' }}</span>
|
||||
<template v-if="column.key === 'shopName'">
|
||||
<span :title="record.shopName">{{ record.shopName || '-' }}</span>
|
||||
</template>
|
||||
<template v-if="column.key === 'mobile'">
|
||||
<span v-if="hasRole('superAdmin')">{{ record.phone }}</span>
|
||||
@@ -109,18 +109,7 @@
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" v-if="record.auditStatus === 0 || record.auditStatus === 2" />
|
||||
<a v-if="record.auditStatus === 0 || record.auditStatus === 2" @click.stop="openAudit(record)">审核</a>
|
||||
<a-divider type="vertical" />
|
||||
<!-- <a @click="resetPsw(record)">重置</a>-->
|
||||
<a-popconfirm
|
||||
placement="topRight"
|
||||
title="确定要删除此用户吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
@@ -150,7 +139,7 @@
|
||||
style="margin-bottom: 16px; padding: 12px; background: #f5f5f5; border-radius: 4px;"
|
||||
>
|
||||
<p style="margin-bottom: 8px;">
|
||||
<strong>店名:</strong>{{ currentAuditUser.storeName || '-' }}
|
||||
<strong>店名:</strong>{{ currentAuditUser.shopName || '-' }}
|
||||
</p>
|
||||
<p style="margin-bottom: 8px;">
|
||||
<strong>姓名:</strong>{{ currentAuditUser.realName || currentAuditUser.nickname || '-' }}
|
||||
@@ -336,19 +325,6 @@ const columns = ref<ColumnItem[]>([
|
||||
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<ColumnItem[]>([
|
||||
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 });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user