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, 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>
)} )}

View File

@ -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,