diff --git a/web/src/pages/mockExamination/chapterErrorListPaper.tsx b/web/src/pages/mockExamination/chapterErrorListPaper.tsx index 43a2f7f..6ea7b80 100644 --- a/web/src/pages/mockExamination/chapterErrorListPaper.tsx +++ b/web/src/pages/mockExamination/chapterErrorListPaper.tsx @@ -243,7 +243,7 @@ const CardList = () => { > - {JSON.stringify(questionNow) !== {} ? questionNow.index[1] + 1 : ""} 、{questionNow?.question_stem} + 、{questionNow?.question_stem} @@ -368,6 +368,12 @@ const CardList = () => { // runSavePersonAnswer({ // answer_ids: e.target.value, // question_id: questionNow.question_id, + // record_id: rulesPaperInfo.record_id + // }) + // console.log("答题:", questionAnswer, qArr, questionNow) + // 修改答题卡状态 写入答案以及修改答题状态 + const qX = questionNow?.question_type; + const qI = questionNow?.index; questionList[questionNow.index[0]].question_list[questionNow.index[1]].answerSelect = questionAnswer; if (questionAnswer === questionNow.answertrue) { questionList[questionNow.index[0]].question_list[questionNow.index[1]].state = 0 @@ -385,71 +391,88 @@ const CardList = () => { })} ) : "" - }
- - - 答题序号 - {questionNowNum}/{questionNum} - - +
+ + + + + + +
+ + + 答题序号 + {questionNowNum}/{questionNum} + + + block>上一题 - - - -
- - - - ); + if (e.question_id === questionNow.question_id) { + const nextTemp = paperInfo[i + 1] + const questionList = questionTypeList + let nextData = {} + questionList[nextTemp.index[0]].question_list.map((item, index) => { + if (item.question_id === nextTemp.question_id) { + nextData = item + } + }) + setQuestionNow(nextData) + } + + }) + + }}>下一题 + + +
+ + + + ); }; - export default CardList; +export default CardList;