diff --git a/frontend/src/pages/Deploy/Team/List/components/TeamApplicationManageDialog.tsx b/frontend/src/pages/Deploy/Team/List/components/TeamApplicationManageDialog.tsx index efb66578..73b39c7c 100644 --- a/frontend/src/pages/Deploy/Team/List/components/TeamApplicationManageDialog.tsx +++ b/frontend/src/pages/Deploy/Team/List/components/TeamApplicationManageDialog.tsx @@ -136,8 +136,9 @@ export const TeamApplicationManageDialog: React.FC< environmentId: editingEnvironment.id, buildType: data.buildType || undefined, branch: data.branch, - deploySystemId: data.deploySystemId || undefined, - deployJob: data.deployJob, + // 只有当 buildType 为 JENKINS 时才传递 Jenkins 相关字段 + deploySystemId: data.buildType === 'JENKINS' ? (data.deploySystemId || undefined) : undefined, + deployJob: data.buildType === 'JENKINS' ? data.deployJob : '', workflowDefinitionId: data.workflowDefinitionId || undefined, codeSourceSystemId: data.codeSourceSystemId || undefined, codeSourceProjectId: data.codeSourceProjectId || undefined, diff --git a/frontend/src/pages/Deploy/Team/List/components/TeamModal.tsx b/frontend/src/pages/Deploy/Team/List/components/TeamModal.tsx index 29eb5503..112d9e98 100644 --- a/frontend/src/pages/Deploy/Team/List/components/TeamModal.tsx +++ b/frontend/src/pages/Deploy/Team/List/components/TeamModal.tsx @@ -241,19 +241,20 @@ const TeamModal: React.FC = ({ control={form.control} name="enabled" render={({ field }) => ( - -
- 状态 -
- {field.value ? '启用' : '禁用'} -
-
+ + 状态 - +
+ + + {field.value ? '启用' : '禁用'} + +
+
)} />