From f53412acbfb27e640ce59014fd972ad49cbbed99 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 7 May 2025 13:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E3=80=81=E7=B2=98=E8=B4=B4?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=96=B9=E5=BC=8F=E4=B8=8D=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/auditDocument/index.vue | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/trials/trials-workbench/components/auditDocument/index.vue b/src/views/trials/trials-workbench/components/auditDocument/index.vue index 7a5805f9..54b16e28 100644 --- a/src/views/trials/trials-workbench/components/auditDocument/index.vue +++ b/src/views/trials/trials-workbench/components/auditDocument/index.vue @@ -1111,19 +1111,25 @@ export default { e.preventDefault(); } if (e.ctrlKey && e.key === 'c') { - e.preventDefault(); - this.type = 'copy' - this.copy() + // e.preventDefault(); + if (this.checkList.length > 0 && !this.renameId) { + this.type = 'copy' + this.copy() + } + } if (e.ctrlKey && e.key === 'v') { - e.preventDefault(); + // e.preventDefault(); this.type = 'stickup' this.stickup() } if (e.ctrlKey && e.key === 'x') { - e.preventDefault(); - this.type = 'shear' - this.shear() + // e.preventDefault(); + if (this.checkList.length > 0 && !this.renameId) { + this.type = 'shear' + this.shear() + } + } }, // 键盘事件(松开) @@ -1138,8 +1144,8 @@ export default { mounted() { document.addEventListener('keydown', this.keydown); document.addEventListener('keyup', this.keyup); - let table = document.getElementById("auditDocumentTable") - table.addEventListener('click', this.docClick); + // let table = document.getElementById("auditDocumentTable") + document.addEventListener('click', this.docClick); this.getList() this.getBreadcrumbData() },