| | |
| | | return doc.body.textContent || '' |
| | | } |
| | | |
| | | // ppt文本替换 |
| | | function pptRemarkReplaceText() { |
| | | let HaveError = false |
| | | |
| | | for (let index = 0; index < PPTArr.value.length; index++) { |
| | | const item = PPTArr.value[index]; |
| | | if (item.pptRemark && item.pptRemark.length !== 0 ) { |
| | | item.pptRemark = item.pptRemark.replaceAll("、", "。").replaceAll(".", ",") |
| | | }else{ |
| | | message.error(`第 ${index + 1} 个场景缺少ppt备注`) |
| | | HaveError = true |
| | | break |
| | | } |
| | | } |
| | | return HaveError |
| | | } |
| | | |
| | | |
| | | // 是否进行过保存 |
| | | const IsSaved = ref(false) |
| | |
| | | } |
| | | |
| | | let thumbnail = '' |
| | | |
| | | const HaveError = pptRemarkReplaceText() |
| | | if( HaveError ){ |
| | | return |
| | | } |
| | | PPTArr.value.forEach((item, index) => { |
| | | try { |
| | | pageInfo.scenes.push(item.businessId) |
| | |
| | | } |
| | | } else { |
| | | try { |
| | | console.log( "sL", selectLanguage ) |
| | | if ( |
| | | ChangeSoundTypeList.value?.value === undefined || |
| | | selectLanguage.value?.value === undefined |
| | | ChangeSoundTypeList.value.value === undefined || |
| | | selectLanguage.value?.value === undefined|| |
| | | selectLanguage.value?.value === "all_Language" |
| | | ) { |
| | | message.error('请先选择语种与声音类型') |
| | | return |