From eace1109ac9d7168d747cd942c2f91ccd2db0467 Mon Sep 17 00:00:00 2001 From: xiaozhu <2395895331@qq.com> Date: Tue, 4 Aug 2026 14:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=83=A8=E5=88=86=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/app/features/admin/AdminPages.tsx | 209 ++++++++++++++---- .../features/platform/ModelPlatformApp.tsx | 11 +- frontend/app/styles/admin.css | 4 +- frontend/app/styles/platform.css | 36 ++- 4 files changed, 212 insertions(+), 48 deletions(-) diff --git a/frontend/app/features/admin/AdminPages.tsx b/frontend/app/features/admin/AdminPages.tsx index cc75cd6..5fe192a 100644 --- a/frontend/app/features/admin/AdminPages.tsx +++ b/frontend/app/features/admin/AdminPages.tsx @@ -8,6 +8,7 @@ import { useApi, useAuth } from "../../context/AuthContext"; import Icon from "../../components/Icon"; import "../../styles/admin.css"; import "../../styles/dashboard.css"; +import "../../styles/platform.css"; type Notice = { @@ -41,13 +42,13 @@ export function DashboardPage({
{currentWorkspace?.workspace_name ?? "(未选择 Workspace)"} · {employees.length} 名员工
++ {currentWorkspace?.workspace_name ?? "(未选择 Workspace)"} + {activeTab === "users" ? ` · ${employees.length} 名用户` : ""} +
正在加载员工…
: employees.map((employee) => { - const isProtectedAdmin = employee.role_code === "admin"; - return ( -{employee.username}
- {employee.role_name}
- {employee.status === "active" ? "正常" : employee.status === "disabled" ? "已停用" : "已锁定"}
-
- 正在加载用户…
: employees.map((employee) => { + const isProtectedAdmin = employee.role_code === "admin"; + return ( +{employee.username}
+ {employee.role_name}
+ {employee.status === "active" ? "正常" : employee.status === "disabled" ? "已停用" : "已锁定"}
+
+ 项目管理功能开发中…
+