Merge pull request 'feat:添加详情审核完的关闭' (#274) from fix/change_task into test

Reviewed-on: #274
pull/275/head
赵辉 1 year ago
commit ed5cfa11af

@ -282,6 +282,8 @@ function singleRejectHandler() {
} }
function doAudit(param: any) { function doAudit(param: any) {
const modal = unref(imgdetailref)! as any
audit(param).then((res) => { audit(param).then((res) => {
const { code } = res const { code } = res
if (code === 'OK') { if (code === 'OK') {
@ -289,6 +291,7 @@ function doAudit(param: any) {
setBatch(false) setBatch(false)
reloadList(param, '通过') reloadList(param, '通过')
batchModalRef.value.reload() batchModalRef.value.reload()
modal.closeModal()
} }
}) })
} }
@ -494,6 +497,8 @@ async function getDetail() {
function notPassSuccess(param) { function notPassSuccess(param) {
batchModalRef.value.reload() batchModalRef.value.reload()
reloadList(param, '不通过') reloadList(param, '不通过')
const modal = unref(imgdetailref)! as any
modal.closeModal()
overTask.value = null overTask.value = null
} }

@ -89,9 +89,12 @@ show.value=false
} }
function passfun(e= taskDetailInfo.value ){ function passfun(e= taskDetailInfo.value ){
emit('passfun', e); emit('passfun', e);
// closeModal()
} }
function nopassfun(e= taskDetailInfo.value){ function nopassfun(e= taskDetailInfo.value){
emit('nopassfun', e); emit('nopassfun', e);
// closeModal()
} }
useKeydown('c', () => { useKeydown('c', () => {
@ -99,9 +102,11 @@ useKeydown('c', () => {
}) })
useKeydown('p p', () => { useKeydown('p p', () => {
passfun() passfun()
}) })
useKeydown('x x', () => { useKeydown('x x', () => {
nopassfun() nopassfun()
}) })
onMounted(async () => { onMounted(async () => {

Loading…
Cancel
Save