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 984c33bd0..b59b01380 100644 --- a/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts +++ b/dolphinscheduler-ui-next/src/service/modules/task-group/types.ts @@ -28,7 +28,7 @@ interface TaskGroupIdReq { interface TaskGroupReq { name: string projectCode: number - groupSize: number + 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 703045c8d..00f84de27 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 @@ -59,11 +59,11 @@ const FormModal = defineComponent({ state.formData.id = props.data.id state.formData.name = props.data.name state.formData.projectCode = props.data.projectCode - state.formData.groupSize = props.data.groupSize + state.formData.groupSize = String(props.data.groupSize) state.formData.status = props.data.status state.formData.description = props.data.description } else { - state.formData.groupSize = 10 + state.formData.groupSize = '10' } }) 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 9fde7f7ac..784665120 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 @@ -29,7 +29,7 @@ export function useForm() { id: 0, name: '', projectCode: 0, - groupSize: 0, + groupSize: '0', status: 1, description: '' } as TaskGroupUpdateReq,