|
@@ -92,17 +92,17 @@ export default defineComponent({
|
|
|
const temp = data.examinationQuestionAdds || []
|
|
|
temp.forEach((item: any) => {
|
|
|
const rightAnswers = item.rightAnswers || []
|
|
|
- const answers = item.answers || []
|
|
|
- answers.forEach((answer: any) => {
|
|
|
- const child = rightAnswers.find(
|
|
|
- (right: any) =>
|
|
|
- right.examinationQuestionAnswerId === answer.examinationQuestionAnswerId
|
|
|
- )
|
|
|
- if (child) {
|
|
|
- answer.selectRate = child.selectRate
|
|
|
- }
|
|
|
- })
|
|
|
- item.answers = answers
|
|
|
+ // const answers = item.answers || []
|
|
|
+ // answers.forEach((answer: any) => {
|
|
|
+ // const child = rightAnswers.find(
|
|
|
+ // (right: any) =>
|
|
|
+ // right.examinationQuestionAnswerId === answer.examinationQuestionAnswerId
|
|
|
+ // )
|
|
|
+ // if (child) {
|
|
|
+ // answer.selectRate = child.selectRate
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // item.answers = answers
|
|
|
|
|
|
item.userAnswer = formatTeacherAnswer(rightAnswers)
|
|
|
item.showAnalysis = true
|