From 56dda0faaeb30f2140b5f3d41e9571142daa725d Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 20 六月 2024 11:37:03 +0800
Subject: [PATCH] fix:修改时间
---
src/views/grade/components/answer-sheet/index.vue | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/views/grade/components/answer-sheet/index.vue b/src/views/grade/components/answer-sheet/index.vue
index fef8708..31a83a6 100644
--- a/src/views/grade/components/answer-sheet/index.vue
+++ b/src/views/grade/components/answer-sheet/index.vue
@@ -19,16 +19,17 @@
<script setup>
import { ref } from 'vue';
import {storeToRefs} from 'pinia';
-import {useExamStore} from '@/store/index.js';
-const examStore = useExamStore();
+import {useGradeStore} from '@/store/index.js';
+const gradeStore = useGradeStore();
-const {examType, examDetail,currentType,currentIndex} = storeToRefs(examStore);
+const {examType, examDetail,currentType,currentIndex} = storeToRefs(gradeStore);
const activeNames = ref(examDetail.value.map(item => item.questionType));
const itemClass = (question,type,index) => {
return {
- answer: question.correct,
+ right: question.isRight,
+ wrong: !question.isRight,
active: currentType.value === type && currentIndex.value === index
}
}
@@ -55,9 +56,13 @@
.active {
border-color: #3680fa;
}
-.answer {
- border-color: #3680fa !important;
- background-color: #3680fa !important;
+
+.right {
+ background-color: #67C23A !important;
+ color: #fff !important;
+}
+.wrong {
+ background-color: #F56C6C !important;
color: #fff !important;
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0