浏览代码

修复bug

chenxiong 3 年之前
父节点
当前提交
a492f0bee8
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      pages2/bank/questionBank.vue

+ 6 - 5
pages2/bank/questionBank.vue

@@ -1055,15 +1055,15 @@ export default {
 		 */
 		examRecord(hasSpecial) {
 			let questionList = 0;
-			if(!hasSpecial) {
+			// if(!hasSpecial) {
 				this.questionList.forEach((item, index) => {
 					if(item.type == 1 || item.type == 2 || item.type == 3) {
 						questionList++;
 					}
 				})
-			} else {
-				questionList = this.questionList.length;
-			}
+			// } else {
+			// 	questionList = this.questionList.length;
+			// }
 			
 				this.$api
 					.examRecord({
@@ -1071,7 +1071,8 @@ export default {
 						moduleExamId: this.moduleId || 0,
 						examId: this.id,
 						goodsId: this.goodsId,
-						totalQuestionNum: questionList
+						totalQuestionNum: questionList,
+						allQuestionNum:this.questionList.length
 					})
 					.then(res => {
 						this.recordId = res.data.data;