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

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

@ -125,12 +125,16 @@ function handleKeydown(event) {
// //
clearTimeout(keyPressTimer); clearTimeout(keyPressTimer);
const item = taskDetailInfo.value; 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; overTask.value = null;
return; return;
} }
if (validate([item]) == null && batch.value === false) overTask.value = item; if (validate([item]) == null && batch.value === false)
overTask.value = item;
// //
approvalHandler(); approvalHandler();
@ -307,6 +311,7 @@ function backHandler() {
} }
async function handleDragEnd(event, item) { async function handleDragEnd(event, item) {
console.log(event, item);
// //
const flag = taskStore.getInFile; const flag = taskStore.getInFile;
if (flag) { if (flag) {
@ -322,7 +327,25 @@ async function handleDragEnd(event, item) {
taskStore.setInFile(false); 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() { async function getTableData() {
const useInfo = userStore.getUserInfo; const useInfo = userStore.getUserInfo;
const listData = []; const listData = [];
@ -619,7 +642,7 @@ function overTaskHandelr(item: any) {
style="cursor: pointer; margin-left: 32px" style="cursor: pointer; margin-left: 32px"
name="t9" name="t9"
size="74.95" size="74.95"
@click.stop="() => {}" @click.stop="addSuspicious"
/> />
</div> </div>
<div class="check"> <div class="check">

Loading…
Cancel
Save