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} + + + handleEdit(item)} + > + + 编辑 + + + + + + 删除 + + + + + 确定要删除该项目组吗? + + 删除后将无法恢复,请谨慎操作 + + + + 取消 + handleDelete(item.id)} + > + 确定 + + + + + + + + ))} + + +