From d74b2d32300a3b3a2f8caa057860c81a56a373b4 Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Sun, 28 Apr 2024 09:22:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=AE=8C=E7=9A=84=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/content/Content.vue | 5 +++++ src/views/task/modal/ImgDetailModal.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index ac9484c..005e620 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -282,6 +282,8 @@ function singleRejectHandler() { } function doAudit(param: any) { + const modal = unref(imgdetailref)! as any + audit(param).then((res) => { const { code } = res if (code === 'OK') { @@ -289,6 +291,7 @@ function doAudit(param: any) { setBatch(false) reloadList(param, '通过') batchModalRef.value.reload() + modal.closeModal() } }) } @@ -494,6 +497,8 @@ async function getDetail() { function notPassSuccess(param) { batchModalRef.value.reload() reloadList(param, '不通过') + const modal = unref(imgdetailref)! as any + modal.closeModal() overTask.value = null } diff --git a/src/views/task/modal/ImgDetailModal.vue b/src/views/task/modal/ImgDetailModal.vue index 6302e78..aa079cc 100644 --- a/src/views/task/modal/ImgDetailModal.vue +++ b/src/views/task/modal/ImgDetailModal.vue @@ -89,9 +89,12 @@ show.value=false } function passfun(e= taskDetailInfo.value ){ emit('passfun', e); + + // closeModal() } function nopassfun(e= taskDetailInfo.value){ emit('nopassfun', e); + // closeModal() } useKeydown('c', () => { @@ -99,9 +102,11 @@ useKeydown('c', () => { }) useKeydown('p p', () => { passfun() + }) useKeydown('x x', () => { nopassfun() + }) onMounted(async () => {