|
@@ -64,9 +64,9 @@
|
|
|
>
|
|
|
<input
|
|
|
class="singleInput"
|
|
|
- v-model="curQue.Bookanswer[0].input"
|
|
|
+ v-model="curQue.Bookanswer[0].input[0]"
|
|
|
placeholder="输入"
|
|
|
- @blur="handleInput('input')"
|
|
|
+ @blur="handleInput('input', 0)"
|
|
|
/>
|
|
|
</template>
|
|
|
<!-- <input class="singleInput" placeholder="输入" @blur="handleInput(index,indexs)" v-if="fn_list_obj[index]&&fn_list_obj[index].indexOf('input')>-1"> -->
|
|
@@ -75,9 +75,9 @@
|
|
|
<div class="fill-box">
|
|
|
<b v-if="items.hanzi">{{ items.hanzi }}</b>
|
|
|
<input
|
|
|
- v-model="curQue.Bookanswer[0].input"
|
|
|
+ v-model="curQue.Bookanswer[0].input[0]"
|
|
|
placeholder="输入"
|
|
|
- @blur="handleInput('input')"
|
|
|
+ @blur="handleInput('input', 0)"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -86,13 +86,13 @@
|
|
|
<div class="DoubleInput-box">
|
|
|
<input
|
|
|
placeholder="输入"
|
|
|
- @blur="handleInput('dInput', 0)"
|
|
|
- v-model="curQue.Bookanswer[0].dInput[0]"
|
|
|
+ @blur="handleInput('input', 0)"
|
|
|
+ v-model="curQue.Bookanswer[0].input[0]"
|
|
|
/>
|
|
|
<input
|
|
|
placeholder="输入"
|
|
|
- @blur="handleInput('dInput', 1)"
|
|
|
- v-model="curQue.Bookanswer[0].dInput[1]"
|
|
|
+ @blur="handleInput('input', 1)"
|
|
|
+ v-model="curQue.Bookanswer[0].input[1]"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -169,8 +169,8 @@ export default {
|
|
|
fn_list_obj: "",
|
|
|
answer: [],
|
|
|
userAnswer: {
|
|
|
- input: "", // 输入
|
|
|
- dInput: ["", ""], //双输入
|
|
|
+ input: [], // 输入
|
|
|
+ // dInput: ["", ""], //双输入
|
|
|
judge: "", // 判断
|
|
|
singleRadio: "",
|
|
|
singlechecked: false,
|
|
@@ -199,7 +199,6 @@ export default {
|
|
|
this.curQue.Bookanswer.push(
|
|
|
JSON.parse(JSON.stringify(this.userAnswer))
|
|
|
);
|
|
|
- console.log(this.curQue);
|
|
|
}
|
|
|
let obj = "";
|
|
|
this.curQue.fn_list.forEach((node) => {
|
|
@@ -229,8 +228,8 @@ export default {
|
|
|
// 去掉前后空格
|
|
|
handleInput(key, indexs) {
|
|
|
if (indexs || indexs == 0) {
|
|
|
- let res = this.userAnswer[index][indexs].trim();
|
|
|
- this.$set(this.userAnswer[index], indexs, res);
|
|
|
+ let res = this.curQue.Bookanswer[0][key][indexs].trim();
|
|
|
+ this.$set(this.curQue.Bookanswer[0][key], indexs, res);
|
|
|
} else {
|
|
|
this.curQue.Bookanswer[0][key] = this.curQue.Bookanswer[0][key].trim();
|
|
|
}
|
|
@@ -262,7 +261,7 @@ export default {
|
|
|
},
|
|
|
// 判断题选择
|
|
|
handleSelectJudge(obj) {
|
|
|
- this.userAnswer.judge = obj;
|
|
|
+ this.curQue.Bookanswer[0].judge = obj;
|
|
|
},
|
|
|
handleWav(list, tmIndex) {
|
|
|
tmIndex = tmIndex ? tmIndex : 0;
|