From a599bbd5b3b608af27bc943188af62298e75e3e4 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 17 Jul 2020 10:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=96=87=E4=BB=B6=E5=90=8E=EF=BC=8C=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 65c7cca..aafa00c 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2634,6 +2634,7 @@ }, // 移除选中项 removeSelectItme(){ + console.log(this.$refs.fileListTable.tableSelectData.length,this.$refs.fileListTable.tableSelectData) let removeFileIndexList = [] if(this.$refs.fileListTable.tableSelectData.length > 0){ this.$refs.fileListTable.tableSelectData.forEach(item => { @@ -2647,8 +2648,8 @@ this.$refs.fileListTable.doLayout() this.$refs.fileListTable.clearSelection() this.$refs.fileListTable.tableSelectData = [] - // 反序 - removeFileIndexList = removeFileIndexList.reverse() + // 倒序 + removeFileIndexList = removeFileIndexList.sort((a,b)=> b-a) const that = this setTimeout(function () { // 再执行移除