BUG修复

This commit is contained in:
朱浩 2025-01-10 10:35:19 +08:00
parent 4650c47f70
commit 336fbb0680
2 changed files with 8 additions and 17 deletions

View File

@ -60,6 +60,7 @@
:key="index"
:item="item"
:index="index"
@on-delete="deleteSuccess"
>
</file-list-item>
</el-checkbox-group>
@ -107,6 +108,9 @@ export default {
}
},
methods: {
deleteSuccess(item) {
this.asyncAllFile() //
},
auditionClick(requestData) {
this.$refs.audioRef.startLoading = true
aitts(requestData)
@ -137,7 +141,7 @@ export default {
levelSecondId: this.uploadData.levelSecondId,
fileSource: this.uploadData.fileSource,
fileRoot: this.uploadData.fileRoot,
fileShowName: this.filedata.uploadTime+'音频',
fileShowName: this.filedata.uploadTime+'音频.' + this.filedata.fileSuffix,
fileFlag: '素材',
fileId: this.filedata.id
}
@ -202,20 +206,6 @@ export default {
// row list
this.rows = [row]
this.setDialog = true
},
//
delhomework(item) {
this.isLoading = true
delClasswork(item.id)
.then(async (res) => {
ElMessage.success('操作成功')
this.isLoading = false
await this.asyncAllFile()
this.initHomeWork()
})
.catch(() => {
this.isLoading = false
})
}
},
mounted() {

View File

@ -26,6 +26,7 @@ const getFileTypeIcon = () => {
doc: 'icon-word',
docx: 'icon-word',
mp4: 'icon-video',
wav: 'icon-mp',
mov: 'icon-mov',
avi: 'icon-avi',
jpeg: 'icon-jpeg',