import { displayList, serialNumberTypeList, serialNumberPositionList, arrangeTypeList, switchOption, isEnable, } from '@/views/book/courseware/data/common'; export { arrangeTypeList, switchOption, isEnable }; export const wordShowList = [ { value: 'true', label: '是' }, { value: 'false', label: '否' }, ]; export const inforList = [ { value: 'true', label: '有' }, { value: 'false', label: '没有' }, ]; // 拼音位置 export const pinyinPositionList = [ { 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 function getOption() { return { number: '', new_word: '', cixing: '', // 词性 definition_list: '', // 释义 pinyin: '', mp3_list: '', collocation: '', // 搭配 liju_list: '', // 例句 file_list: [''], // 图片 header_con: '', // 页眉 label: '', // 标签 hz_info: [], bg: 0, ed: 0, }; } export function getNewWordProperty() { return { serial_number: 1, sn_type: serialNumberTypeList[0].value, sn_position: serialNumberPositionList[3].value, sn_display_mode: displayList[0].value, audio_generation_method: audioGenerationMethodList[0].value, pinyin_position: pinyinPositionList[0].value, auto_wrap: switchOption[0].value, // 自动换行 is_has_infor: inforList[0].value, }; } export function getNewWordData() { return { type: 'new_word', title: '生词组件', source_courseware_id_list: [], source_courseware_id: '', // 生词关联课件id,即跨页高亮生词 property: getNewWordProperty(), title_con: '', new_word_list: [getOption()], 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, // 例句 }, ], // 列宽 mind_map: { node_list: [{ name: '生词组件' }], // 思维导图数据 }, answer: { answer_list: [], }, multilingual: [], // 多语言 }; }