import { displayList, serialNumberTypeList, serialNumberPositionList, arrangeTypeList, switchOption, isEnable, pinyinPositionList } from '@/views/book/courseware/data/common'; export { arrangeTypeList, switchOption, isEnable, pinyinPositionList }; // 显示 export const positionList = [ { value: 'top', label: '上', }, { value: 'bottom', label: '下', }, ]; export const wordShowList = [ { value: 'true', label: '是' }, { value: 'false', label: '否' }, ]; export const inforList = [ { value: 'true', label: '有' }, { value: 'false', label: '没有' }, ]; // 拼音位置 export const pinyinPositionLists = [ { value: 'front', label: '前面' }, { value: 'back', label: '后面' }, { value: 'top', label: '上面' }, { value: 'bottom', label: '下面' }, ]; // 读音生成方式 export const audioGenerationMethodList = [ { value: 'upload', label: '上传', }, { value: 'auto', label: '自动生成', }, { value: 'record', label: '录音', }, ]; // 多语言显示方式 export const multilingualList = [ { value: 'para', label: '句/段落' }, { value: 'all', label: '整篇' }, ] export function getArticleProperty() { return { serial_number: 1, sn_type: serialNumberTypeList[0].value, sn_position: serialNumberPositionList[3].value, sn_display_mode: displayList[0].value, mp3_position: positionList[0].value, is_enable_new_word: switchOption[0].value, is_enable_read: switchOption[0].value, is_enable_word: switchOption[0].value, view_pinyin: 'true', pinyin_position: pinyinPositionList[0].value, is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写 multilingual_position: multilingualList[1].value, }; } export function getArticleData() { return { type: 'article', title: '课文组件', property: getArticleProperty(), content: '', // 课文内容 mp3_list: [], // 音频列表 file_id_list: [], // 文件 id detail: [], // 分段分句分词详情 wordTime: [], // 字幕时间 new_word_list: { title_con: '', property: { audio_generation_method: audioGenerationMethodList[0].value, pinyin_position: pinyinPositionLists[0].value, auto_wrap: switchOption[0].value, // 自动换行 is_has_infor: inforList[0].value, }, 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 col_width: [ { value:100 // 生词 },{ value:110 // 拼音 },{ value:50 // 词性 },{ value:180 // 释义 },{ value:180 // 搭配 },{ value:200 // 例句 } ], // 列宽 multilingual: [], // 多语言 }, // 生词列表 other_word_list: { title_con: '', property: { audio_generation_method: audioGenerationMethodList[0].value, pinyin_position: pinyinPositionLists[0].value, auto_wrap: switchOption[0].value, // 自动换行 is_has_infor: inforList[0].value, }, 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 col_width: [ { value:125 // 生词 },{ value:125 // 拼音 },{ value:125 // 词性 },{ value:125 // 释义 },{ value:150 // 搭配 },{ value:300 // 例句 } ], // 列宽 multilingual: [], // 多语言 }, notes_list: { title_con: '', option: [], property:{}, multilingual: [], // 多语言 }, sentence_list_mp: [], // 句子+分词数组 pinyin_type:'pinyin', mind_map: { node_list: [ { name: '课文组件' } ], // 思维导图数据 }, multilingual: [], // 多语言 }; }