feat: 业务链条配置管理导航与顶栏用户名统一
业务链条页增加配置管理入口与返回导航;配置管理页通过 aliasPaths 保持侧栏选中;顶栏用户名与设置个人信息页共用 getAccountDisplayName。
This commit is contained in:
1 parent
d8102e8db8
commit
318f6c0c0c
8 files changed
+544
-507
No files matched your search
@@ -9,6 +9,7 @@ import { motion } from "motion/react";
|
||||
import { Select } from "tdesign-react";
|
||||
import {
|
||||
AlertCircle,
|
||||
ArrowLeft,
|
||||
HelpCircle,
|
||||
Info,
|
||||
Link2,
|
||||
@@ -21,6 +22,7 @@ import {
|
||||
import { toast } from "sonner";
|
||||
|
||||
import { useTheme } from "@/contexts/ThemeContext";
|
||||
import { useRouteNavigate } from "@/core/route-base";
|
||||
import { listAgents } from "@/core/agents/api";
|
||||
import type { Agent } from "@/core/agents/types";
|
||||
import { listChains } from "@/roundtable-planning/api/chains";
|
||||
@@ -34,6 +36,7 @@ import { cn } from "@/lib/utils";
|
||||
import { useDesensitizeSubtree } from "@/roundtable-planning/lib/use-desensitize-subtree";
|
||||
|
||||
export default function BusinessChainMappingPage() {
|
||||
const navigate = useRouteNavigate();
|
||||
const { theme } = useTheme();
|
||||
const isDark = theme === "dark";
|
||||
// 整片脱敏:业务链条映射页展示文本(链条名/描述/席位名/标题)。输入框 Hook 自动跳过。
|
||||
@@ -233,6 +236,20 @@ export default function BusinessChainMappingPage() {
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => navigate("/page/strategy/business-chains")}
|
||||
className={cn(
|
||||
"relative z-10 inline-flex shrink-0 items-center gap-1.5 rounded-[5px] border px-3.5 py-2 text-xs font-semibold transition-all active:scale-95",
|
||||
isDark
|
||||
? "border-white/10 bg-white/5 text-slate-300 hover:bg-white/10 hover:text-slate-100"
|
||||
: "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 hover:text-slate-900",
|
||||
)}
|
||||
>
|
||||
<ArrowLeft className="size-3.5" />
|
||||
返回业务链条
|
||||
</button>
|
||||
</motion.div>
|
||||
|
||||
{/* ── 表格区 ── */}
|
||||
|
||||
Reference in new issue
Block a user