|
|
@ -87,6 +87,7 @@ export default defineComponent({ |
|
|
|
name: '', |
|
|
|
name: '', |
|
|
|
description: '', |
|
|
|
description: '', |
|
|
|
tenantCode: 'default', |
|
|
|
tenantCode: 'default', |
|
|
|
|
|
|
|
executionType: 'PARALLEL', |
|
|
|
timeoutFlag: false, |
|
|
|
timeoutFlag: false, |
|
|
|
timeout: 0, |
|
|
|
timeout: 0, |
|
|
|
globalParams: [], |
|
|
|
globalParams: [], |
|
|
@ -94,6 +95,12 @@ export default defineComponent({ |
|
|
|
sync: false |
|
|
|
sync: false |
|
|
|
}) |
|
|
|
}) |
|
|
|
const formRef = ref() |
|
|
|
const formRef = ref() |
|
|
|
|
|
|
|
const executeTypeOptions = [ |
|
|
|
|
|
|
|
{ value: 'PARALLEL', label: 'parallel' }, |
|
|
|
|
|
|
|
{ value: 'SERIAL_WAIT', label: 'Serial wait' }, |
|
|
|
|
|
|
|
{ value: 'SERIAL_DISCARD', label: 'Serial discard' }, |
|
|
|
|
|
|
|
{ value: 'SERIAL_PRIORITY', label: 'Serial priority' } |
|
|
|
|
|
|
|
] |
|
|
|
const rule = { |
|
|
|
const rule = { |
|
|
|
name: { |
|
|
|
name: { |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
@ -155,6 +162,7 @@ export default defineComponent({ |
|
|
|
formValue.value.name = process.name |
|
|
|
formValue.value.name = process.name |
|
|
|
formValue.value.description = process.description |
|
|
|
formValue.value.description = process.description |
|
|
|
formValue.value.tenantCode = process.tenantCode || 'default' |
|
|
|
formValue.value.tenantCode = process.tenantCode || 'default' |
|
|
|
|
|
|
|
formValue.value.executionType = process.executionType || 'PARALLEL' |
|
|
|
if (process.timeout && process.timeout > 0) { |
|
|
|
if (process.timeout && process.timeout > 0) { |
|
|
|
formValue.value.timeoutFlag = true |
|
|
|
formValue.value.timeoutFlag = true |
|
|
|
formValue.value.timeout = process.timeout |
|
|
|
formValue.value.timeout = process.timeout |
|
|
@ -214,6 +222,17 @@ export default defineComponent({ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
{!props.instance && ( |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
label={t('project.dag.process_execute_type')} |
|
|
|
|
|
|
|
path='executionType' |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NSelect |
|
|
|
|
|
|
|
options={executeTypeOptions} |
|
|
|
|
|
|
|
v-model:value={formValue.value.executionType} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
)} |
|
|
|
<NFormItem |
|
|
|
<NFormItem |
|
|
|
label={t('project.dag.global_variables')} |
|
|
|
label={t('project.dag.global_variables')} |
|
|
|
path='globalParams' |
|
|
|
path='globalParams' |
|
|
|