|
|
@@ -70,6 +70,8 @@
|
|
|
<script>
|
|
|
import { pinyinPositionList, isEnable } from '@/views/book/courseware/data/common';
|
|
|
|
|
|
+import { GetBookUnifiedAttrib } from '@/api/book';
|
|
|
+
|
|
|
export default {
|
|
|
name: 'FullTextSettings',
|
|
|
props: {
|
|
|
@@ -81,6 +83,10 @@ export default {
|
|
|
type: Object,
|
|
|
required: true,
|
|
|
},
|
|
|
+ bookId: {
|
|
|
+ type: String,
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -123,7 +129,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getBookUnifiedAttr();
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getBookUnifiedAttr() {
|
|
|
+ GetBookUnifiedAttrib({ book_id: this.bookId }).then(({ content }) => {
|
|
|
+ if (content && (this.settings === null || Object.keys(this.settings).length > 0)) {
|
|
|
+ this.unified_attrib = JSON.parse(content);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
handleClose() {
|
|
|
this.$emit('update:visible', false);
|
|
|
},
|