From 16036c6c1a71dc6b7f4d9106c1a3c519cd00e88d Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 28 Aug 2022 14:39:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8D=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=88=96=E7=A7=BB=E5=8A=A8=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=96=87=E4=BB=B6=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 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 5add1fc..67bff0c 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2792,13 +2792,7 @@ export default { } if (operating === 'move') { // 移除列表 - if (this.$refs.fileListTable.tableSelectData.length === 1) { - this.fileList.splice(this.$refs.fileListTable.tableSelectData[0].index, 1) - } else { - this.getFileList() - } - this.$refs.fileListTable.clearSelection()// 删除后清空之前选择的数据 - this.$refs.fileListTable.tableSelectData = [] + this.getFileList() } setTimeout(function () { copying.close() @@ -3029,8 +3023,13 @@ export default { for (let i = 0; i < removeFileIndexList.length; i++) { this.fileList.splice(removeFileIndexList[i], 1) } + this.fileList.map((item, index) => { + item.index = index + }) // 改变拖拽目标 this.rowDrop() + // 画矩形选取 + this.darwRectangle() }, 300) }, // 预览压缩文件