|
@@ -77,8 +77,8 @@
|
|
|
? data.unified_attrib.topic_color
|
|
? data.unified_attrib.topic_color
|
|
|
: '',
|
|
: '',
|
|
|
}"
|
|
}"
|
|
|
- ><svg-icon icon-class="icon-article-ci" size="24" />本课生词</a
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-ci" size="24"
|
|
|
|
|
+ /></a>
|
|
|
<a
|
|
<a
|
|
|
v-if="data.property.is_enable_read === 'true'"
|
|
v-if="data.property.is_enable_read === 'true'"
|
|
|
@click="handleSwitchChange('showPhrases', 'showWord', 'showPractice')"
|
|
@click="handleSwitchChange('showPhrases', 'showWord', 'showPractice')"
|
|
@@ -88,8 +88,8 @@
|
|
|
? data.unified_attrib.topic_color
|
|
? data.unified_attrib.topic_color
|
|
|
: '',
|
|
: '',
|
|
|
}"
|
|
}"
|
|
|
- ><svg-icon icon-class="icon-article-practice" size="24" />语音练习</a
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-practice" size="24"
|
|
|
|
|
+ /></a>
|
|
|
<a
|
|
<a
|
|
|
v-if="data.property.is_enable_word === 'true'"
|
|
v-if="data.property.is_enable_word === 'true'"
|
|
|
@click="handleSwitchChange('showPhrases', 'showPractice', 'showWord')"
|
|
@click="handleSwitchChange('showPhrases', 'showPractice', 'showWord')"
|
|
@@ -99,8 +99,8 @@
|
|
|
? data.unified_attrib.topic_color
|
|
? data.unified_attrib.topic_color
|
|
|
: '',
|
|
: '',
|
|
|
}"
|
|
}"
|
|
|
- ><svg-icon icon-class="icon-article-phrase" size="24" />取词</a
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-phrase" size="24"
|
|
|
|
|
+ /></a>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="setting-fontsize">
|
|
<!-- <div class="setting-fontsize">
|
|
|
<a @click="handleFontsize('-')"
|
|
<a @click="handleFontsize('-')"
|
|
@@ -209,13 +209,19 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <template v-if="data.new_word_list.new_word_list.length > 0">
|
|
|
|
|
|
|
+ <template
|
|
|
|
|
+ v-if="data.new_word_list && data.new_word_list.new_word_list && data.new_word_list.new_word_list.length > 0"
|
|
|
|
|
+ >
|
|
|
<NewWordPreview :new-data="data.new_word_list" />
|
|
<NewWordPreview :new-data="data.new_word_list" />
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-if="data.other_word_list.new_word_list.length > 0">
|
|
|
|
|
|
|
+ <template
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ data.other_word_list && data.other_word_list.new_word_list && data.other_word_list.new_word_list.length > 0
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
<NewWordPreview :new-data="data.other_word_list" />
|
|
<NewWordPreview :new-data="data.other_word_list" />
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-if="data.notes_list.option.length > 0">
|
|
|
|
|
|
|
+ <template v-if="data.notes_list && data.notes_list.option && data.notes_list.option.length > 0">
|
|
|
<NotesPreview :notes-data="data.notes_list" />
|
|
<NotesPreview :notes-data="data.notes_list" />
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
@@ -299,10 +305,10 @@ export default {
|
|
|
handler(val) {
|
|
handler(val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.data.multilingual.forEach((item) => {
|
|
this.data.multilingual.forEach((item) => {
|
|
|
- let trans_arr = item.translation.split('\n');
|
|
|
|
|
|
|
+ let trans_arr = item.translation ? item.translation.split('\n') : [];
|
|
|
this.data.detail.forEach((items) => {
|
|
this.data.detail.forEach((items) => {
|
|
|
let items_trans_arr = [];
|
|
let items_trans_arr = [];
|
|
|
- if (!items.hasOwn('multilingualTextList')) {
|
|
|
|
|
|
|
+ if (!items.hasOwnProperty('multilingualTextList')) {
|
|
|
this.$set(items, 'multilingualTextList', {});
|
|
this.$set(items, 'multilingualTextList', {});
|
|
|
}
|
|
}
|
|
|
if (items.para) {
|
|
if (items.para) {
|
|
@@ -479,10 +485,10 @@ export default {
|
|
|
|
|
|
|
|
if (this.showLang) {
|
|
if (this.showLang) {
|
|
|
this.data.multilingual.forEach((item) => {
|
|
this.data.multilingual.forEach((item) => {
|
|
|
- let trans_arr = item.translation.split('\n');
|
|
|
|
|
|
|
+ let trans_arr = item.translation ? item.translation.split('\n') : [];
|
|
|
this.data.detail.forEach((items) => {
|
|
this.data.detail.forEach((items) => {
|
|
|
let items_trans_arr = [];
|
|
let items_trans_arr = [];
|
|
|
- if (!items.hasOwn('multilingualTextList')) {
|
|
|
|
|
|
|
+ if (!items.hasOwnProperty('multilingualTextList')) {
|
|
|
this.$set(items, 'multilingualTextList', {});
|
|
this.$set(items, 'multilingualTextList', {});
|
|
|
}
|
|
}
|
|
|
if (items.para) {
|
|
if (items.para) {
|
|
@@ -500,9 +506,15 @@ export default {
|
|
|
this.NNPENewWordList = (
|
|
this.NNPENewWordList = (
|
|
|
this.data.new_word_list_other_component_input ? this.data.new_word_list_other_component_input : []
|
|
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;
|
|
|
|
|
|
|
+ .concat(
|
|
|
|
|
+ this.data.new_word_list && this.data.new_word_list.new_word_list ? this.data.new_word_list.new_word_list : [],
|
|
|
|
|
+ )
|
|
|
|
|
+ .concat(
|
|
|
|
|
+ this.data.other_word_list && this.data.other_word_list.new_word_list
|
|
|
|
|
+ ? this.data.other_word_list.new_word_list
|
|
|
|
|
+ : [],
|
|
|
|
|
+ );
|
|
|
|
|
+ this.NNPEAnnotationList = this.data.notes_list && this.data.notes_list.option ? this.data.notes_list.option : [];
|
|
|
let resArr = [];
|
|
let resArr = [];
|
|
|
let sentArrTotal = [];
|
|
let sentArrTotal = [];
|
|
|
let timeArr = [];
|
|
let timeArr = [];
|