diff --git a/src/renderer/src/components/ai-voice/index.vue b/src/renderer/src/components/ai-voice/index.vue index 617bd81..0e11a78 100644 --- a/src/renderer/src/components/ai-voice/index.vue +++ b/src/renderer/src/components/ai-voice/index.vue @@ -60,6 +60,7 @@ :key="index" :item="item" :index="index" + @on-delete="deleteSuccess" > @@ -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 } @@ -159,7 +163,7 @@ export default { console.log(err) this.$refs.audioRef.saveLoading = false }) - + }, asyncAllFile() { this.isLoading = true @@ -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() { @@ -247,4 +237,4 @@ export default { display: flex; flex: 1; } - \ No newline at end of file + diff --git a/src/renderer/src/components/file-image/index.vue b/src/renderer/src/components/file-image/index.vue index 74a5341..3914946 100644 --- a/src/renderer/src/components/file-image/index.vue +++ b/src/renderer/src/components/file-image/index.vue @@ -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',