feat(keywordusage): 新增关键词使用记录并归位店铺管理菜单

V175 把品牌Gating库从数据管理组迁到店铺管理组(排序85),并在其后新增
关键词使用记录独立菜单(排序86)。后端新增只读查询模块,按公司范围读取
keyword_usage/keyword_add_log/keyword_delete_log,前端提供使用/删除记录、
统计卡与筛选。
This commit is contained in:
2026-10-25 22:28:17 +08:00
parent 23c1402a75
commit 9b2469ec33
24 changed files with 1623 additions and 4 deletions
@@ -41,6 +41,8 @@ export const COMPANY_SCOPED_PAGES: readonly CompanyScopedPage[] = [
// 而是「本公司账号名下的店铺」:后端由 DataReadScope 把公司 → 成员账号 → biz_shop_manage.created_by_id 逐级推导,
// 前端只负责把 activeId 当 company_id 送下去。
{ menuKey: 'admin_shop_data_duplicate_check', apiFiles: ['src/pages/tasks/duplicate-console-api.ts'], pageFiles: ['src/pages/tasks/DuplicateCheckPage.vue'] },
// 关键词使用记录(2026-10-25):只读留痕按行 company_id 收窄;超管切 tab 重取,非超管后端强制本公司。
{ menuKey: 'admin_keyword_usage', apiFiles: ['src/pages/tasks/keyword-usage-api.ts'], pageFiles: ['src/pages/tasks/KeywordUsagePage.vue'] },
{ menuKey: 'admin_shop_data_crawl_tasks', apiFiles: ['src/pages/tasks/shop-data-api.ts'], pageFiles: ['src/pages/tasks/ShopDataTasksPage.vue'] },
// 批次 4(控制方 2026-10-05 点名「菜单权限和用户管理也要区分公司 tab 的数据」)。
// 这一页的后端早就认 company_id(AdminUserService 只在**站点超管**身上用它筛,公司超管恒锁本公司),
@@ -76,6 +76,10 @@ export const OPERATION_GUIDES: Record<string, OperationGuideData> = {
text: '维护不符合规则的品牌(品牌Gating / 类目Gating)。新增后可用下方筛选快速回查;云端 Gating 库与前端排查软件同步同一份数据,命中后会自动拦截。',
steps: ['新增或批量导入', '筛选回查', '按需解除或删除'],
},
admin_keyword_usage: {
text: '本页记录所有关键词操作,只读、不可删除、永久留痕可追溯;与桌面端互通:桌面复制、添加、删除关键词会自动写入本页,两端同源。',
steps: ['选择公司与筛选条件', '切换使用/删除记录', '核对操作人与时间'],
},
// admin_shop_data_duplicate_check(店铺撞款监控)为例外页:不展示全局提示条,不参与对齐。
admin_image_video_tasks: {
text: '可先使用筛选缩小任务范围,再查看任务状态、结果和权限范围。',
@@ -0,0 +1,528 @@
<script setup lang="ts">
/**
* 关键词使用记录(独立菜单 admin_keyword_usage):只读展示 keyword_usage / keyword_add_log /
* keyword_delete_log,按公司 tab 取数。口径对齐独立小网页后台 v1.2.6g。
*/
import { computed, onMounted, reactive, ref, watch } from 'vue'
import { formatDateTime } from '@/utils/datetime'
import { useAdminSessionStore } from '@/stores/admin-session'
import { useCompanyTabStore } from '@/stores/company-tab'
import { actionableErrorText } from '@/components/admin-feedback'
import OldPagination from '@/components/OldPagination.vue'
import LoadFailureBar from '@/components/LoadFailureBar.vue'
import {
KEYWORD_USAGE_SCENES,
createKeywordUsageFilter,
keywordUsageCountsText,
keywordUsageSceneLabel,
type KeywordUsageCounts,
type KeywordUsageFilter,
type KeywordUsageOverview,
type KeywordUsageRow,
} from './keyword-usage-model.ts'
import {
fetchKeywordUsage,
fetchKeywordUsageDeletes,
fetchKeywordUsageOverview,
} from './keyword-usage-api.ts'
const companyTab = useCompanyTabStore()
const session = useAdminSessionStore()
const me = computed(() => session.user?.username || '')
const filter = reactive<KeywordUsageFilter>(createKeywordUsageFilter())
const activeTab = ref<'usage' | 'deletes'>('usage')
const loadError = ref('')
const overview = ref<KeywordUsageOverview | null>(null)
const overviewLoading = ref(false)
const usageRows = ref<KeywordUsageRow[]>([])
const usageTotal = ref(0)
const usagePage = ref(1)
const usagePageSize = ref(15)
const usageCounts = ref<KeywordUsageCounts>({ copy: 0, copyExisting: 0, copyDeleted: 0, add: 0 })
const usageLoading = ref(false)
const deleteRows = ref<KeywordUsageRow[]>([])
const deleteTotal = ref(0)
const deletePage = ref(1)
const deletePageSize = ref(15)
const deleteLoading = ref(false)
const statsCards = computed(() => {
const stats = overview.value?.stats
return [
{ label: '复制关键词', value: stats?.used ?? 0, tone: 'primary' },
{ label: '现存词', value: stats?.exist ?? 0, tone: 'ok' },
{ label: '已删除词留痕', value: stats?.deletedKw ?? 0, tone: 'danger' },
{ label: '添加关键词', value: stats?.added ?? 0, tone: 'info' },
{ label: '使用记录合计', value: stats?.totalUse ?? 0, tone: '' },
{ label: '删除记录', value: stats?.deletes ?? 0, tone: 'violet' },
]
})
const userOptions = computed(() => overview.value?.users ?? [])
const countryOptions = computed(() => overview.value?.countries ?? [])
const usageSummary = computed(() => keywordUsageCountsText(usageCounts.value, usageTotal.value))
function queryParams() {
return {
companyId: companyTab.requestCompanyId,
user: filter.user,
country: filter.country,
keyword: filter.keyword.trim(),
scene: filter.scene,
}
}
async function loadOverview(): Promise<void> {
overviewLoading.value = true
try {
overview.value = await fetchKeywordUsageOverview({ companyId: companyTab.requestCompanyId })
} catch (error) {
loadError.value = actionableErrorText(error)
} finally {
overviewLoading.value = false
}
}
async function loadUsage(page = usagePage.value): Promise<void> {
usageLoading.value = true
try {
const result = await fetchKeywordUsage({ ...queryParams(), page, pageSize: usagePageSize.value })
usageRows.value = result.rows
usageTotal.value = result.total
usageCounts.value = result.counts
usagePage.value = page
} catch (error) {
loadError.value = actionableErrorText(error)
} finally {
usageLoading.value = false
}
}
async function loadDeletes(page = deletePage.value): Promise<void> {
deleteLoading.value = true
try {
const result = await fetchKeywordUsageDeletes({ ...queryParams(), page, pageSize: deletePageSize.value })
deleteRows.value = result.rows
deleteTotal.value = result.total
deletePage.value = page
} catch (error) {
loadError.value = actionableErrorText(error)
} finally {
deleteLoading.value = false
}
}
async function reload(): Promise<void> {
loadError.value = ''
await Promise.all([loadOverview(), loadUsage(1), loadDeletes(1)])
}
function query(): void {
loadError.value = ''
void Promise.all([loadUsage(1), loadDeletes(1)])
}
function reset(): void {
Object.assign(filter, createKeywordUsageFilter())
query()
}
function changeUsagePageSize(size: number): void {
usagePageSize.value = size
void loadUsage(1)
}
function changeDeletePageSize(size: number): void {
deletePageSize.value = size
void loadDeletes(1)
}
watch(() => companyTab.activeId, () => {
filter.user = ''
filter.country = ''
usagePage.value = 1
deletePage.value = 1
void reload()
})
onMounted(() => {
void reload()
})
</script>
<template>
<div class="kw-page">
<LoadFailureBar v-if="loadError" :message="loadError" @retry="reload" />
<section class="kw-cards" v-loading="overviewLoading">
<div v-for="card in statsCards" :key="card.label" class="kw-card" :class="card.tone">
<div class="kw-n">{{ card.value.toLocaleString() }}</div>
<div class="kw-t">{{ card.label }}</div>
</div>
</section>
<section class="kw-panel">
<div class="kw-panel-head">筛选条件</div>
<div class="kw-panel-body">
<div class="kw-filters">
<label class="kw-field">
<span>使用者</span>
<select v-model="filter.user">
<option value="">全部使用者</option>
<option v-for="user in userOptions" :key="user" :value="user">{{ user }}</option>
</select>
</label>
<label class="kw-field">
<span>国家</span>
<select v-model="filter.country">
<option value="">全部国家</option>
<option v-for="country in countryOptions" :key="country" :value="country">{{ country }}</option>
</select>
</label>
<label class="kw-field kw-field-wide">
<span>关键词</span>
<input v-model="filter.keyword" placeholder="搜索关键词" @keyup.enter="query" />
</label>
<label class="kw-field">
<span>场景</span>
<select v-model="filter.scene">
<option value="">全部场景</option>
<option v-for="scene in KEYWORD_USAGE_SCENES" :key="scene" :value="scene">{{ scene }}</option>
</select>
</label>
<div class="kw-actions">
<button class="kw-btn kw-btn-primary" type="button" @click="query">查询</button>
<button class="kw-btn kw-btn-ghost" type="button" @click="reset">重置</button>
</div>
</div>
</div>
</section>
<div class="kw-tabs">
<button class="kw-tab" :class="{ active: activeTab === 'usage' }" type="button" @click="activeTab = 'usage'">使用记录</button>
<button class="kw-tab" :class="{ active: activeTab === 'deletes' }" type="button" @click="activeTab = 'deletes'">删除记录</button>
</div>
<section v-show="activeTab === 'usage'" class="kw-panel">
<div class="kw-panel-head">
使用记录
<span class="kw-sub">复制关键词 + 添加关键词,按时间倒序;绿色为本人的记录</span>
</div>
<div class="kw-panel-body">
<div class="kw-table-wrap" v-loading="usageLoading">
<table v-if="usageRows.length" class="kw-table">
<thead>
<tr>
<th style="width: 130px">使用者</th>
<th style="width: 90px">国家</th>
<th>关键词</th>
<th style="width: 140px">使用场景</th>
<th style="width: 170px">使用时间</th>
</tr>
</thead>
<tbody>
<tr v-for="(row, index) in usageRows" :key="`usage-${row.time}-${index}`" :class="{ mine: row.userName === me }">
<td class="kw-user">{{ row.userName || '—' }}</td>
<td>{{ row.country || '—' }}</td>
<td class="kw-keyword">{{ row.keyword || '—' }}</td>
<td>
<span class="kw-tag" :class="row.scene === '添加关键词' ? 'add' : 'copy'">
{{ keywordUsageSceneLabel(row.scene) }}
</span>
</td>
<td class="kw-time">{{ formatDateTime(row.time) }}</td>
</tr>
</tbody>
</table>
<div v-else-if="!usageLoading" class="kw-empty">暂无使用记录</div>
</div>
<div class="kw-footer">
<span class="kw-summary">{{ usageSummary }}</span>
<OldPagination
v-if="usageTotal"
:total="usageTotal"
:page="usagePage"
:page-size="usagePageSize"
@change="loadUsage"
@size-change="changeUsagePageSize"
/>
</div>
</div>
</section>
<section v-show="activeTab === 'deletes'" class="kw-panel">
<div class="kw-panel-head">
删除记录
<span class="kw-sub">只读、不可删除、永久留痕可追溯;红色为本人的记录</span>
</div>
<div class="kw-panel-body">
<div class="kw-table-wrap" v-loading="deleteLoading">
<table v-if="deleteRows.length" class="kw-table">
<thead>
<tr>
<th style="width: 130px">删除者</th>
<th style="width: 90px">国家</th>
<th>关键词</th>
<th style="width: 170px">删除时间</th>
</tr>
</thead>
<tbody>
<tr v-for="(row, index) in deleteRows" :key="`delete-${row.time}-${index}`" :class="{ mine: row.userName === me }">
<td class="kw-user">{{ row.userName || '—' }}</td>
<td>{{ row.country || '—' }}</td>
<td class="kw-keyword">{{ row.keyword || '—' }}</td>
<td class="kw-time">{{ formatDateTime(row.time) }}</td>
</tr>
</tbody>
</table>
<div v-else-if="!deleteLoading" class="kw-empty">暂无删除记录</div>
</div>
<div class="kw-footer">
<span class="kw-summary">共 {{ deleteTotal }} 条删除记录 · 只读留痕</span>
<OldPagination
v-if="deleteTotal"
:total="deleteTotal"
:page="deletePage"
:page-size="deletePageSize"
@change="loadDeletes"
@size-change="changeDeletePageSize"
/>
</div>
</div>
</section>
</div>
</template>
<style scoped>
.kw-page {
display: flex;
flex-direction: column;
gap: 14px;
}
.kw-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
}
.kw-card {
background: #fff;
border: 1px solid #e5e9f0;
border-top: 3px solid #9ca3af;
border-radius: 10px;
box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05), 0 4px 18px rgba(20, 30, 60, 0.06);
padding: 12px 14px;
}
.kw-card.primary { border-top-color: #2e5be6; }
.kw-card.ok { border-top-color: #1f9d62; }
.kw-card.danger { border-top-color: #d63a4a; }
.kw-card.info { border-top-color: #0d9488; }
.kw-card.violet { border-top-color: #7c5cd6; }
.kw-card .kw-n {
font-size: 24px;
font-weight: 700;
color: #1c2230;
font-variant-numeric: tabular-nums;
line-height: 1.2;
}
.kw-card .kw-t {
margin-top: 3px;
font-size: 11.5px;
color: #98a1b1;
}
.kw-panel {
background: #fff;
border: 1px solid #e5e9f0;
border-radius: 10px;
box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05), 0 4px 18px rgba(20, 30, 60, 0.06);
overflow: hidden;
}
.kw-panel-head {
padding: 11px 15px;
background: #fafbfd;
border-bottom: 1px solid #e9edf3;
font-size: 13px;
font-weight: 700;
color: #1c2230;
}
.kw-panel-head::before {
content: "";
display: inline-block;
width: 7px;
height: 7px;
border-radius: 2px;
background: #2dd4bf;
margin-right: 8px;
vertical-align: 1px;
}
.kw-sub {
margin-left: 8px;
font-size: 11.5px;
font-weight: 400;
color: #98a1b1;
}
.kw-panel-body {
padding: 14px 15px;
}
.kw-filters {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 10px 12px;
}
.kw-field {
display: flex;
flex-direction: column;
gap: 5px;
min-width: 150px;
}
.kw-field-wide {
min-width: 220px;
}
.kw-field > span {
font-size: 12px;
color: #5a6474;
}
.kw-field input,
.kw-field select {
height: 34px;
padding: 0 10px;
border: 1px solid #d7dce5;
border-radius: 7px;
background: #fbfcfe;
color: #1c2230;
font-family: inherit;
font-size: 13px;
outline: none;
}
.kw-field input:focus,
.kw-field select:focus {
border-color: #2e5be6;
box-shadow: 0 0 0 3px rgba(46, 91, 230, 0.12);
background: #fff;
}
.kw-actions {
display: flex;
gap: 8px;
}
.kw-btn {
height: 34px;
padding: 0 15px;
border: 1px solid transparent;
border-radius: 7px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.kw-btn-primary {
background: #2e5be6;
border-color: #2e5be6;
color: #fff;
}
.kw-btn-primary:hover { background: #1e4bd8; border-color: #1e4bd8; }
.kw-btn-ghost {
background: #fff;
border-color: #d7dce5;
color: #5a6474;
}
.kw-btn-ghost:hover { border-color: #2e5be6; color: #2e5be6; }
.kw-tabs {
display: flex;
gap: 4px;
background: #fff;
border: 1px solid #e5e9f0;
border-radius: 9px;
padding: 4px;
align-self: flex-start;
}
.kw-tab {
padding: 7px 18px;
border: none;
border-radius: 7px;
background: none;
color: #5a6474;
font-family: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.kw-tab:hover { color: #2e5be6; }
.kw-tab.active { background: #2e5be6; color: #fff; }
.kw-table-wrap {
overflow-x: auto;
border: 1px solid #e5e9f0;
border-radius: 9px;
min-height: 90px;
}
.kw-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-size: 12.5px;
}
.kw-table th {
position: sticky;
top: 0;
z-index: 1;
padding: 10px;
background: #f7f9fc;
border-bottom: 1px solid #e5e9f0;
color: #5a6474;
font-size: 12px;
font-weight: 600;
text-align: left;
white-space: nowrap;
}
.kw-table td {
padding: 9px 10px;
border-bottom: 1px solid #eff2f7;
color: #1c2230;
white-space: nowrap;
}
.kw-table tbody tr:hover td { background: #f7faff; }
.kw-table tbody tr:last-child td { border-bottom: none; }
.kw-table tr.mine td { color: #0f9d58; font-weight: 600; }
.kw-user { font-weight: 500; }
.kw-keyword { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.kw-time { color: #5a6474; font-size: 11.5px; }
.kw-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.kw-tag.copy { background: #e8f7f4; color: #0d9488; }
.kw-tag.add { background: #eff6ff; color: #2563eb; }
.kw-empty {
padding: 42px 16px;
text-align: center;
color: #98a1b1;
font-size: 13px;
}
.kw-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 12px;
}
.kw-summary {
font-size: 11.5px;
color: #98a1b1;
}
</style>
@@ -0,0 +1,39 @@
/** 关键词使用记录接口适配:/api/admin/keyword-usage 的使用记录、删除记录与概览。 */
import { http } from '@/api/http'
import { unwrap } from '@/api/envelope'
import {
parseKeywordUsageOverview,
parseKeywordUsagePage,
type KeywordUsageOverview,
type KeywordUsagePage,
type KeywordUsageQuery,
} from './keyword-usage-model.ts'
export const KEYWORD_USAGE_ENDPOINT = '/api/admin/keyword-usage'
function toQuery(params: KeywordUsageQuery): Record<string, unknown> {
const query: Record<string, unknown> = {}
if (params.companyId != null) query.company_id = params.companyId
if (params.user) query.user = params.user
if (params.country) query.country = params.country
if (params.keyword) query.keyword = params.keyword
if (params.scene) query.scene = params.scene
if (params.page != null) query.page = params.page
if (params.pageSize != null) query.page_size = params.pageSize
return query
}
export async function fetchKeywordUsage(params: KeywordUsageQuery): Promise<KeywordUsagePage> {
const { data } = await http.get<unknown>(KEYWORD_USAGE_ENDPOINT, { params: toQuery(params) })
return parseKeywordUsagePage(unwrap<unknown>(data))
}
export async function fetchKeywordUsageDeletes(params: KeywordUsageQuery): Promise<KeywordUsagePage> {
const { data } = await http.get<unknown>(`${KEYWORD_USAGE_ENDPOINT}/deletes`, { params: toQuery(params) })
return parseKeywordUsagePage(unwrap<unknown>(data))
}
export async function fetchKeywordUsageOverview(params: KeywordUsageQuery): Promise<KeywordUsageOverview> {
const { data } = await http.get<unknown>(`${KEYWORD_USAGE_ENDPOINT}/overview`, { params: toQuery(params) })
return parseKeywordUsageOverview(unwrap<unknown>(data))
}
@@ -0,0 +1,137 @@
/** 关键词使用记录(独立菜单 admin_keyword_usage):与 /api/admin/keyword-usage 的 camel 契约对齐,纯逻辑。 */
export interface KeywordUsageQuery {
companyId?: number | null
user?: string
country?: string
keyword?: string
scene?: string
page?: number
pageSize?: number
}
export interface KeywordUsageFilter {
user: string
country: string
keyword: string
scene: string
}
export interface KeywordUsageRow {
userName: string
country: string
keyword: string
scene: string
time: string
}
export interface KeywordUsageCounts {
copy: number
copyExisting: number
copyDeleted: number
add: number
}
export interface KeywordUsagePage {
total: number
rows: KeywordUsageRow[]
counts: KeywordUsageCounts
}
export interface KeywordUsageStats {
used: number
exist: number
deletedKw: number
added: number
totalUse: number
deletes: number
}
export interface KeywordUsageOverview {
stats: KeywordUsageStats
users: string[]
countries: string[]
}
export const KEYWORD_USAGE_SCENES = ['已使用', '添加关键词'] as const
export function createKeywordUsageFilter(): KeywordUsageFilter {
return { user: '', country: '', keyword: '', scene: '' }
}
function asRecord(value: unknown): Record<string, unknown> | null {
return value && typeof value === 'object' && !Array.isArray(value) ? value as Record<string, unknown> : null
}
function text(value: unknown): string {
return typeof value === 'string' ? value : value == null ? '' : String(value)
}
function count(value: unknown): number {
const n = Number(value)
return Number.isFinite(n) && n >= 0 ? n : 0
}
function textList(value: unknown): string[] {
return Array.isArray(value) ? value.map(text).filter((item) => item !== '') : []
}
export function parseKeywordUsageRow(value: unknown): KeywordUsageRow | null {
const row = asRecord(value)
if (!row) return null
return {
userName: text(row.userName),
country: text(row.country),
keyword: text(row.keyword),
scene: text(row.scene),
time: text(row.time),
}
}
export function parseKeywordUsagePage(value: unknown): KeywordUsagePage {
const page = asRecord(value)
const counts = asRecord(page?.counts)
const rows = Array.isArray(page?.rows)
? page.rows.map(parseKeywordUsageRow).filter((row): row is KeywordUsageRow => row !== null)
: []
return {
total: count(page?.total),
rows,
counts: {
copy: count(counts?.copy),
copyExisting: count(counts?.copyExisting),
copyDeleted: count(counts?.copyDeleted),
add: count(counts?.add),
},
}
}
export function parseKeywordUsageOverview(value: unknown): KeywordUsageOverview {
const overview = asRecord(value)
const stats = asRecord(overview?.stats)
return {
stats: {
used: count(stats?.used),
exist: count(stats?.exist),
deletedKw: count(stats?.deletedKw),
added: count(stats?.added),
totalUse: count(stats?.totalUse),
deletes: count(stats?.deletes),
},
users: textList(overview?.users),
countries: textList(overview?.countries),
}
}
export function keywordUsageSceneLabel(scene: string): string {
if (scene === '复制关键词') return '已使用(复制)'
if (scene === '添加关键词') return '添加关键词'
if (scene === '删除关键词') return '删除关键词'
return scene || '—'
}
/** 使用记录口径:复制 = 现存词 + 已删除词留痕;添加单列。 */
export function keywordUsageCountsText(counts: KeywordUsageCounts, total: number): string {
return `复制关键词 ${counts.copy} = 现存词 ${counts.copyExisting} + 已删除词 ${counts.copyDeleted}`
+ ` · 添加关键词 ${counts.add} · 合计 ${total} 条`
}
+1
View File
@@ -26,6 +26,7 @@ export const adminPages: AdminPageDef[] = [
{ path: 'account/companies', menuKey: 'admin_companies', title: '公司管理', superAdminOnly: true, load: () => import('@/pages/account/CompaniesPage.vue') },
{ path: 'shop-center/duplicate-check', menuKey: 'admin_shop_data_duplicate_check', title: '店铺撞款监控', companyScoped: true, load: () => import('@/pages/tasks/DuplicateCheckPage.vue') },
{ path: 'shop-center/brand-gating', menuKey: 'admin_brand_gating', title: '品牌Gating库', companyScoped: false, load: () => import('@/pages/tasks/BrandGatingPanel.vue') },
{ path: 'shop-center/keyword-usage', menuKey: 'admin_keyword_usage', title: '关键词使用记录', companyScoped: true, load: () => import('@/pages/tasks/KeywordUsagePage.vue') },
{ path: 'shop-center/keys', menuKey: 'admin_shop_keys', title: '店铺密钥管理', companyScoped: true, load: () => import('@/pages/shop/ShopKeysPage.vue') },
{ path: 'shop-center/shops', menuKey: 'admin_shop_manage', title: '店铺管理', companyScoped: true, load: () => import('@/pages/shop/ShopManagePage.vue') },
{ path: 'records/history', menuKey: 'admin_history', title: '生成记录', companyScoped: true, load: () => import('@/pages/records/RecordsHistoryPage.vue') },