From 1a20a2c7a9e1ba9a0ffb83fb3d09ee7215d260c4 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 19 六月 2024 09:55:24 +0800
Subject: [PATCH] chore(考试store):简化数据获取

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

diff --git a/src/views/exam/components/answer-sheet/index.vue b/src/views/exam/components/answer-sheet/index.vue
index 4c44045..e3a7418 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(item.questionType,index,question)" :class="itemClass(item,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)" :class="itemClass(item,item.questionType, index)">
                 {{ index + 1 }}
               </div>
             </div>
@@ -33,10 +33,9 @@
 
 const activeNames = ref(examDetail.value.map(item => item.questionType));
 
-const sheetClick = (type,index,question) => {
+const sheetClick = (type,index) => {
   currentType.value = type;
   currentIndex.value = index;
-  examStore.setActiveQuestion(question);
 }
 </script>
 
@@ -55,4 +54,9 @@
 .active {
   border-color: #3680fa;
 }
+.answer {
+  border-color: #3680fa !important;
+  background-color: #3680fa !important;
+  color: #fff !important;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0