Browse Source

[Fix-8690][UI Next][V1.0.0-Alpha] Fix startup execType bug (#8734)

3.0.0/version-upgrade
Devosend 3 years ago committed by GitHub
parent
commit
e34f6fc807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 85
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx
  2. 2
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-form.ts

85
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx

@ -282,56 +282,59 @@ export default defineComponent({
> >
<NCheckbox <NCheckbox
checkedValue={'COMPLEMENT_DATA'} checkedValue={'COMPLEMENT_DATA'}
uncheckedValue={undefined} uncheckedValue={'START_PROCESS'}
v-model:checked={this.startForm.execType} v-model:checked={this.startForm.execType}
> >
{t('project.workflow.whether_complement_data')} {t('project.workflow.whether_complement_data')}
</NCheckbox> </NCheckbox>
</NFormItem> </NFormItem>
{this.startForm.execType && ( {this.startForm.execType &&
<NSpace> this.startForm.execType !== 'START_PROCESS' && (
<NFormItem <NSpace>
label={t('project.workflow.mode_of_execution')} <NFormItem
path='runMode' label={t('project.workflow.mode_of_execution')}
> path='runMode'
<NRadioGroup v-model:value={this.startForm.runMode}> >
<NSpace> <NRadioGroup v-model:value={this.startForm.runMode}>
<NRadio value={'RUN_MODE_SERIAL'}> <NSpace>
{t('project.workflow.serial_execution')} <NRadio value={'RUN_MODE_SERIAL'}>
</NRadio> {t('project.workflow.serial_execution')}
<NRadio value={'RUN_MODE_PARALLEL'}> </NRadio>
{t('project.workflow.parallel_execution')} <NRadio value={'RUN_MODE_PARALLEL'}>
</NRadio> {t('project.workflow.parallel_execution')}
</NSpace> </NRadio>
</NRadioGroup> </NSpace>
</NFormItem> </NRadioGroup>
{this.startForm.runMode === 'RUN_MODE_PARALLEL' && ( </NFormItem>
{this.startForm.runMode === 'RUN_MODE_PARALLEL' && (
<NFormItem
label={t('project.workflow.parallelism')}
path='expectedParallelismNumber'
>
<NCheckbox v-model:checked={this.parallelismRef}>
{t('project.workflow.custom_parallelism')}
</NCheckbox>
<NInput
disabled={!this.parallelismRef}
placeholder={t(
'project.workflow.please_enter_parallelism'
)}
v-model:value={this.startForm.expectedParallelismNumber}
/>
</NFormItem>
)}
<NFormItem <NFormItem
label={t('project.workflow.parallelism')} label={t('project.workflow.schedule_date')}
path='expectedParallelismNumber' path='startEndTime'
> >
<NCheckbox v-model:checked={this.parallelismRef}> <NDatePicker
{t('project.workflow.custom_parallelism')} type='datetimerange'
</NCheckbox> clearable
<NInput v-model:value={this.startForm.startEndTime}
disabled={!this.parallelismRef}
placeholder={t('project.workflow.please_enter_parallelism')}
v-model:value={this.startForm.expectedParallelismNumber}
/> />
</NFormItem> </NFormItem>
)} </NSpace>
<NFormItem )}
label={t('project.workflow.schedule_date')}
path='startEndTime'
>
<NDatePicker
type='datetimerange'
clearable
v-model:value={this.startForm.startEndTime}
/>
</NFormItem>
</NSpace>
)}
<NFormItem <NFormItem
label={t('project.workflow.startup_parameter')} label={t('project.workflow.startup_parameter')}
path='startup_parameter' path='startup_parameter'

2
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/use-form.ts

@ -54,7 +54,7 @@ export const useForm = () => {
failureStrategy: 'CONTINUE', failureStrategy: 'CONTINUE',
warningType: 'NONE', warningType: 'NONE',
warningGroupId: null, warningGroupId: null,
execType: '', execType: 'START_PROCESS',
startNodeList: '', startNodeList: '',
taskDependType: 'TASK_POST', taskDependType: 'TASK_POST',
runMode: 'RUN_MODE_SERIAL', runMode: 'RUN_MODE_SERIAL',

Loading…
Cancel
Save