/** Admin 商业秘密保护配置页面 — 密级规则 + 查看留痕 + 导出管控。 */ "use client"; import { ShieldCheck, Lock, Eye, Download, Settings } from "lucide-react"; import { useState } from "react"; import { ClassificationBadge, type ClassificationLevel } from "@/components/shared/ClassificationBadge"; /** 商业秘密保护配置页面。 */ export default function SecurityPage() { const [defaultLevel, setDefaultLevel] = useState("internal"); const [watermarkEnabled, setWatermarkEnabled] = useState(true); const [exportApproval, setExportApproval] = useState(true); const [viewLogRetention, setViewLogRetention] = useState("180"); const levels: ClassificationLevel[] = ["public", "internal", "confidential", "secret"]; return (

商业秘密保护

{/* 默认密级配置 */}

新建数据时的默认密级标签:

{levels.map((level) => ( ))}
{/* 查看留痕 */}
机密/绝密数据查看时自动记录 已启用
留痕数据保留天数 setViewLogRetention(e.target.value)} className="w-20 rounded-md border px-2 py-1 text-sm" />
{/* 导出管控 */}
{/* 审计日志摘要 */}
{[ { user: "张三", action: "查看机密报告", time: "2026-07-14 10:23" }, { user: "李四", action: "导出绝密数据", time: "2026-07-13 16:45" }, { user: "王五", action: "查看机密财务", time: "2026-07-12 09:12" }, ].map((log, i) => (
{log.user} — {log.action} {log.time}
))}
); }