| | |
| | | <!-- 画中画 --> |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.id" |
| | | v-if="selectPPT.innerPicture && selectPPT.innerPicture.src && ((selectPPT.innerPicture.marginLeft == 0 && selectPPT.innerPicture.top != 0) || (selectPPT.innerPicture.marginLeft != 0 && selectPPT.innerPicture.top == 0))" |
| | | v-if=" |
| | | selectPPT.innerPicture && |
| | | selectPPT.innerPicture.src && |
| | | ((selectPPT.innerPicture.marginLeft == 0 && selectPPT.innerPicture.top != 0) || |
| | | (selectPPT.innerPicture.marginLeft != 0 && selectPPT.innerPicture.top == 0)) |
| | | " |
| | | :parent="true" |
| | | :initW="selectPPT.innerPicture.width" |
| | | :initH="selectPPT.innerPicture.height" |
| | |
| | | </Vue3DraggableResizable> |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.id" |
| | | v-if="selectPPT.innerPicture && selectPPT.innerPicture.src && (selectPPT.innerPicture.marginLeft == 0 && selectPPT.innerPicture.top == 0)" |
| | | v-if=" |
| | | selectPPT.innerPicture && |
| | | selectPPT.innerPicture.src && |
| | | selectPPT.innerPicture.marginLeft == 0 && |
| | | selectPPT.innerPicture.top == 0 |
| | | " |
| | | :parent="true" |
| | | :initW="selectPPT.innerPicture.width" |
| | | :initH="selectPPT.innerPicture.height" |
| | |
| | | </Vue3DraggableResizable> |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.id" |
| | | v-if="selectPPT.innerPicture && selectPPT.innerPicture.marginLeft!=0 && selectPPT.innerPicture.top!=0 && selectPPT.innerPicture.src" |
| | | v-if=" |
| | | selectPPT.innerPicture && |
| | | selectPPT.innerPicture.marginLeft != 0 && |
| | | selectPPT.innerPicture.top != 0 && |
| | | selectPPT.innerPicture.src |
| | | " |
| | | :parent="true" |
| | | :initW="selectPPT.innerPicture.width" |
| | | :initH="selectPPT.innerPicture.height" |
| | |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="SoundModelArea" v-loading="soundLoading" v-show="ChangeSoundTypeList?.value === 2 " > |
| | | <div |
| | | class="SoundModelArea" |
| | | v-loading="soundLoading" |
| | | v-show="ChangeSoundTypeList?.value === 2" |
| | | > |
| | | <div class="SoundModelAreaBox" v-for="(value, key, index) in audioList" :key="index"> |
| | | <div class="SoundClassTit"> |
| | | <el-divider content-position="center"> {{ languageClass(key) }} </el-divider> |
| | |
| | | GetHumanList(query) |
| | | query.type = '1' |
| | | GetHumanList(query) |
| | | |
| | | if (route.query.id) { |
| | | await getCourseDetail(route.query.id) |
| | | } else { |
| | | coursesCreate() |
| | | } |
| | | |
| | | } |
| | | // 获取单类数字人形象 |
| | | const GetHumanList = async (query) => { |
| | | let data = await pptTemplateApi.pageList(query) |
| | | AllHumanList.value = [...AllHumanList.value, ...data.list] |
| | | |
| | | if (query.type === '1') { |
| | | if (route.query.id) { |
| | | await getCourseDetail(route.query.id) |
| | | } else { |
| | | coursesCreate() |
| | | } |
| | | } |
| | | } |
| | | |
| | | const choosePPt = (item) => { |
| | |
| | | entityId: 1, |
| | | templateId: template.id |
| | | } |
| | | |
| | | }) |
| | | console.log('pptList', selectPPT.value) |
| | | |
| | | } |
| | | |
| | | const replaceDialog = ref(null) |
| | |
| | | const currentAudio = ref() |
| | | |
| | | const createAudio = async () => { |
| | | |
| | | const text = editorRef.value.getText() |
| | | if (!text) { |
| | | message.warning('请输入需要试听文本的内容…') |
| | |
| | | } |
| | | } |
| | | // 对数字人组件强制刷新 |
| | | const InitDigHuman = ref(0); |
| | | const InitDigHuman = ref(0) |
| | | const getCourseDetail = async (id) => { |
| | | const res = await pptTemplateApi.coursesDetail(id) |
| | | if (res) { |
| | |
| | | ] |
| | | } |
| | | InitDigHuman.value = 1 |
| | | console.log( "selectPPT.value", selectPPT.value ) |
| | | console.log('selectPPT.value', selectPPT.value) |
| | | // 设置音频选择数据 |
| | | const firstScene = res.scenes[0] |
| | | if (firstScene.voice) { |