Flex
2025-06-12 b00c9d83f57f24178bf63a257a221face060b936
easegen-front/src/views/chooseTemplate/index.vue
@@ -1808,6 +1808,11 @@
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) {
@@ -1986,8 +1991,7 @@
    try {
      if (
        ChangeSoundTypeList.value?.value === undefined ||
        selectLanguage.value?.value === undefined ||
        selectLanguage.value?.value === 'all_Language'
        selectLanguage.value?.value === undefined
      ) {
        message.error('请先选择语种与声音类型')
        return
@@ -2049,9 +2053,19 @@
  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: '画中画',
@@ -2071,23 +2085,6 @@
          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
      }
    })
  })
}
@@ -2387,7 +2384,6 @@
    selectTemplate.value = cloneDeep(templates.value[0])
  }
}
onMounted(async () => {
  let data = await TemplateApi.getTemplatePage(queryParams1)
  TEMPLATE_PRESETS.value = data.list.map((item) => ({