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 () => {