From f984c8888d7080033d426593181ccfcdb3bc81b6 Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Wed, 10 Apr 2024 11:09:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BF=AB=E6=8D=B7=E9=94=AE=20pp=20xx?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/content/Content.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index 84b9cec..050a734 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -124,7 +124,13 @@ function handleKeydown(event) { if (now - lastKeyPressTime < doubleClickInterval) { // 清除已经设置的定时器(如果有的话) clearTimeout(keyPressTimer); + const item = taskDetailInfo.value; + if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) { + overTask.value = null; + return; + } + if (validate([item]) == null && batch.value === false) overTask.value = item; // 执行想要的操作 approvalHandler(); @@ -141,7 +147,7 @@ function handleKeydown(event) { lastKeyPressTime = 0; }, doubleClickInterval); } - } else if (event.key === "X" || event.key === "X") { + } else if (event.key === "x" || event.key === "X") { // 获取当前时间 const now = Date.now(); @@ -151,7 +157,8 @@ function handleKeydown(event) { clearTimeout(keyPressTimer); // 执行想要的操作 - singleRejectHandler(); + const modal = unref(notPassModalRef)! as any; + modal.showModal([taskDetailInfo.value]); // 重置上次按键时间 lastKeyPressTime = 0;