|
|
@ -124,7 +124,13 @@ function handleKeydown(event) {
|
|
|
|
if (now - lastKeyPressTime < doubleClickInterval) {
|
|
|
|
if (now - lastKeyPressTime < doubleClickInterval) {
|
|
|
|
// 清除已经设置的定时器(如果有的话)
|
|
|
|
// 清除已经设置的定时器(如果有的话)
|
|
|
|
clearTimeout(keyPressTimer);
|
|
|
|
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();
|
|
|
|
approvalHandler();
|
|
|
|
|
|
|
|
|
|
|
@ -141,7 +147,7 @@ function handleKeydown(event) {
|
|
|
|
lastKeyPressTime = 0;
|
|
|
|
lastKeyPressTime = 0;
|
|
|
|
}, doubleClickInterval);
|
|
|
|
}, doubleClickInterval);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (event.key === "X" || event.key === "X") {
|
|
|
|
} else if (event.key === "x" || event.key === "X") {
|
|
|
|
// 获取当前时间
|
|
|
|
// 获取当前时间
|
|
|
|
const now = Date.now();
|
|
|
|
const now = Date.now();
|
|
|
|
|
|
|
|
|
|
|
@ -151,7 +157,8 @@ function handleKeydown(event) {
|
|
|
|
clearTimeout(keyPressTimer);
|
|
|
|
clearTimeout(keyPressTimer);
|
|
|
|
|
|
|
|
|
|
|
|
// 执行想要的操作
|
|
|
|
// 执行想要的操作
|
|
|
|
singleRejectHandler();
|
|
|
|
const modal = unref(notPassModalRef)! as any;
|
|
|
|
|
|
|
|
modal.showModal([taskDetailInfo.value]);
|
|
|
|
|
|
|
|
|
|
|
|
// 重置上次按键时间
|
|
|
|
// 重置上次按键时间
|
|
|
|
lastKeyPressTime = 0;
|
|
|
|
lastKeyPressTime = 0;
|
|
|
|