Browse Source

题号标记未评分bug

liqk 4 years ago
parent
commit
05b265e9cb
1 changed files with 3 additions and 2 deletions
  1. 3 2
      TEAMModelOS/ClientApp/src/view/learnactivity/PaperScore.vue

+ 3 - 2
TEAMModelOS/ClientApp/src/view/learnactivity/PaperScore.vue

@@ -32,16 +32,17 @@
                     {{isDefOrder ? '默认顺序' : '题型排序'}}
                 </span> -->
             </div>
+            <!-- 题号 -->
             <div class="question-index-box" v-if="studentAnswer.scores">
                 <div class="base-info-item" style="white-space: nowrap;">{{$t('learnActivity.score.quIndex')}}</div>
                 <div>
                     <span v-for="(typeItem,typeIndex) in groupList" :key="typeIndex">
                         <span v-for="(item,index) in typeItem.list" :key="index">
-                            <span @click="goToQuestion(getScoreIndex(typeIndex,index))" :class="studentAnswer.scores[getScoreIndex(typeIndex,index)] >= 0 ? 'qu-order-tag':'qu-order-tag-def'" v-if="typeItem.type !== 'compose'">
+                            <span @click="goToQuestion(getScoreIndex(typeIndex,index))" :class="studentAnswer.scores[item.index] >= 0 ? 'qu-order-tag':'qu-order-tag-def'" v-if="typeItem.type !== 'compose'">
                                 {{getQuIndex(typeIndex,index)}}
                             </span>
                             <span v-else>
-                                <span @click="goToQuestion(getScoreIndex(typeIndex,index,childIndex))" v-for="(childItem,childIndex) in item.children" :key="childIndex" :class="studentAnswer.scores[getScoreIndex(typeIndex,index,childIndex)] >= 0 ? 'qu-order-tag':'qu-order-tag-def'">
+                                <span @click="goToQuestion(getScoreIndex(typeIndex,index,childIndex))" v-for="(childItem,childIndex) in item.children" :key="childIndex" :class="studentAnswer.scores[childItem.index] >= 0 ? 'qu-order-tag':'qu-order-tag-def'">
                                     {{getQuIndex(typeIndex,index) + '-' + (childIndex + 1)}}
                                 </span>
                             </span>