|
@@ -19,7 +19,7 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<div class="item-right">
|
|
|
- <b>{{ judgeAnswer == 'standardAnswer' ? item.itemIndex + 1 : index+ 1}}</b>
|
|
|
+ <b>{{ judgeAnswer == 'standardAnswer' ? item.number ? item.number : item.itemIndex + 1 : item.number ? item.number : index+ 1}}</b>
|
|
|
<draggable
|
|
|
v-model="item.detail.wordsList"
|
|
|
animation="300"
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
if (this.judgeAnswer == "standardAnswer") {
|
|
|
this.curQue.Bookanswer.forEach((item, i) => {
|
|
|
if (item.userAnswerJudge == "[JUDGE##F##JUDGE]") {
|
|
|
- this.curQue.option[i].itemIndex = i
|
|
|
+ this.curQue.option[i].itemIndex = this.curQue.option[i].number ? this.curQue.option[i].number : i
|
|
|
this.userErrList.push(
|
|
|
JSON.parse(JSON.stringify(this.curQue.option[i]))
|
|
|
);
|
|
@@ -228,10 +228,14 @@ export default {
|
|
|
this.curQue.Bookanswer.forEach((item) => {
|
|
|
if (item.userAnswerJudge == "[JUDGE##F##JUDGE]") {
|
|
|
item.detail.wordsList.forEach((items, i) => {
|
|
|
- if (items.chs == item.correctWordsList[i].chs) {
|
|
|
- items.correct = "correct";
|
|
|
- } else {
|
|
|
- items.correct = "error";
|
|
|
+ if(item.correctWordsList[i]){
|
|
|
+ if (items.chs == item.correctWordsList[i].chs) {
|
|
|
+ items.correct = "correct";
|
|
|
+ } else {
|
|
|
+ items.correct = "error";
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ items.correct = "";
|
|
|
}
|
|
|
});
|
|
|
} else {
|