Forráskód Böngészése

答题卡小题显示修改

liurongli 1 hónapja
szülő
commit
1d1dfcfd4f
1 módosított fájl, 7 hozzáadás és 7 törlés
  1. 7 7
      src/components/StudentPaper.vue

+ 7 - 7
src/components/StudentPaper.vue

@@ -209,7 +209,7 @@ export default {
               console.log("打印学生试卷当前图片地址",this.currentPaperUrl);
 
               // 合并所有试卷图片中的题目列表
-              let allQuestions = [];
+              // let allQuestions = [];
               //先添加总分数据
               let totalScore = {
                 questionName: '总分',
@@ -225,13 +225,13 @@ export default {
               if (this.paperImageList.length > 0 && this.paperImageList[0].questionVOS) {
                 this.paperImageList[0].questionVOS.unshift(totalScore);
               }
-              this.paperImageList.forEach(item => {
-                if (item.questionVOS && item.questionVOS.length > 0) {
-                  allQuestions = allQuestions.concat(item.questionVOS);
-                }
-              });
+              // this.paperImageList.forEach(item => {
+              //   if (item.questionVOS && item.questionVOS.length > 0) {
+              //     allQuestions = allQuestions.concat(item.questionVOS);
+              //   }
+              // });
               
-              this.questionList = allQuestions;
+              this.questionList = res?.data?.studentAnswerBOS || [];;
               console.log("合并后的题目列表", this.questionList);
               
               this.CalculateTableHeight();//计算表格高度