Merge branch 'main' of http://27.128.240.72:3000/zhuhao/AIx_Smarttalk_WS into zxl
This commit is contained in:
commit
de0a167cf5
|
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue