diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index c58ef34..3644816 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -148,12 +148,16 @@ function handleKeydown(event) { // 清除已经设置的定时器(如果有的话) clearTimeout(keyPressTimer); const item = taskDetailInfo.value; - if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) { + if ( + item?.userapprove?.statshis === 2 || + item?.userapprove?.statshis == 3 + ) { overTask.value = null; return; } - if (validate([item]) == null && batch.value === false) overTask.value = item; + if (validate([item]) == null && batch.value === false) + overTask.value = item; // 执行想要的操作 approvalHandler(); @@ -179,12 +183,16 @@ function handleKeydown(event) { // 清除已经设置的定时器(如果有的话) clearTimeout(keyPressTimer); const item = taskDetailInfo.value; - if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) { + if ( + item?.userapprove?.statshis === 2 || + item?.userapprove?.statshis == 3 + ) { overTask.value = null; return; } - if (validate([item]) == null && batch.value === false) overTask.value = item; + if (validate([item]) == null && batch.value === false) + overTask.value = item; // 执行想要的操作 const modal = unref(notPassModalRef)! as any; modal.showModal([taskDetailInfo.value]); @@ -257,7 +265,8 @@ function approvalHandler(items?: any) { processItems = [cloneItem]; } - if (items !== undefined && !(items instanceof PointerEvent)) processItems = items; + if (items !== undefined && !(items instanceof PointerEvent)) + processItems = items; const msg = validate(processItems); @@ -511,7 +520,9 @@ function notPassSuccess(param) { function reloadList(param, text) { // 修改左侧状态 const id = currentTaskId(); - const hasCurrentId = param.flowTaskInfoList.find((item) => item.formId === id); + const hasCurrentId = param.flowTaskInfoList.find( + (item) => item.formId === id + ); finalStore.setListKey(); if (hasCurrentId) emit("setAsideItemName", text); @@ -545,7 +556,8 @@ function overTaskHandelr(item: any) { return; } - if (validate([item]) == null && batchtwo.value === false) overTasktwo.value = item; + if (validate([item]) == null && batchtwo.value === false) + overTasktwo.value = item; } function closePassno() { console.log(notPassModalRef.value); @@ -579,7 +591,8 @@ function checkBottom() { const scrollTop = window.pageYOffset || document.documentElement.scrollTop; // 获取视口的内部高度 - const clientHeight = window.innerHeight || document.documentElement.clientHeight; + const clientHeight = + window.innerHeight || document.documentElement.clientHeight; // 获取整个文档的高度 const scrollHeight = document.documentElement.scrollHeight; @@ -648,8 +661,18 @@ function sortHandler(orderby: "similarityScore" | "createdate") {