From 41c6c9ece6f490fe103d13c5caae5bedd649cc17 Mon Sep 17 00:00:00 2001 From: du <13220750630.163.com> Date: 星期四, 12 六月 2025 16:09:56 +0800 Subject: [PATCH] 模板管理修改 --- easegen-front/src/views/chooseTemplate/index.vue | 32 ++++++++++++-------------------- 1 files changed, 12 insertions(+), 20 deletions(-) diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue index 3bbfa6a..62578d4 100644 --- a/easegen-front/src/views/chooseTemplate/index.vue +++ b/easegen-front/src/views/chooseTemplate/index.vue @@ -498,7 +498,6 @@ </div> <!-- 妯℃澘璁剧疆 --> <div class="template-box template-right" v-if="showTemplateTool"> - <div class="tabs-2"> </div> <div class="template-list"> <div class="tabs-1"> <div @@ -2055,9 +2054,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: '鐢讳腑鐢�', @@ -2077,23 +2086,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 - } - }) }) } -- Gitblit v1.9.3