diff --git a/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts b/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts index b59b013807..1970083c47 100644 --- a/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts +++ b/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts @@ -27,7 +27,7 @@ interface TaskGroupIdReq { interface TaskGroupReq { name: string - projectCode: number + projectCode: string groupSize: string status: number description: string diff --git a/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx b/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx index 00f84de277..fe1f041c7c 100644 --- a/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx +++ b/dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx @@ -82,7 +82,7 @@ const FormModal = defineComponent({ } const onCancel = () => { - state.formData.projectCode = 0 + state.formData.projectCode = '' state.formData.description = '' emit('cancel') } diff --git a/dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts b/dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts index 784665120f..abef4361a9 100644 --- a/dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts +++ b/dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts @@ -28,7 +28,7 @@ export function useForm() { formData: { id: 0, name: '', - projectCode: 0, + projectCode: '', groupSize: '0', status: 1, description: ''