|
@@ -81,7 +81,8 @@
|
|
? 'noFont'
|
|
? 'noFont'
|
|
: '',
|
|
: '',
|
|
]"
|
|
]"
|
|
- >{{ itemCon.pinyin }}</span>
|
|
|
|
|
|
+ >{{ itemCon.pinyin }}</span
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<div style="text-align: left">
|
|
<div style="text-align: left">
|
|
<span
|
|
<span
|
|
@@ -148,7 +149,8 @@
|
|
v-model="curQue.Bookanswer[indexs].answer"
|
|
v-model="curQue.Bookanswer[indexs].answer"
|
|
placeholder="输入"
|
|
placeholder="输入"
|
|
maxlength="200"
|
|
maxlength="200"
|
|
- :readonly="TaskModel=='ANSWER'"
|
|
|
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
|
+ @change="changeuserAnswerJudge(indexs)"
|
|
></el-input>
|
|
></el-input>
|
|
<div v-if="items.record" class="luyin-inner">
|
|
<div v-if="items.record" class="luyin-inner">
|
|
<Soundrecord
|
|
<Soundrecord
|
|
@@ -276,7 +278,8 @@
|
|
v-model="curQue.Bookanswer[indexs].answer"
|
|
v-model="curQue.Bookanswer[indexs].answer"
|
|
placeholder="输入"
|
|
placeholder="输入"
|
|
maxlength="200"
|
|
maxlength="200"
|
|
- :readonly="TaskModel=='ANSWER'"
|
|
|
|
|
|
+ :readonly="TaskModel == 'ANSWER'"
|
|
|
|
+ @change="changeuserAnswerJudge(indexs)"
|
|
></el-input>
|
|
></el-input>
|
|
<div v-if="items.record" class="luyin-inner">
|
|
<div v-if="items.record" class="luyin-inner">
|
|
<Soundrecord
|
|
<Soundrecord
|
|
@@ -298,23 +301,42 @@
|
|
import Soundrecord from "../preview/Soundrecord.vue"; // 录音模板
|
|
import Soundrecord from "../preview/Soundrecord.vue"; // 录音模板
|
|
export default {
|
|
export default {
|
|
components: { Soundrecord },
|
|
components: { Soundrecord },
|
|
- props: ["curQue","TaskModel"],
|
|
|
|
|
|
+ props: ["curQue", "TaskModel"],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
wordShow: true,
|
|
wordShow: true,
|
|
textareaCon: "", // 输入框
|
|
textareaCon: "", // 输入框
|
|
chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
|
|
chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
- answerArr:[]
|
|
|
|
|
|
+ answerArr: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
watch: {},
|
|
watch: {},
|
|
//方法集合
|
|
//方法集合
|
|
methods: {
|
|
methods: {
|
|
|
|
+ changeuserAnswerJudge(index) {
|
|
|
|
+ let _this = this;
|
|
|
|
+ if (
|
|
|
|
+ _this.curQue.option[index].answer ==
|
|
|
|
+ _this.curQue.Bookanswer[index].answer.trim()
|
|
|
|
+ ) {
|
|
|
|
+ _this.$set(
|
|
|
|
+ _this.curQue.Bookanswer[index],
|
|
|
|
+ "userAnswerJudge",
|
|
|
|
+ "[JUDGE##T##JUDGE]"
|
|
|
|
+ );
|
|
|
|
+ } else {
|
|
|
|
+ _this.$set(
|
|
|
|
+ _this.curQue.Bookanswer[index],
|
|
|
|
+ "userAnswerJudge",
|
|
|
|
+ "[JUDGE##F##JUDGE]"
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleWav(list, tmIndex) {
|
|
handleWav(list, tmIndex) {
|
|
- tmIndex = tmIndex ? tmIndex : 0;
|
|
|
|
- this.$set(this.curQue.Bookanswer[tmIndex], "recordList", list);
|
|
|
|
|
|
+ tmIndex = tmIndex ? tmIndex : 0;
|
|
|
|
+ this.$set(this.curQue.Bookanswer[tmIndex], "recordList", list);
|
|
},
|
|
},
|
|
// 处理数据
|
|
// 处理数据
|
|
handleData() {
|
|
handleData() {
|
|
@@ -323,9 +345,10 @@ export default {
|
|
let curQue = JSON.parse(JSON.stringify(this.curQue));
|
|
let curQue = JSON.parse(JSON.stringify(this.curQue));
|
|
curQue.option.forEach((dItem, dIndex) => {
|
|
curQue.option.forEach((dItem, dIndex) => {
|
|
curCorrect.push({
|
|
curCorrect.push({
|
|
- answer: "",
|
|
|
|
- recordList: [],
|
|
|
|
- });
|
|
|
|
|
|
+ answer: "",
|
|
|
|
+ recordList: [],
|
|
|
|
+ userAnswerJudge: dItem.answer ? "[JUDGE##F##JUDGE]" : "",
|
|
|
|
+ });
|
|
let paraArr = [];
|
|
let paraArr = [];
|
|
dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
this.mergeWordSymbol(dItem.detail.wordsList, sItem, sIndex);
|
|
this.mergeWordSymbol(dItem.detail.wordsList, sItem, sIndex);
|
|
@@ -339,14 +362,14 @@ export default {
|
|
this.$set(_this.curQue.option[dIndex].detail, "resArr", paraArr);
|
|
this.$set(_this.curQue.option[dIndex].detail, "resArr", paraArr);
|
|
});
|
|
});
|
|
if (!this.curQue.Bookanswer) {
|
|
if (!this.curQue.Bookanswer) {
|
|
- this.$set(this.curQue, "Bookanswer", curCorrect);
|
|
|
|
|
|
+ this.$set(this.curQue, "Bookanswer", curCorrect);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//词和标点合一起
|
|
//词和标点合一起
|
|
mergeWordSymbol(sItem, wItem, curIndex) {
|
|
mergeWordSymbol(sItem, wItem, curIndex) {
|
|
let leg = sItem.length;
|
|
let leg = sItem.length;
|
|
if (curIndex < leg - 1) {
|
|
if (curIndex < leg - 1) {
|
|
- if (this.chsFhList.indexOf(wItem.chs) > -1&&curIndex!=0) {
|
|
|
|
|
|
+ if (this.chsFhList.indexOf(wItem.chs) > -1 && curIndex != 0) {
|
|
wItem.isShow = false;
|
|
wItem.isShow = false;
|
|
} else {
|
|
} else {
|
|
wItem.isShow = true;
|
|
wItem.isShow = true;
|