|
|
@@ -1,7 +1,10 @@
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
|
|
<template>
|
|
|
<div ref="previewContainer" class="newWord-preview" :style="getAreaStyle()">
|
|
|
- <SerialNumberPosition v-if="isEnable(data.property.sn_display_mode)" :property="data.property" />
|
|
|
+ <SerialNumberPosition
|
|
|
+ v-if="isEnable(data.property.hasOwnProperty('sn_display_mode') ? data.property.sn_display_mode : 'false')"
|
|
|
+ :property="data.property"
|
|
|
+ />
|
|
|
|
|
|
<main v-if="data" ref="newWordMain" class="main">
|
|
|
<div class="NPC-zhedie" :style="{ width: width }">
|
|
|
@@ -481,8 +484,8 @@
|
|
|
? '180px'
|
|
|
: '160px',
|
|
|
}"
|
|
|
- :src="item.pic_url"
|
|
|
- :preview-src-list="[item.pic_url]"
|
|
|
+ :src="item.file_list[0].file_url"
|
|
|
+ :preview-src-list="[item.file_list[0].file_url]"
|
|
|
fit="contain"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -794,7 +797,7 @@ export default {
|
|
|
oldVal.new_word_list[0].new_word &&
|
|
|
val.new_word_list[0].new_word !== oldVal.new_word_list[0].new_word) ||
|
|
|
(val && val.new_word_list[0].new_word && !oldVal) ||
|
|
|
- (val && val.hasOwn('unified_attrib') && oldVal && !oldVal.hasOwn('unified_attrib'))
|
|
|
+ (val && val.hasOwnProperty('unified_attrib') && oldVal && !oldVal.hasOwnProperty('unified_attrib'))
|
|
|
) {
|
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
|
this.initData();
|
|
|
@@ -934,9 +937,10 @@ export default {
|
|
|
let Bookanswer = [];
|
|
|
let option_list = [];
|
|
|
if (this.data.audio_data.file_id) {
|
|
|
- GetFileURLMap({ file_id_list: [this.data.audio_data.file_id] }).then(({ url_map }) => {
|
|
|
- this.data.audio_data.url = url_map[this.data.audio_data.file_id];
|
|
|
- });
|
|
|
+ this.data.audio_data.url = this.data.audio_data.temporary_url;
|
|
|
+ // GetFileURLMap({ file_id_list: [this.data.audio_data.file_id] }).then(({ url_map }) => {
|
|
|
+ // this.data.audio_data.url = url_map[this.data.audio_data.file_id];
|
|
|
+ // });
|
|
|
}
|
|
|
this.data.new_word_list.forEach((item) => {
|
|
|
if (item.number) {
|
|
|
@@ -951,11 +955,11 @@ export default {
|
|
|
this.$set(item, 'mp3_list_url', url_map[item.mp3_list]);
|
|
|
});
|
|
|
}
|
|
|
- if (item.file_list && item.file_list[0]) {
|
|
|
- GetFileURLMap({ file_id_list: item.file_list }).then(({ url_map }) => {
|
|
|
- this.$set(item, 'pic_url', url_map[item.file_list[0]]);
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (item.file_list && item.file_list[0]) {
|
|
|
+ // GetFileURLMap({ file_id_list: item.file_list }).then(({ url_map }) => {
|
|
|
+ // this.$set(item, 'pic_url', url_map[item.file_list[0]]);
|
|
|
+ // });
|
|
|
+ // }
|
|
|
this.$set(item, 'show_left', true);
|
|
|
this.$set(item, 'isFlipped', false);
|
|
|
});
|