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" :key="index"
:item="item" :item="item"
:index="index" :index="index"
@on-delete="deleteSuccess"
> >
</file-list-item> </file-list-item>
</el-checkbox-group> </el-checkbox-group>
@ -107,6 +108,9 @@ export default {
} }
}, },
methods: { methods: {
deleteSuccess(item) {
this.asyncAllFile() //
},
auditionClick(requestData) { auditionClick(requestData) {
this.$refs.audioRef.startLoading = true this.$refs.audioRef.startLoading = true
aitts(requestData) aitts(requestData)
@ -137,7 +141,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.uploadTime+'音频', fileShowName: this.filedata.uploadTime+'音频.' + this.filedata.fileSuffix,
fileFlag: '素材', fileFlag: '素材',
fileId: this.filedata.id fileId: this.filedata.id
} }
@ -159,7 +163,7 @@ export default {
console.log(err) console.log(err)
this.$refs.audioRef.saveLoading = false this.$refs.audioRef.saveLoading = false
}) })
}, },
asyncAllFile() { asyncAllFile() {
this.isLoading = true this.isLoading = true
@ -202,20 +206,6 @@ export default {
// row list // row list
this.rows = [row] this.rows = [row]
this.setDialog = true 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() { mounted() {
@ -247,4 +237,4 @@ export default {
display: flex; display: flex;
flex: 1; flex: 1;
} }
</style> </style>

View File

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