|
@@ -95,9 +95,10 @@ export default defineComponent({
|
|
|
const result: any = []
|
|
|
|
|
|
list.forEach((item: any, index: number) => {
|
|
|
+ // console.log(item, 'item')
|
|
|
result.push({
|
|
|
- answerId: item.index,
|
|
|
- answer: item.leftValue,
|
|
|
+ answerId: item.answerId,
|
|
|
+ answer: item.answer,
|
|
|
answerExtra: index + 1
|
|
|
})
|
|
|
})
|
|
@@ -110,6 +111,7 @@ export default defineComponent({
|
|
|
if (item.checked) return
|
|
|
const result: any = []
|
|
|
state.options.forEach((option: any, index: any) => {
|
|
|
+ // console.log(option, '------')
|
|
|
result.push({
|
|
|
answerId: option.index,
|
|
|
answer: option.leftValue,
|
|
@@ -152,9 +154,7 @@ export default defineComponent({
|
|
|
const rightOption = answers.find(
|
|
|
(child: any) => answer.answerId === child.examinationQuestionAnswerId
|
|
|
)
|
|
|
- const rightValue = answers.find(
|
|
|
- (child: any) => answer.answerExtra === child.questionExtra
|
|
|
- )
|
|
|
+ const rightValue = answers.find((child: any) => answer.answerExtra == child.questionExtra)
|
|
|
const tmp = {
|
|
|
itemIndex: index,
|
|
|
index: answer.answerId, // 左边的值
|
|
@@ -166,7 +166,7 @@ export default defineComponent({
|
|
|
}
|
|
|
state.options.push(tmp)
|
|
|
})
|
|
|
- // console.log(state.options)
|
|
|
+ // console.log(state.options, 'after options')
|
|
|
// state.list = state.options
|
|
|
}
|
|
|
// else {
|