From aeacb9dcf9b38a7c3f55296363c3243d8ab5505c Mon Sep 17 00:00:00 2001 From: lanrtop Date: Sat, 4 Jul 2026 10:34:44 +0900 Subject: [PATCH] =?UTF-8?q?feat(manage):=20=E4=BA=A7=E5=93=81=E7=BB=84?= =?UTF-8?q?=E6=A6=82=E8=A7=88=E3=80=8C=E9=A1=B9=E7=9B=AE=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E3=80=8D=E6=94=B9=E4=B8=BA=E7=BD=97=E5=88=97=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/manage/ManagePage.tsx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/manage/ManagePage.tsx b/src/components/manage/ManagePage.tsx index 9e89f09..4b943e8 100644 --- a/src/components/manage/ManagePage.tsx +++ b/src/components/manage/ManagePage.tsx @@ -454,7 +454,7 @@ function GroupsTab({ spaceId }: { spaceId?: string }) { - {["产品组名称", "项目数量", "描述", "操作"].map((h) => ( + {["产品组名称", "项目", "描述", "操作"].map((h) => ( @@ -463,17 +463,26 @@ function GroupsTab({ spaceId }: { spaceId?: string }) { {groups.map((g) => { - const count = maps.filter((m) => m.group_id === g.id).length; + const groupProjectNames = maps + .filter((m) => m.group_id === g.id) + .map((m) => projects.find((p) => p.id === m.project_id)?.name) + .filter((n): n is string => !!n); return ( -
{h}
{g.name}
{g.id}
- - {count} - + +
+ {groupProjectNames.length > 0 ? groupProjectNames.map((name) => ( + + {name} + + )) : ( + + )} +
{g.description ?? "—"}