重构Salon后台七页紧凑操作台样式

This commit is contained in:
2026-10-26 12:25:14 +08:00
parent e4124d1e37
commit 433853c6a7
7 changed files with 669 additions and 7 deletions
@@ -261,6 +261,7 @@ onMounted(() => {
justify-content: space-between;
min-height: 64px;
gap: 20px;
line-height: normal;
}
.header-left {
@@ -1,5 +1,13 @@
<template>
<div class="privacy-page">
<header class="admin-view-heading">
<div>
<span class="admin-view-heading__eyebrow">账号与内容安全</span>
<h1>隐私与内容复核</h1>
<p>处理账号注销、待审内容与历史手机号加密回填。</p>
</div>
</header>
<a-alert
type="warning"
show-icon
@@ -1,7 +1,14 @@
<template>
<div class="registration-page">
<a-page-header title="工作台注册审核" sub-title="审核店长注册申请" />
<a-card :bordered="false">
<header class="admin-view-heading">
<div>
<span class="admin-view-heading__eyebrow">账号管理</span>
<h1>注册审核</h1>
<p>核验并处理店长与员工的账号申请。</p>
</div>
<div class="admin-view-heading__count"><strong>{{ applications.length }}</strong><span>条申请记录</span></div>
</header>
<div class="registration-table">
<a-table
:columns="columns"
:data-source="applications"
@@ -10,17 +17,23 @@
row-key="id"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'roleType'">{{ record.roleType === 'MANAGER' ? '店长' : '店员' }}</template>
<template v-else-if="column.key === 'status'">{{ statusLabel(record.status) }}</template>
<template v-if="column.key === 'roleType'">
<a-tag :bordered="false">{{ record.roleType === 'MANAGER' ? '店长' : '店员' }}</a-tag>
</template>
<template v-else-if="column.key === 'status'">
<a-tag :color="record.status === 'APPROVED' ? 'green' : record.status === 'REJECTED' ? 'red' : 'processing'">
{{ statusLabel(record.status) }}
</a-tag>
</template>
<template v-else-if="column.key === 'action'">
<a-space v-if="record.status === 'PENDING_ADMIN'">
<a-button type="link" size="small" @click="approve(record.id)">通过</a-button>
<a-button type="link" danger size="small" @click="reject(record.id)">驳回</a-button>
<a-button type="primary" size="small" @click="approve(record.id)">通过</a-button>
<a-button danger size="small" @click="reject(record.id)">驳回</a-button>
</a-space>
</template>
</template>
</a-table>
</a-card>
</div>
</div>
</template>