diff --git a/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx b/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx index 4943d1e7..fed6aaa4 100644 --- a/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx +++ b/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx @@ -293,7 +293,7 @@ const ApplicationModal: React.FC = ({ {field.value ? repositoryGroups.find( (group) => group.id === field.value - )?.name + )?.fullName || "请选择代码仓库组" : !form.watch('gitInstanceId') ? "请先选择Git实例" : "请选择代码仓库组"} diff --git a/frontend/src/pages/Deploy/Application/List/types.ts b/frontend/src/pages/Deploy/Application/List/types.ts index 50d31020..70118483 100644 --- a/frontend/src/pages/Deploy/Application/List/types.ts +++ b/frontend/src/pages/Deploy/Application/List/types.ts @@ -13,23 +13,25 @@ export interface Application { appCode: string; appName: string; appDesc?: string; - repoUrl: string; language: DevelopmentLanguageTypeEnum; enabled: boolean; sort: number; - projectGroup: ProjectGroup; + projectGroupId: number; + repoGroupId: number; + repoProjectId: number; gitInstanceId?: number; } export interface CreateApplicationRequest { - projectGroupId: number; appCode: string; appName: string; appDesc?: string; - repoUrl: string; language: DevelopmentLanguageTypeEnum; enabled: boolean; sort: number; + projectGroupId: number; + repoGroupId: number; + repoProjectId: number; gitInstanceId: number; }