diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index 050a734..fc77327 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -124,13 +124,17 @@ 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; - } + 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; + if (validate([item]) == null && batch.value === false) + overTask.value = item; // 执行想要的操作 approvalHandler(); @@ -158,7 +162,7 @@ function handleKeydown(event) { // 执行想要的操作 const modal = unref(notPassModalRef)! as any; - modal.showModal([taskDetailInfo.value]); + modal.showModal([taskDetailInfo.value]); // 重置上次按键时间 lastKeyPressTime = 0; @@ -307,6 +311,7 @@ function backHandler() { } async function handleDragEnd(event, item) { + console.log(event, item); // 可以在这里添加拖拽结束后的逻辑 const flag = taskStore.getInFile; if (flag) { @@ -322,7 +327,25 @@ async function handleDragEnd(event, item) { taskStore.setInFile(false); } } +async function addSuspicious() { + console.log(taskDetailInfo.value.ocrPicture) + if (taskDetailInfo.value.ocrPicture.pictureid) { + const res = await dubiousfileyd({ + pictureid: taskDetailInfo.value.ocrPicture.id, + }); + console.log(res) + if (res.code === "OK") { + message.success("加入成功"); + setBatch(false); + getTableData(); + getImgList(); + } else { + message.error(res.message); + } + taskStore.setInFile(false); + +}} async function getTableData() { const useInfo = userStore.getUserInfo; const listData = []; @@ -616,10 +639,10 @@ function overTaskHandelr(item: any) { @click.stop="singleRejectHandler" />