From c6f680f1c6ef9fa990c654633767b5b3ad4b0aff Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 13 六月 2024 14:58:27 +0800
Subject: [PATCH] fix(考试):修改答题卡选择问题

---
 src/views/exam/components/answer-sheet/index.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/exam/components/answer-sheet/index.vue b/src/views/exam/components/answer-sheet/index.vue
index b25642b..12321fe 100644
--- a/src/views/exam/components/answer-sheet/index.vue
+++ b/src/views/exam/components/answer-sheet/index.vue
@@ -5,7 +5,7 @@
         <template v-for="item in examDetail">
           <el-collapse-item :title="examType[item.questionType]" :name="item.questionType">
             <div class="sheet-list grid grid-cols-5 gap-4 justify-items-center">
-              <div class="sheet-item cursor-pointer flex justify-center items-center" v-for="question,index in item.questionList" @click="sheetClick(question,index)" :class="itemClass(item.questionType, index)">
+              <div class="sheet-item cursor-pointer flex justify-center items-center" v-for="question,index in item.questionList" @click="sheetClick(item.questionType,index,question)" :class="itemClass(item.questionType, index)">
                 {{ index + 1 }}
               </div>
             </div>
@@ -32,10 +32,10 @@
 
 const activeNames = ref(examDetail.value.map(item => item.questionType));
 
-const sheetClick = (item, index) => {
-  currentType.value = item.questionType;
+const sheetClick = (type,index,question) => {
+  currentType.value = type;
   currentIndex.value = index;
-  examStore.setActiveQuestion(item);
+  examStore.setActiveQuestion(question);
 }
 </script>
 

--
Gitblit v1.8.0