| | |
| | | const saveSubmit = async (type) => { |
| | | console.log('是否删除', DeleteD.value) |
| | | |
| | | if ( selectLanguage.value?.value === undefined || selectLanguage.value.value === 'all_Language' ) { |
| | | message.error('请先选择语种与声音类型') |
| | | return |
| | | } |
| | | |
| | | if (ChangeSoundTypeList.value.value === 2) { |
| | | //此时为通用 |
| | | if (selectList.value === undefined || selectList.value === null) { |
| | |
| | | try { |
| | | if ( |
| | | ChangeSoundTypeList.value?.value === undefined || |
| | | selectLanguage.value?.value === undefined || |
| | | selectLanguage.value?.value === 'all_Language' |
| | | selectLanguage.value?.value === undefined |
| | | ) { |
| | | message.error('请先选择语种与声音类型') |
| | | return |
| | |
| | | |
| | | pptList.forEach((item) => { |
| | | const originalPPT = item.innerPicture?.src || item.pictureUrl |
| | | |
| | | if (template.showBackground) { |
| | | console.log(template) |
| | | item.pictureUrl = template.bgImage |
| | | item.digitalHuman.show = template.showDigitalHuman |
| | | item.digitalHuman.w = template.humanW |
| | | item.digitalHuman.h = template.humanH |
| | | item.digitalHuman.x = template.humanX |
| | | item.digitalHuman.y = template.humanY |
| | | PPTArr.value.forEach((otherItem) => { |
| | | if (otherItem.templateId === item.templateId) { |
| | | otherItem.width = item.width |
| | | otherItem.height = item.height |
| | | } |
| | | }) |
| | | if (template.showPpt) { |
| | | item.innerPicture = { |
| | | name: '画中画', |
| | |
| | | templateId: template.id |
| | | } |
| | | } |
| | | } else { |
| | | item.pictureUrl = originalPPT |
| | | item.innerPicture.src = '' |
| | | } |
| | | |
| | | item.digitalHuman.show = template.showDigitalHuman |
| | | item.digitalHuman.w = template.humanW |
| | | item.digitalHuman.h = template.humanH |
| | | item.digitalHuman.x = template.humanX |
| | | item.digitalHuman.y = template.humanY |
| | | |
| | | PPTArr.value.forEach((otherItem) => { |
| | | if (otherItem.templateId === item.templateId) { |
| | | otherItem.width = item.width |
| | | otherItem.height = item.height |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | |
| | |
| | | selectTemplate.value = cloneDeep(templates.value[0]) |
| | | } |
| | | } |
| | | |
| | | onMounted(async () => { |
| | | let data = await TemplateApi.getTemplatePage(queryParams1) |
| | | TEMPLATE_PRESETS.value = data.list.map((item) => ({ |