chenxiong 3 年 前
コミット
08f69f3b98
1 ファイル変更6 行追加5 行削除
  1. 6 5
      pages2/class/questionBank.vue

+ 6 - 5
pages2/class/questionBank.vue

@@ -1374,15 +1374,15 @@ export default {
 			return new Promise(resolve => {
 				let self = this
 				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
 					.bankRecord({
@@ -1391,7 +1391,8 @@ export default {
 						examId: this.id,
 						goodsId: this.goodsId,
 						gradeId:this.gradeId,
-						totalQuestionNum: questionList
+						totalQuestionNum: questionList,
+						allQuestionNum:this.questionList.length
 					})
 					.then(res => {
 						this.recordId = res.data.data;