|
@@ -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;
|