Răsfoiți Sursa

答题卡留痕兼容追加的发布的试卷数据,调整卡类型取值

liurongli 1 zi în urmă
părinte
comite
356f10dd8f
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      src/components/StudentPaper.vue

+ 5 - 0
src/components/StudentPaper.vue

@@ -295,6 +295,11 @@ export default {
           this.currentPaperUrl = this.paperImageList[this.currentIndex].picUrl;
           this.currentDrawData = this.paperImageList[this.currentIndex].questionVOS || [];
           this.currentDownLoadName = this.pageTitle+'答题卡第'+(this.currentIndex + 1) + '页'; // 重置下载名称
+          //兼容旧的数据
+          if(this.paperImageList[this.currentIndex].useType)
+          {
+            this.usedCardType=this.paperImageList[this.currentIndex].useType;//卡类型需要调整为从此页获取
+          }
         } else {
           // 处理边界情况
           this.currentPaperUrl = '';