du
2025-06-03 d21f32900060768f621d2591d0420ec7b8e050bb
声音模型
已修改1个文件
15 ■■■■■ 文件已修改
easegen-front/src/views/chooseTemplate/index.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/index.vue
@@ -179,13 +179,13 @@
              <!-- 背景(必显示) -->
              <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"
@@ -227,7 +227,7 @@
              </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"
@@ -266,7 +266,7 @@
                </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"
@@ -833,6 +833,7 @@
const applyAllTemplate = ref(false)
const templateSelection=ref({})
const handleTemplateSelection = (template) => {
  console.log(template)
  dialogVisible1.value=true
  templateSelection.value=template
  console.log(templateSelection.value)
@@ -1040,6 +1041,7 @@
}
const chooseTemplate = (currTemplate) => {
  console.log(currTemplate)
  selectTemplate.value = cloneDeep(currTemplate)
  templates.value.forEach((item) => {
    item.isActive = false
@@ -1580,7 +1582,7 @@
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) => {
@@ -1674,7 +1676,8 @@
  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 {