Browse Source

[Feature-8497][UI Next][V1.0.0-Alpha] Support dependent task re-run automatically (#8739)

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

4
dolphinscheduler-ui-next/src/locales/modules/en_US.ts

@ -503,7 +503,9 @@ const project = {
refresh_log: 'Refresh Log', refresh_log: 'Refresh Log',
enter_full_screen: 'Enter full screen', enter_full_screen: 'Enter full screen',
cancel_full_screen: 'Cancel full screen', cancel_full_screen: 'Cancel full screen',
task_state: 'Task status' task_state: 'Task status',
mode_of_dependent: 'Mode of dependent',
open: 'Open'
}, },
task: { task: {
task_name: 'Task Name', task_name: 'Task Name',

4
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts

@ -500,7 +500,9 @@ const project = {
refresh_log: '刷新日志', refresh_log: '刷新日志',
enter_full_screen: '进入全屏', enter_full_screen: '进入全屏',
cancel_full_screen: '取消全屏', cancel_full_screen: '取消全屏',
task_state: '任务状态' task_state: '任务状态',
mode_of_dependent: '依赖模式',
open: '打开'
}, },
task: { task: {
task_name: '任务名称', task_name: '任务名称',

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

@ -291,6 +291,21 @@ export default defineComponent({
{this.startForm.execType && {this.startForm.execType &&
this.startForm.execType !== 'START_PROCESS' && ( this.startForm.execType !== 'START_PROCESS' && (
<NSpace> <NSpace>
<NFormItem
label={t('project.workflow.mode_of_dependent')}
path='dependentMode'
>
<NRadioGroup v-model:value={this.startForm.dependentMode}>
<NSpace>
<NRadio value={'OFF_MODE'}>
{t('project.workflow.close')}
</NRadio>
<NRadio value={'ALL_DEPENDENT'}>
{t('project.workflow.open')}
</NRadio>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem <NFormItem
label={t('project.workflow.mode_of_execution')} label={t('project.workflow.mode_of_execution')}
path='runMode' path='runMode'

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

@ -57,6 +57,7 @@ export const useForm = () => {
execType: 'START_PROCESS', execType: 'START_PROCESS',
startNodeList: '', startNodeList: '',
taskDependType: 'TASK_POST', taskDependType: 'TASK_POST',
dependentMode: 'OFF_MODE',
runMode: 'RUN_MODE_SERIAL', runMode: 'RUN_MODE_SERIAL',
processInstancePriority: 'MEDIUM', processInstancePriority: 'MEDIUM',
workerGroup: 'default', workerGroup: 'default',

Loading…
Cancel
Save