|
@@ -504,10 +504,10 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
data: {
|
|
data: {
|
|
- handler(val) {
|
|
|
|
- if (val) {
|
|
|
|
|
|
+ handler(val, oldVal) {
|
|
|
|
+ if (val !== oldVal) {
|
|
if (this.is_change) return;
|
|
if (this.is_change) return;
|
|
- if (val.new_word_list[0].new_word) {
|
|
|
|
|
|
+ if (val && val.new_word_list[0].new_word) {
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
this.initData();
|
|
this.initData();
|
|
}
|
|
}
|
|
@@ -678,9 +678,9 @@ export default {
|
|
this.optionRes = JSON.parse(JSON.stringify(optionRes));
|
|
this.optionRes = JSON.parse(JSON.stringify(optionRes));
|
|
this.$set(this.data, 'option_list', option_list);
|
|
this.$set(this.data, 'option_list', option_list);
|
|
if (!this.isJudgingRightWrong) {
|
|
if (!this.isJudgingRightWrong) {
|
|
- this.data.answer.answer_list = Bookanswer;
|
|
|
|
|
|
+ this.answer.answer_list = Bookanswer;
|
|
}
|
|
}
|
|
- if (this.showLang) {
|
|
|
|
|
|
+ if (this.showLang && this.data.multilingual) {
|
|
this.data.multilingual.forEach((item) => {
|
|
this.data.multilingual.forEach((item) => {
|
|
let trans_arr = item.translation.split('\n');
|
|
let trans_arr = item.translation.split('\n');
|
|
this.$set(this.titleTrans, item.type, trans_arr[0] ? trans_arr[0] : '');
|
|
this.$set(this.titleTrans, item.type, trans_arr[0] ? trans_arr[0] : '');
|
|
@@ -720,7 +720,7 @@ export default {
|
|
handleWav(list, tmIndex, tmsIndex) {
|
|
handleWav(list, tmIndex, tmsIndex) {
|
|
tmIndex = tmIndex || 0;
|
|
tmIndex = tmIndex || 0;
|
|
tmsIndex = tmsIndex || 0;
|
|
tmsIndex = tmsIndex || 0;
|
|
- this.$set(this.data.answer.answer_list[tmIndex][tmsIndex], 'recordList', list);
|
|
|
|
|
|
+ this.$set(this.answer.answer_list[tmIndex][tmsIndex], 'recordList', list);
|
|
},
|
|
},
|
|
// 翻面
|
|
// 翻面
|
|
changeShowLeft(item) {
|
|
changeShowLeft(item) {
|
|
@@ -738,7 +738,7 @@ export default {
|
|
@include preview-base;
|
|
@include preview-base;
|
|
|
|
|
|
.NPC-zhedie {
|
|
.NPC-zhedie {
|
|
- width: 900px;
|
|
|
|
|
|
+ width: 1000px;
|
|
|
|
|
|
// width: 780px;
|
|
// width: 780px;
|
|
// margin-bottom: 24px;
|
|
// margin-bottom: 24px;
|