chenxiong il y a 3 ans
Parent
commit
a492f0bee8
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  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;