Browse Source

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

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
06ef1ae6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui-next/src/service/modules/task-group/types.ts
  2. 4
      dolphinscheduler-ui-next/src/views/resource/task-group/option/components/form-modal.tsx
  3. 2
      dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts

2
dolphinscheduler-ui-next/src/service/modules/task-group/types.ts

@ -28,7 +28,7 @@ interface TaskGroupIdReq {
interface TaskGroupReq { interface TaskGroupReq {
name: string name: string
projectCode: number projectCode: number
groupSize: number groupSize: string
status: number status: number
description: string description: string
} }

4
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.id = props.data.id
state.formData.name = props.data.name state.formData.name = props.data.name
state.formData.projectCode = props.data.projectCode 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.status = props.data.status
state.formData.description = props.data.description state.formData.description = props.data.description
} else { } else {
state.formData.groupSize = 10 state.formData.groupSize = '10'
} }
}) })

2
dolphinscheduler-ui-next/src/views/resource/task-group/option/use-form.ts

@ -29,7 +29,7 @@ export function useForm() {
id: 0, id: 0,
name: '', name: '',
projectCode: 0, projectCode: 0,
groupSize: 0, groupSize: '0',
status: 1, status: 1,
description: '' description: ''
} as TaskGroupUpdateReq, } as TaskGroupUpdateReq,

Loading…
Cancel
Save