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