Flex
2 天以前 56b0d4ad256aa08c5691b3d6480507f788d057b8
补充提交
已修改1个文件
28 ■■■■ 文件已修改
easegen-front/src/views/chooseTemplate/index.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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('请先选择语种与声音类型')
@@ -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;