add queued gateway admission and finish admin monitoring
This commit is contained in:
1 parent
8f75ebdf96
commit
0e6fca81b3
12 files changed
+288
-35
No files matched your search
+25
-2
@@ -103,6 +103,29 @@ function accountSaved(user: AuthUser) {
|
||||
userName.value = user.displayName
|
||||
accountSettingsOpen.value = false
|
||||
}
|
||||
|
||||
function openHelp() {
|
||||
accountMenuOpen.value = false
|
||||
if (portal.value === 'user') {
|
||||
navigate('docs')
|
||||
notify('已打开接入文档')
|
||||
return
|
||||
}
|
||||
navigate('admin-settings')
|
||||
notify('平台设置页包含服务器配置说明')
|
||||
}
|
||||
|
||||
function openGlobalSearch() {
|
||||
const query = window.prompt('搜索模型、用户或功能')?.trim()
|
||||
if (!query) return
|
||||
const match = navigation.value.flatMap((group) => group.items).find((item) => `${item.label} ${item.id}`.toLowerCase().includes(query.toLowerCase()))
|
||||
if (match) {
|
||||
navigate(match.id)
|
||||
notify(`已打开:${match.label}`)
|
||||
} else {
|
||||
notify('没有找到匹配的页面,请尝试模型名或功能名')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -144,7 +167,7 @@ function accountSaved(user: AuthUser) {
|
||||
<small>人民币 CNY</small>
|
||||
</div>
|
||||
<div v-else class="security-card"><ShieldCheck :size="17" /><span>管理操作均写入审计日志</span></div>
|
||||
<button class="nav-link" disabled title="帮助中心暂未开放"><CircleHelp :size="18" /><span>帮助中心(暂未开放)</span></button>
|
||||
<button class="nav-link" title="打开帮助与接入文档" @click="openHelp"><CircleHelp :size="18" /><span>帮助中心</span></button>
|
||||
<button class="collapse-control desktop-only" @click="sidebarCollapsed = !sidebarCollapsed">
|
||||
<ChevronRight v-if="sidebarCollapsed" :size="17" />
|
||||
<ChevronLeft v-else :size="17" />
|
||||
@@ -162,7 +185,7 @@ function accountSaved(user: AuthUser) {
|
||||
<div class="breadcrumb"><span>{{ portal === 'admin' ? '管理端' : '用户端' }}</span><ChevronRight :size="14" /><strong>{{ activeLabel }}</strong></div>
|
||||
</div>
|
||||
<div class="topbar-actions">
|
||||
<button class="global-search desktop-only" disabled title="全局搜索暂未开放"><Search :size="16" /><span>搜索(暂未开放)</span><kbd>⌘ K</kbd></button>
|
||||
<button class="global-search desktop-only" title="搜索模型、用户或功能" @click="openGlobalSearch"><Search :size="16" /><span>搜索模型、用户或功能</span><kbd>⌘ K</kbd></button>
|
||||
<button v-if="['admin', 'super_admin'].includes(authUser?.role || '')" class="portal-switch" @click="switchPortal"><ArrowLeftRight :size="16" /><span>{{ portal === 'admin' ? '返回用户端' : '进入管理端' }}</span></button>
|
||||
<button class="icon-button desktop-only" aria-label="通知" @click="notify('当前没有新的通知')"><Bell :size="18" /></button>
|
||||
<div class="account-menu-wrap">
|
||||
|
||||
Reference in new issue
Block a user