BUG修复
This commit is contained in:
parent
4650c47f70
commit
336fbb0680
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue