【修改】试卷任务切换,总体细节

This commit is contained in:
YOHO\20373
2025-05-22 14:23:13 +08:00
parent c582629e8d
commit 79aed6696c
17 changed files with 378 additions and 18 deletions

View File

@@ -92,7 +92,46 @@ async function handleStepClick(index) {
}
activeStep.value = index
}
const prevStep = () => {
// 如果下一步是考场设置(第四步),提前校验
if (activeStep.value - 1 === 3) {
validateBeforeStepFour(props.data.taskId)
.then((msg) => {
})
.catch((e) => {
// 校验失败,直接跳到第五步
activeStep.value = 2
return
});
}
if (activeStep.value > 0) {
activeStep.value--
}
}
const nextStep = async () => {
// 如果下一步是考场设置(第四步),提前校验
if (activeStep.value + 1 === 3) {
validateBeforeStepFour(props.data.taskId)
.then((msg) => {
})
.catch((e) => {
// 校验失败,直接跳到第五步
activeStep.value = 4
return
});
}
if (activeStep.value < stepTitles.length - 1) {
activeStep.value++
}
}
/** 打开弹窗 */
const open = async (type, row) => {
isVisible.value = true