From b807f856a5528c49d795f8c032b3e72e4a76c6f8 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 10 Jan 2025 17:30:17 +0800 Subject: [PATCH] 1 --- .../pages/Deploy/ProjectGroup/List/index.tsx | 126 ++++++++++++++---- 1 file changed, 98 insertions(+), 28 deletions(-) diff --git a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx index daaa5746..4cdb6d9c 100644 --- a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx +++ b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx @@ -328,37 +328,107 @@ const ProjectGroupList: React.FC = () => { 项目组列表 - -
- - - - {columns.map((column) => ( - +
+
+
+ + + 项目组编码 + 项目组名称 + 项目组描述 + 项目组类型 + 环境数量 + 项目数量 + 状态 + 排序 + - {column.header} + 操作 - ))} - - - - {list.map((item) => ( - - {columns.map((column) => ( - - {column.cell - ? column.cell({row: {original: item}}) - : item[column.accessorKey!]} - - ))} - ))} - -
+ + + {list.map((item) => ( + + {item.projectGroupCode} + {item.projectGroupName} + {item.projectGroupDesc} + + {(() => { + const typeInfo = getProjectTypeInfo(item.type); + return ( + + {typeInfo.icon} + {typeInfo.label} + + ); + })()} + + +
+ + {item.totalEnvironments} +
+
+ +
+ + {item.totalApplications} +
+
+ + + {item.enabled ? '启用' : '禁用'} + + + {item.sort} + +
+ + + + + + + + 确定要删除该项目组吗? + + 删除后将无法恢复,请谨慎操作 + + + + 取消 + handleDelete(item.id)} + > + 确定 + + + + +
+
+
+ ))} +
+ +