worked out the issue

This commit is contained in:
calvin 2024-04-25 18:08:01 +08:00
parent b3b8c0784d
commit 13feb084d7
2 changed files with 6 additions and 10 deletions

View File

@ -44,7 +44,8 @@ import {
NSwitch,
NCheckbox,
NDatePicker,
NRadioButton
NRadioButton,
NInputNumber
} from 'naive-ui'
import {
ArrowDownOutlined,
@ -75,7 +76,6 @@ export default defineComponent({
props,
emits: ['update:show', 'update:row', 'updateList'],
setup(props, ctx) {
const parallelismRef = ref(false)
const { t } = useI18n()
const route = useRoute()
const { startState } = useForm()
@ -296,7 +296,6 @@ export default defineComponent({
return {
t,
showTaskDependType,
parallelismRef,
hideModal,
handleStart,
generalWarningTypeListOptions,
@ -505,16 +504,13 @@ export default defineComponent({
label={t('project.workflow.parallelism')}
path='expectedParallelismNumber'
>
<NCheckbox v-model:checked={this.parallelismRef}>
{t('project.workflow.custom_parallelism')}
</NCheckbox>
<NInput
allowInput={this.trim}
disabled={!this.parallelismRef}
<NInputNumber
placeholder={t(
'project.workflow.please_enter_parallelism'
)}
v-model:value={this.startForm.expectedParallelismNumber}
max='100'
min='1'
/>
</NFormItem>
)}

View File

@ -66,7 +66,7 @@ export const useForm = () => {
tenantCode: 'default',
environmentCode: null,
startParams: null,
expectedParallelismNumber: '',
expectedParallelismNumber: '2',
dryRun: 0,
testFlag: 0,
version: null,