worked out the issue
This commit is contained in:
parent
b3b8c0784d
commit
13feb084d7
|
|
@ -44,7 +44,8 @@ import {
|
||||||
NSwitch,
|
NSwitch,
|
||||||
NCheckbox,
|
NCheckbox,
|
||||||
NDatePicker,
|
NDatePicker,
|
||||||
NRadioButton
|
NRadioButton,
|
||||||
|
NInputNumber
|
||||||
} from 'naive-ui'
|
} from 'naive-ui'
|
||||||
import {
|
import {
|
||||||
ArrowDownOutlined,
|
ArrowDownOutlined,
|
||||||
|
|
@ -75,7 +76,6 @@ export default defineComponent({
|
||||||
props,
|
props,
|
||||||
emits: ['update:show', 'update:row', 'updateList'],
|
emits: ['update:show', 'update:row', 'updateList'],
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const parallelismRef = ref(false)
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const { startState } = useForm()
|
const { startState } = useForm()
|
||||||
|
|
@ -296,7 +296,6 @@ export default defineComponent({
|
||||||
return {
|
return {
|
||||||
t,
|
t,
|
||||||
showTaskDependType,
|
showTaskDependType,
|
||||||
parallelismRef,
|
|
||||||
hideModal,
|
hideModal,
|
||||||
handleStart,
|
handleStart,
|
||||||
generalWarningTypeListOptions,
|
generalWarningTypeListOptions,
|
||||||
|
|
@ -505,16 +504,13 @@ export default defineComponent({
|
||||||
label={t('project.workflow.parallelism')}
|
label={t('project.workflow.parallelism')}
|
||||||
path='expectedParallelismNumber'
|
path='expectedParallelismNumber'
|
||||||
>
|
>
|
||||||
<NCheckbox v-model:checked={this.parallelismRef}>
|
<NInputNumber
|
||||||
{t('project.workflow.custom_parallelism')}
|
|
||||||
</NCheckbox>
|
|
||||||
<NInput
|
|
||||||
allowInput={this.trim}
|
|
||||||
disabled={!this.parallelismRef}
|
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
'project.workflow.please_enter_parallelism'
|
'project.workflow.please_enter_parallelism'
|
||||||
)}
|
)}
|
||||||
v-model:value={this.startForm.expectedParallelismNumber}
|
v-model:value={this.startForm.expectedParallelismNumber}
|
||||||
|
max='100'
|
||||||
|
min='1'
|
||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ export const useForm = () => {
|
||||||
tenantCode: 'default',
|
tenantCode: 'default',
|
||||||
environmentCode: null,
|
environmentCode: null,
|
||||||
startParams: null,
|
startParams: null,
|
||||||
expectedParallelismNumber: '',
|
expectedParallelismNumber: '2',
|
||||||
dryRun: 0,
|
dryRun: 0,
|
||||||
testFlag: 0,
|
testFlag: 0,
|
||||||
version: null,
|
version: null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue