|
@@ -409,6 +409,7 @@ export default {
|
|
|
getChinese: () => this.chinese,
|
|
getChinese: () => this.chinese,
|
|
|
getLangList: () => this.langList,
|
|
getLangList: () => this.langList,
|
|
|
convertText: this.convertText,
|
|
convertText: this.convertText,
|
|
|
|
|
+ getTitleList: () => this.title_list,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
@@ -520,7 +521,7 @@ export default {
|
|
|
opencc: OpenCC.Converter({ from: 'cn', to: 'tw' }),
|
|
opencc: OpenCC.Converter({ from: 'cn', to: 'tw' }),
|
|
|
langList: [],
|
|
langList: [],
|
|
|
lang: 'ZH',
|
|
lang: 'ZH',
|
|
|
- chinese: 'zh-Hans',
|
|
|
|
|
|
|
+ chinese: 'zh-Hans', // 语言简体中文zh-Hans,繁体中文zh-Hant
|
|
|
isJudgeCorrect: false,
|
|
isJudgeCorrect: false,
|
|
|
isShowAnswer: false,
|
|
isShowAnswer: false,
|
|
|
unified_attrib: {},
|
|
unified_attrib: {},
|
|
@@ -542,6 +543,7 @@ export default {
|
|
|
activeBookChapterId: '',
|
|
activeBookChapterId: '',
|
|
|
multimediaLoadingStates: true,
|
|
multimediaLoadingStates: true,
|
|
|
isFullScreen: false, // 是否全屏状态
|
|
isFullScreen: false, // 是否全屏状态
|
|
|
|
|
+ title_list: [],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -657,40 +659,43 @@ export default {
|
|
|
* @param {string} id - 课件ID
|
|
* @param {string} id - 课件ID
|
|
|
*/
|
|
*/
|
|
|
getCoursewareComponentContent_View(id) {
|
|
getCoursewareComponentContent_View(id) {
|
|
|
- ContentGetCoursewareContent_View({ id }).then(({ content, component_list, content_group_row_list }) => {
|
|
|
|
|
- if (content) {
|
|
|
|
|
- const _content = JSON.parse(content);
|
|
|
|
|
- this.data = _content;
|
|
|
|
|
- this.background = {
|
|
|
|
|
- background_image_url: _content.background_image_url,
|
|
|
|
|
- background_position: _content.background_position,
|
|
|
|
|
- };
|
|
|
|
|
- } else {
|
|
|
|
|
- this.data = { row_list: [] };
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ ContentGetCoursewareContent_View({ id }).then(
|
|
|
|
|
+ ({ content, component_list, content_group_row_list, title_list }) => {
|
|
|
|
|
+ if (content) {
|
|
|
|
|
+ const _content = JSON.parse(content);
|
|
|
|
|
+ this.data = _content;
|
|
|
|
|
+ this.background = {
|
|
|
|
|
+ background_image_url: _content.background_image_url,
|
|
|
|
|
+ background_position: _content.background_position,
|
|
|
|
|
+ };
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.data = { row_list: [] };
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- if (component_list) this.component_list = component_list;
|
|
|
|
|
- this.component_list.forEach((x) => {
|
|
|
|
|
- if (x.component_type === 'audio') {
|
|
|
|
|
- let _c = JSON.parse(x.content);
|
|
|
|
|
- let p = _c.property || {};
|
|
|
|
|
- if (!p.file_name_display_mode) p.file_name_display_mode = 'true';
|
|
|
|
|
- if (p.view_method === 'independent' && !p.style_mode) {
|
|
|
|
|
- p.style_mode = 'middle';
|
|
|
|
|
- }
|
|
|
|
|
- if (!p.style_mode) p.style_mode = 'big';
|
|
|
|
|
- if (p.view_method === 'icon') {
|
|
|
|
|
- p.file_name_display_mode = 'false';
|
|
|
|
|
- p.view_method = 'independent';
|
|
|
|
|
- p.style_mode = 'small';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (component_list) this.component_list = component_list;
|
|
|
|
|
+ this.component_list.forEach((x) => {
|
|
|
|
|
+ if (x.component_type === 'audio') {
|
|
|
|
|
+ let _c = JSON.parse(x.content);
|
|
|
|
|
+ let p = _c.property || {};
|
|
|
|
|
+ if (!p.file_name_display_mode) p.file_name_display_mode = 'true';
|
|
|
|
|
+ if (p.view_method === 'independent' && !p.style_mode) {
|
|
|
|
|
+ p.style_mode = 'middle';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!p.style_mode) p.style_mode = 'big';
|
|
|
|
|
+ if (p.view_method === 'icon') {
|
|
|
|
|
+ p.file_name_display_mode = 'false';
|
|
|
|
|
+ p.view_method = 'independent';
|
|
|
|
|
+ p.style_mode = 'small';
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- x.content = JSON.stringify(_c);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ x.content = JSON.stringify(_c);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
- if (content_group_row_list) this.content_group_row_list = JSON.parse(content_group_row_list) || [];
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (content_group_row_list) this.content_group_row_list = JSON.parse(content_group_row_list) || [];
|
|
|
|
|
+ if (title_list) this.title_list = title_list || [];
|
|
|
|
|
+ },
|
|
|
|
|
+ );
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getLangList() {
|
|
getLangList() {
|