From 04a852bdb2e6a34bac8734e53c1fe66632e20e47 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 10 Jan 2025 15:07:47 +0800 Subject: [PATCH] 1 --- .../Application/List/components/ApplicationModal.tsx | 2 +- frontend/src/pages/Deploy/Application/List/types.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) 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; }