You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/03/19 05:09:11 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix there is a warning message in the task group configuration. (#9011)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 06ef1ae  [Fix][UI Next][V1.0.0-Alpha] Fix there is a warning message in the task group configuration. (#9011)
06ef1ae is described below

commit 06ef1ae6cd882447d8257503af961a3ea31fbf11
Author: songjianet <17...@qq.com>
AuthorDate: Sat Mar 19 13:09:04 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix there is a warning message in the task group configuration. (#9011)
---
 dolphinscheduler-ui-next/src/service/modules/task-group/types.ts      | 2 +-
 .../src/views/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 984c33b..b59b013 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 703045c..00f84de 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 9fde7f7..7846651 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,