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 7b190e4 [Fix][UI Next][V1.0.0-Alpha] Fix the new task group
configuration item name is displayed as 0. (#9014)
7b190e4 is described below
commit 7b190e4ab3ef51bca4515e35dfb12c1fd250d525
Author: songjianet <[email protected]>
AuthorDate: Sat Mar 19 16:02:35 2022 +0800
[Fix][UI Next][V1.0.0-Alpha] Fix the new task group configuration item name
is displayed as 0. (#9014)
---
dolphinscheduler-ui-next/src/service/modules/task-group/types.ts | 2 +-
.../src/views/resource/task-group/option/components/form-modal.tsx | 2 +-
.../src/views/resource/task-group/option/use-form.ts | 2 +-
3 files changed, 3 insertions(+), 3 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 b59b013..1970083 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 00f84de..fe1f041 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 7846651..abef436 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: ''