| | |
| | | }" |
| | | /> |
| | | </div> |
| | | <el-empty v-if="hostList.length==0" description="暂无数据" /> |
| | | <Pagination |
| | | small="true" |
| | | :total="total" |
| | |
| | | class="template-item" |
| | | v-for="(template, index) in templates" |
| | | :key="index" |
| | | :style="{ |
| | | width: '90%', |
| | | maxWidth: '90%', |
| | | }" |
| | | @click="handleTemplateSelection(template)" |
| | | > |
| | | <div class="list-index" :style="template.isActive ? 'background: #409eff' : ''"> |
| | |
| | | </div> |
| | | <el-image class="background" :src="template.previewImage" fit="contain" /> |
| | | </div> |
| | | <el-empty v-if="templates.length==0" description="暂无数据" /> |
| | | </div> |
| | | <div class="apply-all"> |
| | | <el-checkbox v-model="applyAllTemplate" :label="t('courseCenter.uploadAudio')" /> |
| | | </div> |
| | | <!-- <div class="apply-all">--> |
| | | <!-- <el-checkbox v-model="applyAllTemplate" :label="t('courseCenter.uploadAudio')" />--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <!-- 背景设置 --> |
| | | <div class="template-box template-right" v-if="showHeadImageTool"> |
| | |
| | | activeUrl: userActive, |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: t('courseCenter.background'), |
| | | url: bg, |
| | | activeUrl: bgActive, |
| | | isActive: false |
| | | }, |
| | | { |
| | | name: t('courseCenter.pictureInPicture'), |
| | | url: innerPicture, |
| | | activeUrl: innerPictureActive, |
| | | isActive: false |
| | | } |
| | | // { |
| | | // name: t('courseCenter.background'), |
| | | // url: bg, |
| | | // activeUrl: bgActive, |
| | | // isActive: false |
| | | // }, |
| | | // { |
| | | // name: t('courseCenter.pictureInPicture'), |
| | | // url: innerPicture, |
| | | // activeUrl: innerPictureActive, |
| | | // isActive: false |
| | | // } |
| | | ]) |
| | | |
| | | const showHeadImageTool = ref(false) |
| | |
| | | queryParams.posture = tabs3ActiveNum.value |
| | | queryParams.status = 0 |
| | | let data = await pptTemplateApi.pageList(queryParams) |
| | | if (data.list.length == 0) { |
| | | queryParams.type = tabs1ActiveNum.value == '0' ? '1' : '0' |
| | | tabs1ActiveNum.value = queryParams.type |
| | | data = await pptTemplateApi.pageList(queryParams) |
| | | if (data.list.length == 0) { |
| | | message.error('没有有效的数字人,请联系管理员') |
| | | return |
| | | } |
| | | } |
| | | |
| | | data.list.forEach((item) => { |
| | | item.isActive = false |
| | | }) |
| | |
| | | z-index: 1; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: #f0f1fa; |
| | | //background-color: #f0f1fa; |
| | | } |
| | | |
| | | .template-tool { |