feat:主图加入到可疑文件中

pull/140/head
lihui_ocr 1 year ago
parent 124ba1910c
commit b4ef13b319

@ -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"
/>
<SvgIcon
style="cursor: pointer; margin-left: 32px"
style="cursor: pointer; margin-left: 32px"
name="t9"
size="74.95"
@click.stop="() => {}"
@click.stop="addSuspicious"
/>
</div>
<div class="check">

Loading…
Cancel
Save