feat: add A-card operations frontend and backend foundation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user