上传文件后通过ws异步更新列表

This commit is contained in:
jmal 2020-07-10 15:40:03 +08:00
parent 826ff64b72
commit f93d3c944d

View File

@ -693,7 +693,7 @@
},
mounted() {
Bus.$on('fileSuccess', () => {
this.getFileList()
//this.getFileList()
})
Bus.$on('clickMore', (rows) => {
this.$refs.fileListTable.tableSelectData = rows
@ -837,6 +837,14 @@
this.fileList.splice(index,1)
}
}
if('createFile' === url){
if(!this.path){
this.path = ''
}
if(this.path+'/' === fileDoc.$set.path){
this.getFileList()
}
}
},ws.headers);
console.log("订阅",'/user/queue/update')
},
@ -1512,9 +1520,10 @@
// 使列表可拖拽
this.rowDrop()
this.fileListScrollTop = 0
// 是列表会到顶部
// 使列表滑到顶部
if(!onLoad && !this.grid){
this.$refs.fileListTable.pagingScrollTopLeft()
console.log('使列表滑到顶部',this.$refs.fileListTable)
//this.$refs.fileListTable.pagingScrollTopLeft()
}
},
searchFile(key,onLoad) {
@ -1867,6 +1876,8 @@
if (row.suffix !== newExt) {
this.$confirm(`您确定要将扩展名“.${row.suffix}”更改为“.${newExt}”吗?`,'提示',{
type: 'warning',
showClose: false,
closeOnClickModal: false,
confirmButtonText: `保持.${row.suffix}`,
cancelButtonText: `使用.${newExt}`,
}).then(()=>{