zxl #215

Merged
zhangxuelin merged 2 commits from zxl into main 2025-01-09 16:55:34 +08:00
1 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<div> <div>
<div style="height: auto; display: flex"> <div style="height: auto; display: flex">
<div style="flex: 1"> <div style="flex: 1">
<div> <div class="audio-container">
<aiAudio <aiAudio
@saveClick="saveClick" @saveClick="saveClick"
ref="audioRef" ref="audioRef"
@ -78,7 +78,6 @@ import FileListItem from '@/views/prepare/container/file-list-item.vue'
import { parseCataByNode, creatPPT, asyncLocalFile, removeLocalFiles } from '@/utils/talkFile' import { parseCataByNode, creatPPT, asyncLocalFile, removeLocalFiles } from '@/utils/talkFile'
import { uploadPicture } from '@/api/aiGeneratedImage/index.js' import { uploadPicture } from '@/api/aiGeneratedImage/index.js'
import { aitts, addFileToSC } from '@/api/file/index.js' import { aitts, addFileToSC } from '@/api/file/index.js'
import CryptoJS from 'crypto-js'
export default { export default {
components: { components: {
FileListItem FileListItem
@ -127,7 +126,7 @@ export default {
}) })
}, },
saveClick(requestData) { saveClick(requestData) {
this.$refs.audioRef.saveLoading = false this.$refs.audioRef.saveLoading = true
aitts(requestData) aitts(requestData)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -138,7 +137,7 @@ export default {
levelSecondId: this.uploadData.levelSecondId, levelSecondId: this.uploadData.levelSecondId,
fileSource: this.uploadData.fileSource, fileSource: this.uploadData.fileSource,
fileRoot: this.uploadData.fileRoot, fileRoot: this.uploadData.fileRoot,
fileShowName: this.filedata.fileNewName, fileShowName: this.filedata.uploadTime+'音频',
fileFlag: '素材', fileFlag: '素材',
fileId: this.filedata.id fileId: this.filedata.id
} }
@ -241,4 +240,11 @@ export default {
overflow-y: auto; overflow-y: auto;
height: 74vh; height: 74vh;
} }
:deep(.audio-container .content-main){
height: 85vh !important ;
}
:deep(.audio-container .content-main div:nth-of-type(1)){
display: flex;
flex: 1;
}
</style> </style>