From 06ef1ae6cd882447d8257503af961a3ea31fbf11 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Sat, 19 Mar 2022 13:09:04 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Alpha] Fix there is a warning message in the task group configuration. (#9011) --- .../src/service/modules/task-group/types.ts | 2 +- .../resource/task-group/option/components/form-modal.tsx | 4 ++-- .../src/views/resource/task-group/option/use-form.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 984c33bd02..b59b013807 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 703045c8d7..00f84de277 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 9fde7f7acd..784665120f 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,