修复注册审核记录不可见问题
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div>
|
||||
<span class="admin-view-heading__eyebrow">账号管理</span>
|
||||
<h1>注册审核</h1>
|
||||
<p>核验并处理店长与员工的账号申请。</p>
|
||||
<p>处理店长注册申请;员工加入申请由店长在小程序员工页面审核。</p>
|
||||
</div>
|
||||
<div class="admin-view-heading__count"><strong>{{ applications.length }}</strong><span>条申请记录</span></div>
|
||||
</header>
|
||||
@@ -22,7 +22,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.key === 'status'">
|
||||
<a-tag :color="record.status === 'APPROVED' ? 'green' : record.status === 'REJECTED' ? 'red' : 'processing'">
|
||||
{{ statusLabel(record.status) }}
|
||||
{{ statusLabel(record.status, record.contentModerationStatus) }}
|
||||
</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'contentModerationStatus'">
|
||||
@@ -33,7 +33,14 @@
|
||||
</template>
|
||||
<template v-else-if="column.key === 'action'">
|
||||
<a-space v-if="record.status === 'PENDING_ADMIN'">
|
||||
<a-button type="primary" size="small" @click="approve(record.id)">通过</a-button>
|
||||
<a-tooltip :title="record.contentModerationStatus === 'APPROVED' ? '' : '门店资料内容审核通过后才可批准'">
|
||||
<a-button
|
||||
type="primary"
|
||||
size="small"
|
||||
:disabled="record.contentModerationStatus !== 'APPROVED'"
|
||||
@click="approve(record.id)"
|
||||
>通过</a-button>
|
||||
</a-tooltip>
|
||||
<a-button danger size="small" @click="reject(record.id)">驳回</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -60,7 +67,10 @@ const columns = [
|
||||
{ title: '操作', key: 'action', width: 150 }
|
||||
]
|
||||
|
||||
const statusLabel = (status: string) => ({ PENDING_ADMIN: '待管理员审核', PENDING_MANAGER: '待店长审核', APPROVED: '已通过', REJECTED: '已驳回' }[status] || status)
|
||||
const statusLabel = (status: string, moderationStatus?: string) => {
|
||||
if (status === 'PENDING_ADMIN' && moderationStatus !== 'APPROVED') return '待资料审核'
|
||||
return ({ PENDING_ADMIN: '待管理员审核', PENDING_MANAGER: '待店长审核', APPROVED: '已通过', REJECTED: '已驳回' }[status] || status)
|
||||
}
|
||||
const moderationLabel = (status?: string) => ({ APPROVED: '已通过', PENDING: '待审核', RETRY: '重试中', REJECTED: '未通过', MISSING: '未提交' }[status || ''] || '审核中')
|
||||
const moderationColor = (status?: string) => ({ APPROVED: 'green', PENDING: 'processing', RETRY: 'orange', REJECTED: 'red', MISSING: 'default' }[status || ''] || 'processing')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user