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 ?? "—"}