feat: add A-card operations frontend and backend foundation

This commit is contained in:
郑龙捷
2026-09-02 09:54:03 +08:00
parent 9badd3597f
commit ad71259ba5
106 changed files with 12461 additions and 1796 deletions
+7 -1
View File
@@ -24,10 +24,16 @@ export function Topbar({
onSetCurrentWorkspace,
onLogout,
}: TopbarProps) {
const roleLabel = user?.is_system_admin || user?.role_code === "admin"
? "管理员"
: ["business", "business_team", "biz"].includes(user?.role_code ?? "")
? "业务团队"
: "模型团队";
const pageTitles: Record<string, string> = {
home: "工作台",
scripts: "构建脚本",
schedules: "调度配置",
operations: "A卡模型运维",
system: "系统管理",
};
@@ -124,7 +130,7 @@ export function Topbar({
{user?.display_name ?? "未知用户"}
</strong>
<small className="text-[10px] text-[#97a3b1]">
{user?.role_code === "admin" ? "管理员" : "开发人员"}
{roleLabel}
</small>
</span>
</button>