fix: 补齐签名导入待审通知并展示通道组成本

This commit is contained in:
hectorzhao
2026-09-05 21:22:18 +08:00
parent 15a1f9d8ed
commit 839dba8d9b
13 changed files with 103 additions and 6 deletions
+7 -2
View File
@@ -30,12 +30,12 @@ import {
Users,
UserX,
} from 'lucide-react';
import { adminApi } from '@/api/adminApi';
import { adminApi, type PendingAuditCounts } from '@/api/adminApi';
import { getLastUserActivityAt, readSession, type LoginSession } from '@/api/session';
import { AppShell } from '@/layouts/AppShell';
import { PortalSessionBoundary } from '@/layouts/PortalSessionBoundary';
const EMPTY_PENDING_AUDITS = {
const EMPTY_PENDING_AUDITS: Omit<PendingAuditCounts, 'total'> = {
enterpriseCertifications: 0,
smsAudits: 0,
templates: 0,
@@ -153,6 +153,11 @@ function AdminAuthenticatedLayout({ session }: { session: LoginSession }) {
{ label: '短信审核待审', count: pendingAudits.smsAudits, to: '/admin/sms-audit' },
{ label: '模板待审', count: pendingAudits.templates, to: '/admin/templates' },
{ label: '签名待审', count: pendingAudits.signatures, to: '/admin/signatures' },
{
label: '签名导入待审',
count: pendingAudits.signatureImports ?? 0,
to: '/admin/signatures?tab=import',
},
{ label: '引流信息待审', count: pendingAudits.drainageInfos, to: '/admin/drainage-audits' },
]}
navSections={[