Kaynağa Gözat

单校答题卡预览学号显示处理

liurongli 5 ay önce
ebeveyn
işleme
94a48d4f6b

+ 5 - 2
src/components/StudentPaper.vue

@@ -5,7 +5,7 @@
               <i class="iconfont icon_return"></i>返回
           </div>
           <div class="header_title">
-            {{ pageTitle }}<span class="header_title_tip">(右键点击图片另存为可保存图片到本地)</span>
+            {{ pageTitle }}{{ studentCode }}<span class="header_title_tip">(右键点击图片另存为可保存图片到本地)</span>
           </div>
       </div>
       <div class="dialog_paper">
@@ -124,7 +124,7 @@ export default {
            usedCardType:null,//学生系统卡类型
            isLoading:false,//是否正在加载中
            studentName: '',//学生姓名
-           
+           studentCode:''
         }
     },
     created() {
@@ -200,6 +200,8 @@ export default {
             if(res.code==200)
             {
               this.paperImageList=res?.data?.pageVOS || [];
+              const studentCode =  res?.data?.studentCode ?? '';
+              this.studentCode = studentCode ?`【${studentCode}】`:'';
               this.usedCardType=res.data.usedCardType;
               // 重置索引并更新当前试卷数据
               // this.currentIndex = 0;
@@ -239,6 +241,7 @@ export default {
             }
             else
             {
+              this.studentCode = '';
               this.$nextTick(() => {
                 this.isLoading=false;
               });

+ 1 - 2
src/views/analysisReport/studentPage/scrolReport/transcript_single.vue

@@ -612,8 +612,7 @@ export default {
     //答题卡预览
     OpenStudentPaper(index) {
       this.currentPageIndex = index //当选选中的第几页
-      const studentCode = this.answerCard.studentCode ? `【${this.answerCard.studentCode}】` : this.answerCard.studentCode;
-      this.paperTitle = `${this.pageName}_${this.userInfo.userName}${studentCode}`
+      this.paperTitle = `${this.pageName}_${this.userInfo.userName}`
       this.showStudentPaperDialog = true
     },
     getMiddleNumber(arr) {

+ 1 - 1
src/views/analysisReport/studentPage/scrolReport/transcript_total.vue

@@ -438,7 +438,7 @@ export default {
     },
     //答题卡预览
     OpenStudentPaper(subjectCode) {
-      this.paperTitle = `${this.pageName}_${this.userInfo.userName}【${this.userInfo.registrationCode}】`
+      this.paperTitle = `${this.pageName}_${this.userInfo.userName}`
       this.paperInfo = { examId: this.reportParam.examId, subjectCode: subjectCode }
       this.showStudentPaperDialog = true
     }