|
@@ -67,6 +67,8 @@
|
|
|
v-model="curQue.Bookanswer[0].input[0]"
|
|
|
placeholder="输入"
|
|
|
@blur="handleInput('input', 0)"
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
+ maxlength="200"
|
|
|
/>
|
|
|
</template>
|
|
|
<!-- <input class="singleInput" placeholder="输入" @blur="handleInput(index,indexs)" v-if="fn_list_obj[index]&&fn_list_obj[index].indexOf('input')>-1"> -->
|
|
@@ -78,6 +80,8 @@
|
|
|
v-model="curQue.Bookanswer[0].input[0]"
|
|
|
placeholder="输入"
|
|
|
@blur="handleInput('input', 0)"
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
+ maxlength="200"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -88,11 +92,15 @@
|
|
|
placeholder="输入"
|
|
|
@blur="handleInput('input', 0)"
|
|
|
v-model="curQue.Bookanswer[0].input[0]"
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
+ maxlength="200"
|
|
|
/>
|
|
|
<input
|
|
|
placeholder="输入"
|
|
|
@blur="handleInput('input', 1)"
|
|
|
v-model="curQue.Bookanswer[0].input[1]"
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
+ maxlength="200"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -117,13 +125,18 @@
|
|
|
</template>
|
|
|
<!-- 单选 -->
|
|
|
<template v-if="ChildType == 'image_single'">
|
|
|
- <el-radio v-model="curQue.Bookanswer[0].singleRadio" label="1"
|
|
|
+ <el-radio
|
|
|
+ v-model="curQue.Bookanswer[0].singleRadio"
|
|
|
+ label="1"
|
|
|
+ :disabled="TaskModel == 'ANSWER'"
|
|
|
><span></span
|
|
|
></el-radio>
|
|
|
</template>
|
|
|
<!-- 复选 -->
|
|
|
<template v-if="ChildType == 'image_checkBox'">
|
|
|
- <el-checkbox v-model="curQue.Bookanswer[0].singlechecked"
|
|
|
+ <el-checkbox
|
|
|
+ v-model="curQue.Bookanswer[0].singlechecked"
|
|
|
+ :disabled="TaskModel == 'ANSWER'"
|
|
|
><span></span
|
|
|
></el-checkbox>
|
|
|
</template>
|
|
@@ -163,7 +176,7 @@ import Soundrecord from "../preview/Soundrecord.vue"; // 录音模板
|
|
|
import Recorder from "js-audio-recorder"; //录音插件
|
|
|
export default {
|
|
|
components: { Soundrecord },
|
|
|
- props: ["curQue", "ChildType"],
|
|
|
+ props: ["curQue", "ChildType", "TaskModel"],
|
|
|
data() {
|
|
|
return {
|
|
|
fn_list_obj: "",
|
|
@@ -261,7 +274,9 @@ export default {
|
|
|
},
|
|
|
// 判断题选择
|
|
|
handleSelectJudge(obj) {
|
|
|
- this.curQue.Bookanswer[0].judge = obj;
|
|
|
+ if (this.TaskModel != "ANSWER") {
|
|
|
+ this.curQue.Bookanswer[0].judge = obj;
|
|
|
+ }
|
|
|
},
|
|
|
handleWav(list, tmIndex) {
|
|
|
tmIndex = tmIndex ? tmIndex : 0;
|