| | |
| | | |
| | | <!-- 背景(必显示) --> |
| | | <el-image |
| | | v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==0" |
| | | v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==false" |
| | | class="background1" |
| | | :src="selectPPT.pictureUrl" |
| | | style="z-index: 2" |
| | | /> |
| | | <el-image |
| | | v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==1" |
| | | v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==true" |
| | | class="background1" |
| | | :src="selectPPT.pictureUrl" |
| | | style="z-index: 1" |
| | |
| | | </Vue3DraggableResizable> |
| | | <!-- 数字人 --> |
| | | <Vue3DraggableResizable |
| | | v-if="selectPPT.digitalHuman.show==1 && selectPPT.digitalHuman?.host" |
| | | v-if="selectPPT.digitalHuman.show==true && selectPPT.digitalHuman?.host" |
| | | :parent="false" |
| | | :lockAspectRatio="true" |
| | | :minW="350" |
| | |
| | | </el-icon> |
| | | </Vue3DraggableResizable> |
| | | <Vue3DraggableResizable |
| | | v-if="selectPPT.digitalHuman.show==0 && selectPPT.digitalHuman?.host" |
| | | v-if="selectPPT.digitalHuman.show==false && selectPPT.digitalHuman?.host" |
| | | :parent="false" |
| | | :lockAspectRatio="true" |
| | | :minW="350" |
| | |
| | | const applyAllTemplate = ref(false) |
| | | const templateSelection=ref({}) |
| | | const handleTemplateSelection = (template) => { |
| | | console.log(template) |
| | | dialogVisible1.value=true |
| | | templateSelection.value=template |
| | | console.log(templateSelection.value) |
| | |
| | | } |
| | | |
| | | const chooseTemplate = (currTemplate) => { |
| | | console.log(currTemplate) |
| | | selectTemplate.value = cloneDeep(currTemplate) |
| | | templates.value.forEach((item) => { |
| | | item.isActive = false |
| | |
| | | |
| | | const applyTemplate = (ppt = null) => { |
| | | const template = selectTemplate.value |
| | | console.log('template', template) |
| | | console.log('template', selectTemplate.value) |
| | | const pptList = applyAllTemplate.value ? PPTArr.value : [selectPPT.value] |
| | | |
| | | pptList.forEach((item) => { |
| | |
| | | const params = { |
| | | text: truncatedText, |
| | | humanId: selectPPT.value.digitalHuman?.host?.id || null, |
| | | voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, |
| | | // voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, |
| | | voiceId: 'zh-CN', |
| | | } |
| | | |
| | | try { |