refactor(user-pending): 优化用户待审核页面数据及界面展示
- 注释掉批量删除按钮,暂时禁用该功能 - 将所有店铺名称字段由storeName改为shopName,保持一致性 - 精简操作栏中的按钮,删除“修改”、“重置密码”等按钮,仅保留“审核”和“删除” - 移除邮箱和证件号码列配置,简化表格字段 - 调整注册时间列,不再支持排序功能 - 删除数据请求参数中的auditPending字段,修改接口调用参数结构
This commit is contained in:
@@ -25,18 +25,18 @@
|
|||||||
</template>
|
</template>
|
||||||
<span>批量审核</span>
|
<span>批量审核</span>
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<!-- <a-button-->
|
||||||
danger
|
<!-- danger-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
class="ele-btn-icon"
|
<!-- class="ele-btn-icon"-->
|
||||||
:disabled="selection.length === 0"
|
<!-- :disabled="selection.length === 0"-->
|
||||||
@click="removeBatch"
|
<!-- @click="removeBatch"-->
|
||||||
>
|
<!-- >-->
|
||||||
<template #icon>
|
<!-- <template #icon>-->
|
||||||
<delete-outlined />
|
<!-- <delete-outlined />-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
<span>批量删除</span>
|
<!-- <span>批量删除</span>-->
|
||||||
</a-button>
|
<!-- </a-button>-->
|
||||||
<a-input-search
|
<a-input-search
|
||||||
allow-clear
|
allow-clear
|
||||||
v-model:value="searchText"
|
v-model:value="searchText"
|
||||||
@@ -61,8 +61,8 @@
|
|||||||
<template v-if="column.key === 'nickname'">
|
<template v-if="column.key === 'nickname'">
|
||||||
<span>{{ record.nickname }}</span>
|
<span>{{ record.nickname }}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'storeName'">
|
<template v-if="column.key === 'shopName'">
|
||||||
<span :title="record.storeName">{{ record.storeName || '-' }}</span>
|
<span :title="record.shopName">{{ record.shopName || '-' }}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'mobile'">
|
<template v-if="column.key === 'mobile'">
|
||||||
<span v-if="hasRole('superAdmin')">{{ record.phone }}</span>
|
<span v-if="hasRole('superAdmin')">{{ record.phone }}</span>
|
||||||
@@ -109,18 +109,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<a-space>
|
<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 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>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -150,7 +139,7 @@
|
|||||||
style="margin-bottom: 16px; padding: 12px; background: #f5f5f5; border-radius: 4px;"
|
style="margin-bottom: 16px; padding: 12px; background: #f5f5f5; border-radius: 4px;"
|
||||||
>
|
>
|
||||||
<p style="margin-bottom: 8px;">
|
<p style="margin-bottom: 8px;">
|
||||||
<strong>店名:</strong>{{ currentAuditUser.storeName || '-' }}
|
<strong>店名:</strong>{{ currentAuditUser.shopName || '-' }}
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-bottom: 8px;">
|
<p style="margin-bottom: 8px;">
|
||||||
<strong>姓名:</strong>{{ currentAuditUser.realName || currentAuditUser.nickname || '-' }}
|
<strong>姓名:</strong>{{ currentAuditUser.realName || currentAuditUser.nickname || '-' }}
|
||||||
@@ -336,19 +325,6 @@ const columns = ref<ColumnItem[]>([
|
|||||||
key: 'region',
|
key: 'region',
|
||||||
showSorterTooltip: false
|
showSorterTooltip: false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '邮箱',
|
|
||||||
dataIndex: 'email',
|
|
||||||
align: 'center',
|
|
||||||
hideInTable: true,
|
|
||||||
showSorterTooltip: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '证件号码',
|
|
||||||
dataIndex: 'idCard',
|
|
||||||
align: 'center',
|
|
||||||
hideInTable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '出生日期',
|
title: '出生日期',
|
||||||
dataIndex: 'birthday',
|
dataIndex: 'birthday',
|
||||||
@@ -373,15 +349,11 @@ const columns = ref<ColumnItem[]>([
|
|||||||
title: '审核状态',
|
title: '审核状态',
|
||||||
dataIndex: 'auditStatus',
|
dataIndex: 'auditStatus',
|
||||||
key: 'auditStatus',
|
key: 'auditStatus',
|
||||||
align: 'center',
|
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
sorter: true,
|
|
||||||
showSorterTooltip: false,
|
|
||||||
ellipsis: true,
|
|
||||||
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
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 datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
||||||
const params = {
|
const params = {
|
||||||
...where,
|
...where,
|
||||||
keywords: searchText.value,
|
keywords: searchText.value
|
||||||
auditPending: true
|
|
||||||
};
|
};
|
||||||
return pageUsers({ page, limit, ...params, ...orders });
|
return pageUsers({ page, limit, ...params, ...orders });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user