已修改2个文件
34 ■■■■ 文件已修改
easegen-front/src/components/Table/src/Table.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/index.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/components/Table/src/Table.vue
@@ -56,7 +56,7 @@
    // 注册
    onMounted(() => {
      const tableRef = unref(elTableRef)
      emit('register', tableRef?.$parent, elTableRef)
      emit('register', tableRef?.$parent, elTableRef.value)
    })
    const pageSizeRef = ref(props.pageSize)
easegen-front/src/views/chooseTemplate/index.vue
@@ -277,6 +277,7 @@
                  selectPPT.digitalHuman?.host.pictureUrl !== null &&
                  selectPPT.digitalHuman?.host.videoUrl !== null
                "
                :key="InitDigHuman"
                :parent="false"
                :lockAspectRatio="true"
                :minW="350"
@@ -323,6 +324,7 @@
                  selectPPT.digitalHuman?.host.pictureUrl !== null &&
                  selectPPT.digitalHuman?.host.videoUrl !== null
                "
                :key="InitDigHuman"
                :parent="false"
                :lockAspectRatio="true"
                :minW="350"
@@ -785,7 +787,8 @@
  Headset,
  Delete,
  VideoPlay,
  CopyDocument
  CopyDocument,
Select
} from '@element-plus/icons-vue'
import { generateUUID } from '@/utils'
import { useRoute, useRouter } from 'vue-router'
@@ -1777,7 +1780,7 @@
// 所有数字人形象
const AllHumanList = ref<any[]>([])
// 获取所有数字人形象
const GetAllHumanList = () => {
const GetAllHumanList = async () => {
  let query = {
    pageNo: 1,
    pageSize: 100,
@@ -1789,6 +1792,13 @@
  GetHumanList(query)
  query.type = '1'
  GetHumanList(query)
  if (route.query.id) {
    await getCourseDetail(route.query.id)
  } else {
    coursesCreate()
  }
}
// 获取单类数字人形象
const GetHumanList = async (query) => {
@@ -1801,7 +1811,6 @@
    child.isActive = child.id === item.id
  })
  selectPPT.value = item
  console.log('selectPPT.value', selectPPT.value)
}
// const chooseHost = (item) => {
@@ -2062,8 +2071,6 @@
        return
      }
    }
    try {
      const res = await pptTemplateApi.coursesSave(JSON.stringify(saveSubmitForm))
@@ -2413,10 +2420,10 @@
    data.y = -100 // 可以设置最小坐标为 -100
  }
}
// 对数字人组件强制刷新
const InitDigHuman = ref(0);
const getCourseDetail = async (id) => {
  const res = await pptTemplateApi.coursesDetail(id)
  console.log('res当前信息', res)
  if (res) {
    courseInfo.value = res
    if (res.scenes && res.scenes.length > 0) {
@@ -2479,7 +2486,8 @@
          }
        ]
      }
      InitDigHuman.value = 1
      console.log( "selectPPT.value", selectPPT.value )
      // 设置音频选择数据
      const firstScene = res.scenes[0]
      if (firstScene.voice) {
@@ -2524,14 +2532,8 @@
  selectTemplate.value = cloneDeep(templates.value[0])
  await getList()
  // 获取所有数字人信息并根据具体情况进行页面初始化
  GetAllHumanList()
  if (route.query.id) {
    await getCourseDetail(route.query.id)
  } else {
    coursesCreate()
  }
})
onUnmounted(() => {