| | |
| | | <!-- 填空题 --> |
| | | <template> |
| | | <div class="answer-container w-full h-full"> |
| | | <el-scrollbar> |
| | | <div class="answer-container w-full h-full flex"> |
| | | <el-scrollbar class="flex-1 mr-4"> |
| | | <ExamInfo class="mb-5" :questionIndex="currentIndex" :activeQuestion="activeQuestion"></ExamInfo> |
| | | |
| | | <div class="answer-content"> |
| | | <div class="answer-item flex" v-for="item, index in activeQuestion.questionItemList" :class="answerState(item,index)"> |
| | | <div class="answer-item flex" v-for="item, index in activeQuestion.questionItemList" :class="answerState(item)"> |
| | | <div class="answer-icon flex flex-col justify-center items-center flex-shrink-0">{{ item.prefix }}</div> |
| | | <div class="answer-text text-gray-700" v-html="item.content"></div> |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | | |
| | | <el-scrollbar class="flex-1 ml-4"> |
| | | <div class="analysis-container"> |
| | | <div class="analysis-item" :class="analysisState"> |
| | | <div class="item-label">您的答案</div> |
| | | <div class="item-info">{{ activeQuestion.answer }}</div> |
| | | </div> |
| | | |
| | | <div class="analysis-item analysis-right"> |
| | | <div class="item-label">正确答案</div> |
| | | <div class="item-info">{{ activeQuestion.questionAnswer }}</div> |
| | | </div> |
| | | |
| | | <div class="analysis-item text-gray-700"> |
| | | <div class="item-label">解析</div> |
| | | <div class="item-info" v-html="activeQuestion.analyze"></div> |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | | </div> |
| | | </template> |
| | |
| | | const gradeStore = useGradeStore(); |
| | | |
| | | |
| | | const { currentType, currentIndex } = storeToRefs(useGradeStore); |
| | | const { currentType, currentIndex } = storeToRefs(gradeStore); |
| | | |
| | | const activeQuestion = ref(examStore.useGradeStore); |
| | | const activeQuestion = ref(gradeStore.getActiveQuestion); |
| | | |
| | | |
| | | const answerState = (item,index) => { |