ソースを参照

答题卡usedCardType参数修改

liurongli 1 ヶ月 前
コミット
c39dbf55bb

+ 1 - 1
src/App.vue

@@ -18,7 +18,7 @@ export default {
     },
     methods: {
         SubmitLogin() {
-            const username = '500072347220704';
+            const username = '37605017089498';
             const password = '123456';
             // const type = '1';
             const schoolType = sessionStorage.getItem('schoolType');

+ 2 - 2
src/views/analysisReport/studentPage/downloadPdf/studentReport.vue

@@ -298,7 +298,7 @@
                         <!-- 答题卡 -->
                         <template v-for="(paperItem,paperIndex) in (singleSubjectData?.[subKey]?.paperImageList || [])">
                             <div class="area_module area_module_img" v-if="singleSubjectData?.[subKey]?.paperImagePageNum?.[paperIndex] == page">
-                                <PaperImage v-if="paperItem.picUrl" :paperImgUrl="paperItem.picUrl" :usedCardType="singleSubjectData?.[subKey]?.usedCardType" :drawData="paperItem.questionVOS || []" :isDrag="false" :isWheel="false" :isShowContextMenu="false" rotateDeg="-90"></PaperImage>
+                                <PaperImage v-if="paperItem.picUrl" :paperImgUrl="paperItem.picUrl" :usedCardType="paperItem.useType" :drawData="paperItem.questionVOS || []" :isDrag="false" :isWheel="false" :isShowContextMenu="false" rotateDeg="-90"></PaperImage>
                             </div>
                         </template>
                     </template>
@@ -1083,7 +1083,7 @@ export default {
                         paperImageList[0].questionVOS.unshift(totalScore)
                     }
                     this.singleSubjectData[index].paperImageList = paperImageList;
-                    this.singleSubjectData[index].usedCardType = res?.data?.usedCardType ?? 1;
+                    // this.singleSubjectData[index].usedCardType = res?.data?.usedCardType ?? 1;
                     for(let i = 0;i<paperImageList.length;i++){
                         const pageNum = this.SingleChartPage(this.printPageHeight);
                         this.singleSubjectData[index].paperImagePageNum.push(pageNum);

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

@@ -164,7 +164,7 @@
       <div class="module_table">
         <div class="answer_sheet" v-if="answerCard.paperImageList.length">
           <div class="item" v-for="(item, index) in answerCard.paperImageList">
-            <PaperImage :imageIndex="index" v-if="item.picUrl" :scoreFontSize="20" :rtOrWrSize="10" :paperImgUrl="item.picUrl" :drawData="item.questionVOS || []"></PaperImage>
+            <PaperImage :imageIndex="index" v-if="item.picUrl" :scoreFontSize="20" :rtOrWrSize="10" :paperImgUrl="item.picUrl" :usedCardType="item.useType" :drawData="item.questionVOS || []"></PaperImage>
             <div class="item_hover">
               <div class="show_view" @click="OpenStudentPaper(index)">
                 <img src="@/assets/icon/pic_show_view.png" />

+ 4 - 1
src/views/analysisReport/wrongQuestion/index.vue

@@ -178,7 +178,7 @@
                                     <template v-if="picUrl && questionVOS">
                                         <div style="height: 300px;">
                                             <PaperImage :imageIndex="index" :scoreFontSize="20" :rtOrWrSize="10"
-                                                :paperImgUrl="picUrl" :drawData="questionVOS" />
+                                                :paperImgUrl="picUrl" :usedCardType="usedCardType" :drawData="questionVOS" />
                                         </div>
                                     </template>
                                     <div v-else style="color: #999;">暂无数据</div>
@@ -290,6 +290,7 @@ export default {
             downloadDialogVisible: false,
             isVariation: 0,
             picUrl: null,
+            usedCardType: null,
             questionVOS: [],
 
         };
@@ -400,6 +401,7 @@ export default {
 
                             const data = res.data.pageVOS[0]
                             this.picUrl = data.picUrl;
+                            this.usedCardType = data.useType;
                             this.questionVOS = data.questionVOS.map(item => {
                                 return {
                                     ...item,
@@ -408,6 +410,7 @@ export default {
                             });
                         } else {
                             this.picUrl = null;
+                            this.usedCardType = null;
                             this.questionVOS = [];
                         }