|
|
@@ -718,6 +718,105 @@ export default {
|
|
|
});
|
|
|
this.newWordList = JSON.parse(JSON.stringify(NewWordList));
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 获取无文本内容的数据结构,用于保存为个人模板时的样式模板
|
|
|
+ */
|
|
|
+ getNoTextContentData() {
|
|
|
+ let noTextContentData = JSON.parse(JSON.stringify(this.data));
|
|
|
+ const resetFieldMap = {
|
|
|
+ content: '', // 课文内容
|
|
|
+ mp3_list: [], // 音频列表
|
|
|
+ file_id_list: [], // 文件 id
|
|
|
+ detail: [], // 分段分句分词详情
|
|
|
+ wordTime: [], // 字幕时间
|
|
|
+ new_word_list: {
|
|
|
+ title_con: '',
|
|
|
+ property: {
|
|
|
+ audio_generation_method: 'upload',
|
|
|
+ pinyin_position: 'front',
|
|
|
+ auto_wrap: 'true', // 自动换行
|
|
|
+ is_has_infor: 'true',
|
|
|
+ voice_type: '', // 音色
|
|
|
+ emotion: '', // 风格,情感
|
|
|
+ speed_ratio: '', // 语速
|
|
|
+ is_show: 'false',
|
|
|
+ },
|
|
|
+ new_word_list: [],
|
|
|
+ lrc_arr: [], // lrc 文件解析后的数据
|
|
|
+ // lrc 文件数据
|
|
|
+ lrc_data: {
|
|
|
+ name: '',
|
|
|
+ url: '',
|
|
|
+ id: '',
|
|
|
+ file_id: '',
|
|
|
+ },
|
|
|
+ // 音频文件数据
|
|
|
+ audio_data: {
|
|
|
+ name: '',
|
|
|
+ media_duration: 0,
|
|
|
+ temporary_url: '',
|
|
|
+ url: '',
|
|
|
+ file_id: '',
|
|
|
+ },
|
|
|
+ wordTime: [], // 字幕时间节点
|
|
|
+ taskId: '',
|
|
|
+ file_id_list: [], // 文件 id
|
|
|
+ multilingual: [], // 多语言
|
|
|
+ }, // 生词列表
|
|
|
+ other_word_list: {
|
|
|
+ title_con: '',
|
|
|
+ property: {
|
|
|
+ audio_generation_method: 'upload',
|
|
|
+ pinyin_position: 'front',
|
|
|
+ auto_wrap: 'true', // 自动换行
|
|
|
+ is_has_infor: 'true',
|
|
|
+ voice_type: '', // 音色
|
|
|
+ emotion: '', // 风格,情感
|
|
|
+ speed_ratio: '', // 语速
|
|
|
+ is_show: 'false',
|
|
|
+ },
|
|
|
+ new_word_list: [],
|
|
|
+ lrc_arr: [], // lrc 文件解析后的数据
|
|
|
+ // lrc 文件数据
|
|
|
+ lrc_data: {
|
|
|
+ name: '',
|
|
|
+ url: '',
|
|
|
+ id: '',
|
|
|
+ file_id: '',
|
|
|
+ },
|
|
|
+ // 音频文件数据
|
|
|
+ audio_data: {
|
|
|
+ name: '',
|
|
|
+ media_duration: 0,
|
|
|
+ temporary_url: '',
|
|
|
+ url: '',
|
|
|
+ file_id: '',
|
|
|
+ },
|
|
|
+ wordTime: [], // 字幕时间节点
|
|
|
+ taskId: '',
|
|
|
+ file_id_list: [], // 文件 id
|
|
|
+ multilingual: [], // 多语言
|
|
|
+ },
|
|
|
+ notes_list: {
|
|
|
+ title_con: '',
|
|
|
+ option: [],
|
|
|
+ multilingual: [], // 多语言
|
|
|
+ file_id_list: [], // 文件 id
|
|
|
+ property: {
|
|
|
+ view_pinyin: 'false', // 显示拼音
|
|
|
+ pinyin_position: 'back', // top bottom
|
|
|
+ is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写
|
|
|
+ is_show: 'false',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ sentence_list_mp: [], // 句子+分词数组
|
|
|
+ pinyin_type: 'pinyin',
|
|
|
+ };
|
|
|
+
|
|
|
+ Object.assign(noTextContentData, resetFieldMap);
|
|
|
+
|
|
|
+ return noTextContentData;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|