|
@@ -71,7 +71,7 @@
|
|
>{{ items.con }}</span
|
|
>{{ items.con }}</span
|
|
>
|
|
>
|
|
<input
|
|
<input
|
|
- @blur="handleInput"
|
|
|
|
|
|
+ @blur="handleInput(indexs)"
|
|
:class="['item-input', items.Inputfont]"
|
|
:class="['item-input', items.Inputfont]"
|
|
v-model="
|
|
v-model="
|
|
judgeAnswer == 'standardAnswer'
|
|
judgeAnswer == 'standardAnswer'
|
|
@@ -169,8 +169,9 @@ export default {
|
|
this.stopAudio = playFlag;
|
|
this.stopAudio = playFlag;
|
|
},
|
|
},
|
|
// input 输入时
|
|
// input 输入时
|
|
- handleInput(e) {
|
|
|
|
- e.target.value = e.target.value ? e.target.value.trim() : "";
|
|
|
|
|
|
+ handleInput(index) {
|
|
|
|
+ this.curQue.Bookanswer[index].answer = this.curQue.Bookanswer[index].answer.trim()
|
|
|
|
+ e.target.value = e.target.value ? e.target.value.trim() : "";
|
|
},
|
|
},
|
|
// 处理数据
|
|
// 处理数据
|
|
handleData() {
|
|
handleData() {
|
|
@@ -204,7 +205,7 @@ export default {
|
|
changeuserAnswerJudge(index) {
|
|
changeuserAnswerJudge(index) {
|
|
if (this.curQue.option[index].answer) {
|
|
if (this.curQue.option[index].answer) {
|
|
if (
|
|
if (
|
|
- this.curQue.Bookanswer[index].answer ==
|
|
|
|
|
|
+ this.curQue.Bookanswer[index].answer.trim() ==
|
|
this.curQue.option[index].answer
|
|
this.curQue.option[index].answer
|
|
) {
|
|
) {
|
|
this.curQue.Bookanswer[index].userAnswerJudge = "[JUDGE##T##JUDGE]";
|
|
this.curQue.Bookanswer[index].userAnswerJudge = "[JUDGE##T##JUDGE]";
|