放开提交按钮

This commit is contained in:
zhangsir
2024-04-26 13:21:59 +08:00
parent c3b0a1f12e
commit 05e5993beb

View File

@@ -422,20 +422,20 @@ export default {
let $this=this;
let score=this.countTest();
console.log('score='+score);
// if(this.noAnswers.length>0){
// this.$confirm('还有未答试题,您确定要提交吗?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// showClose:false,
// type: 'warning'
// }).then(() => {
// this.submitTest(score);
// }).catch(()=>{
if(this.noAnswers.length>0){
this.$confirm('还有未答试题,您确定要提交吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
showClose:false,
type: 'warning'
}).then(() => {
this.submitTest(score);
}).catch(()=>{
// })
// }else{
// this.submitTest(score);
// }
})
}else{
this.submitTest(score);
}
},
countTest(){ //计算考试的分数
//console.log(this.paper.items);