| | |
| | | <div |
| | | v-if=" |
| | | (type == 'option' && examination.submitStatus) || |
| | | type == 'collectQuestion' || |
| | | type == 'errorQuestion' |
| | | type == 'errorQuestion' || type == 'collectQuestion' |
| | | " |
| | | > |
| | | <div class="resolving-btn" @click="showCollaspe()" v-if="!examination.isCollapse"> |
| | |
| | | const correctQuestion = (num: number, number: number) => { |
| | | const item = examination.cardList[num].infoList[number] |
| | | item.isComplete = true |
| | | //多选判断 |
| | | if (item.questionType == 'multipleChoice') { |
| | | console.log(item.answer,item.userAnswer) |
| | | if (item.answer.length == item.userAnswer.length) { |
| | | const sortedArr1 = item.answer.slice().sort() |
| | | const sortedArr2 = item.userAnswer.slice().sort() |
| | | console.log(sortedArr1,sortedArr2) |
| | | item.isRight = sortedArr1.every((value: string, index: number) => value === sortedArr2[index]) |
| | | } else { |
| | | item.isRight = false |
| | |
| | | questionObj.questionType == 'multipleChoice' |
| | | ) { |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString() |
| | | questionObj.answer = JSON.parse(questionObj.answer) |
| | | } catch (error) { |
| | | questionObj.answer = item.Embedded_QuestionBank_Answer |
| | | } |
| | |
| | | questionObj.questionType == 'multipleChoice' |
| | | ) { |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString() |
| | | questionObj.answer = JSON.parse(questionObj.answer) |
| | | } catch (error) { |
| | | questionObj.answer = item.Embedded_QuestionBank_Answer |
| | | } |