From 56b0d4ad256aa08c5691b3d6480507f788d057b8 Mon Sep 17 00:00:00 2001
From: Flex <q1406482700@163.com>
Date: 星期六, 21 六月 2025 17:32:38 +0800
Subject: [PATCH] 补充提交

---
 easegen-front/src/views/chooseTemplate/index.vue |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue
index 137efed..2b51fc2 100644
--- a/easegen-front/src/views/chooseTemplate/index.vue
+++ b/easegen-front/src/views/chooseTemplate/index.vue
@@ -113,6 +113,7 @@
                       v-if="
                         element.digitalHuman?.show &&
                         element.digitalHuman?.host &&
+                        element.digitalHuman.host.fixVideoUrl &&
                         element.digitalHuman?.host.fixVideoUrl !== null &&
                         element.digitalHuman?.host.pictureUrl !== null &&
                         element.digitalHuman?.host.videoUrl !== null
@@ -238,6 +239,7 @@
                   <Delete />
                 </el-icon>
               </Vue3DraggableResizable>
+
               <Vue3DraggableResizable
                 :key="selectPPT.id"
                 v-if="
@@ -276,6 +278,7 @@
                   <Delete />
                 </el-icon>
               </Vue3DraggableResizable>
+
               <Vue3DraggableResizable
                 :key="selectPPT.id"
                 v-if="
@@ -319,8 +322,8 @@
               <Vue3DraggableResizable
                 v-if="
                   selectPPT.digitalHuman.show == true &&
-                  selectPPT.digitalHuman?.host &&
-                  selectPPT.digitalHuman.host !== null &&
+                  selectPPT.digitalHuman.host &&
+                  selectPPT.digitalHuman.host.fixVideoUrl &&
                   selectPPT.digitalHuman?.host.fixVideoUrl !== null &&
                   selectPPT.digitalHuman?.host.pictureUrl !== null &&
                   selectPPT.digitalHuman?.host.videoUrl !== null
@@ -366,8 +369,8 @@
               <Vue3DraggableResizable
                 v-if="
                   selectPPT.digitalHuman.show == false &&
-                  selectPPT.digitalHuman?.host &&
-                  selectPPT.digitalHuman.host !== null &&
+                  selectPPT.digitalHuman.host &&
+                  selectPPT.digitalHuman.host.fixVideoUrl &&
                   selectPPT.digitalHuman?.host.fixVideoUrl !== null &&
                   selectPPT.digitalHuman?.host.pictureUrl !== null &&
                   selectPPT.digitalHuman?.host.videoUrl !== null
@@ -913,6 +916,7 @@
     initHumanPositon(host, page.digitalHuman)
   })
   selectPPT.value.digitalHuman.host = host
+  console.log( "PPTArr.value", PPTArr.value )
 }
 const saveEdit = () => {
   isEditing.value = false
@@ -1313,7 +1317,6 @@
 })
 // 纭畾鎸夐挳鐐瑰嚮澶勭悊鍑芥暟
 const submitForm = () => {
-  console.log(selectLanguage.value)
   if (selectLanguage.value.value === 'all_Language') {
     // message.warning('璇峰皢璇鎸夐挳鐢卞叏閮ㄨ绉嶄慨鏀逛负鎮ㄩ渶瑕佺敓鎴愮殑澹伴煶鐨勬枃鏈殑璇绫诲瀷')
     message.warning('璇峰厛閫夋嫨璇涓庡0闊崇被鍨�')
@@ -1655,6 +1658,7 @@
           }
 
           let ppturl = item.pictureUrl
+          console.log( "ppturl", ppturl )
           if (selectTemplate.value.showBackground) {
             item.pictureUrl = selectTemplate.value.bgImage
           } else {
@@ -1746,6 +1750,7 @@
   })
     .then(() => {
       PPTArr.value = PPTArr.value.filter((child) => child.id !== item.id)
+      
       //宸茬粡杩涜杩囧垹闄ゆ搷浣�
       DeleteD.value = true
     })
@@ -1771,6 +1776,7 @@
     message.warning('璇峰厛閫夋嫨瑕佸垹闄ょ殑ppt')
   } else {
     PPTArr.value = PPTArr.value.filter((child) => child.isChecked !== true)
+    
   }
 }
 
@@ -1847,7 +1853,6 @@
   AllHumanList.value = [...AllHumanList.value, ...data.list]
   if (curQuery.type === '1') {
     let id = route.query.id?route.query.id:sessionStorage.getItem("courseInfo")
-    console.log(id)
     if (id !== "" ) {
       await getCourseDetail(id)
     } else {
@@ -1963,6 +1968,7 @@
 const IsSaved = ref(false)
 
 const saveSubmit = async (type) => {
+  console.log( "PPTArr.value", PPTArr.value )
 
   console.log('鏄惁鍒犻櫎', DeleteD.value)
 
@@ -2413,7 +2419,6 @@
 }
 
 const goBack = () => {
-  // if () {
   if ( PPTArr.value.length == 0 || !IsSaved.value) {
     pptTemplateApi.coursesDelete(courseInfo.value.id).then((res) => {
       router.go(-1)
@@ -2483,6 +2488,11 @@
   const res = await pptTemplateApi.coursesDetail(id)
   if (res) {
     courseInfo.value = res
+    if( courseInfo.value.height === 0 && courseInfo.value.name === "鏈懡鍚嶈崏绋�" && courseInfo.value.width === 0 && !route.query.id && sessionStorage.getItem("courseInfo")!=="" ){
+      courseInfo.value.height = 1920
+      courseInfo.value.width = 1080
+    }
+
     if (res.scenes && res.scenes.length > 0) {
       res.scenes.forEach((item) => {
         item.isActive = false
@@ -3165,8 +3175,10 @@
           justify-content: space-around;
           align-items: center;
           position: relative;
+          padding: 5px 0;
+          box-sizing: border-box;
           > .ImgBox {
-            width: 34%;
+            width: 30%;
             margin: 0 auto;
             border-radius: 50%;
             overflow: hidden;

--
Gitblit v1.9.3