diff --git a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx
index a714a55f..daaa5746 100644
--- a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx
+++ b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx
@@ -155,7 +155,7 @@ const ProjectGroupList: React.FC = () => {
{
accessorKey: 'projectGroupCode',
header: '项目组编码',
- size: 120,
+ size: 180,
},
{
accessorKey: 'projectGroupName',
@@ -168,21 +168,41 @@ const ProjectGroupList: React.FC = () => {
size: 200,
},
{
- accessorKey: 'type',
+ id: 'type',
header: '项目组类型',
- size: 150,
+ size: 120,
cell: ({row}) => {
const typeInfo = getProjectTypeInfo(row.original.type);
return (
-
-
- {typeInfo.icon}
- {typeInfo.label}
-
+
+ {typeInfo.icon}
+ {typeInfo.label}
);
},
},
+ {
+ accessorKey: 'totalEnvironments',
+ header: '环境数量',
+ size: 100,
+ cell: ({row}) => (
+
+
+ {row.original.totalEnvironments}
+
+ ),
+ },
+ {
+ accessorKey: 'totalApplications',
+ header: '项目数量',
+ size: 100,
+ cell: ({row}) => (
+
+
+ {row.original.totalApplications}
+
+ ),
+ },
{
accessorKey: 'enabled',
header: '状态',
@@ -193,28 +213,6 @@ const ProjectGroupList: React.FC = () => {
),
},
- {
- accessorKey: 'totalEnvironments',
- header: '环境数量',
- size: 100,
- cell: ({row}) => (
-
-
- {row.original.totalEnvironments || 0}
-
- ),
- },
- {
- accessorKey: 'totalApplications',
- header: '项目数量',
- size: 100,
- cell: ({row}) => (
-
-
- {row.original.totalApplications || 0}
-
- ),
- },
{
accessorKey: 'sort',
header: '排序',
@@ -282,19 +280,19 @@ const ProjectGroupList: React.FC = () => {
form.setValue('projectGroupCode', e.target.value)}
className="max-w-[200px]"
/>
form.setValue('projectGroupName', e.target.value)}
className="max-w-[200px]"
/>