From 3a8c5ce0987df263e897f26fbbb8196e4a7b6eea Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期二, 02 七月 2024 11:55:06 +0800 Subject: [PATCH] feat:网页端打开会议 --- src/store/modules/exam.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/store/modules/exam.js b/src/store/modules/exam.js index b54d2ad..854eb4b 100644 --- a/src/store/modules/exam.js +++ b/src/store/modules/exam.js @@ -34,7 +34,7 @@ examDetail.value.forEach(item => { total += item.questionList.length; item.questionList.forEach(question => { - grade += Number(question.score); + grade += Number(question.questionScore); }); }); return { @@ -42,7 +42,6 @@ grade, }; }); - const setExamInfo = (info) => { examInfo.value = info; @@ -55,9 +54,16 @@ const setQuestionAnswer = (type, index, answer) => { const temp = examDetail.value.find(item => item.questionType === type); if (temp) { - temp.questionList[index].correct = answer; + temp.questionList[index].answer = answer; } }; + + const setQuestionAnswerList = (type, index, answer) => { + const temp = examDetail.value.find(item => item.questionType === type); + if (temp) { + temp.questionList[index].answerList = answer; + } + } const setProgress = (progress) => { answerProgress.value = progress; @@ -87,6 +93,7 @@ setExamInfo, setExamDetail, setQuestionAnswer, + setQuestionAnswerList, setProgress }; }); -- Gitblit v1.8.0