|
@@ -74,6 +74,7 @@
|
|
|
@changeConfig="changeConfig"
|
|
|
:NNPEAnnotationList="NNPEAnnotationList"
|
|
|
:colLength="colLength"
|
|
|
+ :multilingualTextList="showLang && multilingualTextList[getLang()] ? multilingualTextList[getLang()] : []"
|
|
|
/>
|
|
|
<PhraseModel
|
|
|
:curQue="data"
|
|
@@ -90,6 +91,7 @@
|
|
|
:NNPEAnnotationList="NNPEAnnotationList"
|
|
|
:colLength="colLength"
|
|
|
:NpcNewWordMp3="NpcNewWordMp3"
|
|
|
+ :multilingualTextList="showLang && multilingualTextList[getLang()] ? multilingualTextList[getLang()] : []"
|
|
|
/>
|
|
|
<Practice
|
|
|
:curQue="data"
|
|
@@ -105,6 +107,7 @@
|
|
|
:colLength="colLength"
|
|
|
:NpcNewWordMp3="NpcNewWordMp3"
|
|
|
:isFull="isFull"
|
|
|
+ :multilingualTextList="showLang && multilingualTextList[getLang()] ? multilingualTextList[getLang()] : []"
|
|
|
/>
|
|
|
<WordModel
|
|
|
:curQue="data"
|
|
@@ -120,6 +123,7 @@
|
|
|
@changeConfig="changeConfig"
|
|
|
:TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
|
|
|
:colLength="colLength"
|
|
|
+ :multilingualTextList="showLang && multilingualTextList[getLang()] ? multilingualTextList[getLang()] : []"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="voice-full-screen" :id="'screen-' + mathNum">
|
|
@@ -261,6 +265,7 @@ export default {
|
|
|
NNPENewWordList: [],
|
|
|
NpcNewWordMp3: [],
|
|
|
colLength: 1,
|
|
|
+ multilingualTextList: {},
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -381,6 +386,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleData() {
|
|
|
+ if (this.showLang) {
|
|
|
+ this.data.multilingual.forEach((item) => {
|
|
|
+ let trans_arr = item.translation.split('\n');
|
|
|
+ this.$set(this.multilingualTextList, item.type, trans_arr);
|
|
|
+ });
|
|
|
+ }
|
|
|
let userAnswer = JSON.parse(JSON.stringify(this.userAnswer));
|
|
|
this.$set(this.data, 'Bookanswer', userAnswer);
|
|
|
if (this.data.mp3_list && this.data.mp3_list.length > 0) {
|
|
@@ -388,7 +399,9 @@ export default {
|
|
|
this.data.mp3_list[0].url = url_map[this.data.mp3_list[0].file_id];
|
|
|
});
|
|
|
}
|
|
|
- this.NNPENewWordList = this.data.new_word_list_other_component_input
|
|
|
+ this.NNPENewWordList = (
|
|
|
+ this.data.new_word_list_other_component_input ? this.data.new_word_list_other_component_input : []
|
|
|
+ )
|
|
|
.concat(this.data.new_word_list.new_word_list)
|
|
|
.concat(this.data.other_word_list.new_word_list);
|
|
|
this.NNPEAnnotationList = this.data.notes_list.option;
|