| | |
| | | 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 |
| | |
| | | <Delete /> |
| | | </el-icon> |
| | | </Vue3DraggableResizable> |
| | | |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.id" |
| | | v-if=" |
| | |
| | | <Delete /> |
| | | </el-icon> |
| | | </Vue3DraggableResizable> |
| | | |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.id" |
| | | v-if=" |
| | |
| | | <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 |
| | |
| | | <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 |
| | |
| | | initHumanPositon(host, page.digitalHuman) |
| | | }) |
| | | selectPPT.value.digitalHuman.host = host |
| | | console.log( "PPTArr.value", PPTArr.value ) |
| | | } |
| | | const saveEdit = () => { |
| | | isEditing.value = false |
| | |
| | | }) |
| | | // 确定按钮点击处理函数 |
| | | const submitForm = () => { |
| | | console.log(selectLanguage.value) |
| | | if (selectLanguage.value.value === 'all_Language') { |
| | | // message.warning('请将语种按钮由全部语种修改为您需要生成的声音的文本的语种类型') |
| | | message.warning('请先选择语种与声音类型') |
| | |
| | | } |
| | | |
| | | let ppturl = item.pictureUrl |
| | | console.log( "ppturl", ppturl ) |
| | | if (selectTemplate.value.showBackground) { |
| | | item.pictureUrl = selectTemplate.value.bgImage |
| | | } else { |
| | |
| | | }) |
| | | .then(() => { |
| | | PPTArr.value = PPTArr.value.filter((child) => child.id !== item.id) |
| | | |
| | | //已经进行过删除操作 |
| | | DeleteD.value = true |
| | | }) |
| | |
| | | message.warning('请先选择要删除的ppt') |
| | | } else { |
| | | PPTArr.value = PPTArr.value.filter((child) => child.isChecked !== true) |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | 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 { |
| | |
| | | const IsSaved = ref(false) |
| | | |
| | | const saveSubmit = async (type) => { |
| | | console.log( "PPTArr.value", PPTArr.value ) |
| | | |
| | | console.log('是否删除', DeleteD.value) |
| | | |
| | |
| | | } |
| | | |
| | | const goBack = () => { |
| | | // if () { |
| | | if ( PPTArr.value.length == 0 || !IsSaved.value) { |
| | | pptTemplateApi.coursesDelete(courseInfo.value.id).then((res) => { |
| | | router.go(-1) |
| | |
| | | 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 |
| | |
| | | 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; |