From f93d3c944dd5706b1e734ae2ffd501a8667d9aaf Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 10 Jul 2020 15:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E9=80=9A=E8=BF=87ws=E5=BC=82=E6=AD=A5=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 45297be..f5c8708 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -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(()=>{