From c28f27e7a03e9c14422ae787d412c286b6ad501c Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 26 六月 2024 17:49:51 +0800
Subject: [PATCH] fix:修改时间问题

---
 src/views/exam/components/answer-main/answer-multiple/index.vue |    2 +-
 src/views/exam-list/data-list/index.vue                         |    5 +++--
 src/views/exam/components/answer-time/index.vue                 |    2 +-
 src/views/exam/components/answer-main/answer-single/index.vue   |    4 ++--
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/exam-list/data-list/index.vue b/src/views/exam-list/data-list/index.vue
index 12feff2..11ed91c 100644
--- a/src/views/exam-list/data-list/index.vue
+++ b/src/views/exam-list/data-list/index.vue
@@ -84,9 +84,10 @@
   console.log(exam);
   getExamInfo(exam.id).then((res) => {
     examStore.setExamInfo({
-      examName: exam.examName
+      examName: res.data.examName,
+      examTime: res.data.suggestTime,
     });
-    examStore.setExamDetail(res.data);
+    examStore.setExamDetail(res.data.titleList);
     // examStore.setExamInfo(res.data.examInfo);
     // examStore.setExamDetail(res.data.examQuestionList);
     // examStore.initExam();
diff --git a/src/views/exam/components/answer-main/answer-multiple/index.vue b/src/views/exam/components/answer-main/answer-multiple/index.vue
index 530e87d..0cedd21 100644
--- a/src/views/exam/components/answer-main/answer-multiple/index.vue
+++ b/src/views/exam/components/answer-main/answer-multiple/index.vue
@@ -44,7 +44,7 @@
 };
 
 const filterAnswer = () => {
-  return activeQuestion.value.items.filter(item => item.isActive);
+  return activeQuestion.value.questionItemList.filter(item => item.isActive);
 }
 
 
diff --git a/src/views/exam/components/answer-main/answer-single/index.vue b/src/views/exam/components/answer-main/answer-single/index.vue
index 87ee164..278269e 100644
--- a/src/views/exam/components/answer-main/answer-single/index.vue
+++ b/src/views/exam/components/answer-main/answer-single/index.vue
@@ -46,11 +46,11 @@
 };
 
 const resetAnswer = () => {
-  activeQuestion.value.items.forEach(item => item.isActive = false);
+  activeQuestion.value.questionItemList.forEach(item => item.isActive = false);
 };
 
 const filterAnswer = () => {
-  return activeQuestion.value.items.filter(item => item.isActive);
+  return activeQuestion.value.questionItemList.filter(item => item.isActive);
 }
 
 
diff --git a/src/views/exam/components/answer-time/index.vue b/src/views/exam/components/answer-time/index.vue
index 629137d..aa2de08 100644
--- a/src/views/exam/components/answer-time/index.vue
+++ b/src/views/exam/components/answer-time/index.vue
@@ -18,7 +18,7 @@
 
 const emit = defineEmits(['timeOut']);
 
-const time = ref(dayjs().valueOf() + examInfo.value.examTime * 1000);
+const time = ref(dayjs().valueOf() + examInfo.value.examTime * 1000 * 60);
 
 const timeFinish = () => {
   emit('timeOut');

--
Gitblit v1.8.0