diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index a58047c..74e27d9 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -353,46 +353,46 @@ const handleSubmit = async () => { } console.log('params', params) let res - // if (props.step === '20') { - // if (props.mode === 'resubmit') { - // res = await resubmitApply(params) - // } else { - // res = await projectApply(params) - // } - // } else if (props.step === '40') { - // if (props.mode === 'resubmit') { - // res = await resubmitCheck(params) - // } else { - // res = await projectCheck(params) - // } - // } else if (props.step === '50') { - // if (props.mode === 'resubmit') { - // res = await resubmitConclusion(params) - // } else { - // res = await projectConclusion(params) - // } - // } - // ElNotification({ - // title: '提示', - // message: res.msg, - // type: res.code === 1000 ? 'success' : 'error' - // }) - // if (res.code === 1000) { - // tagsViewStore.delVisitedViews(router.currentRoute.value.path) - // if (props.step === '20') { - // await router.push({ - // name: 'Initiation' - // }) - // } else if (props.step === '40') { - // await router.push({ - // name: 'Implementation' - // }) - // } else if (props.step === '50') { - // await router.push({ - // name: 'Filing' - // }) - // } - // } + if (props.step === '20') { + if (props.mode === 'resubmit') { + res = await resubmitApply(params) + } else { + res = await projectApply(params) + } + } else if (props.step === '40') { + if (props.mode === 'resubmit') { + res = await resubmitCheck(params) + } else { + res = await projectCheck(params) + } + } else if (props.step === '50') { + if (props.mode === 'resubmit') { + res = await resubmitConclusion(params) + } else { + res = await projectConclusion(params) + } + } + ElNotification({ + title: '提示', + message: res.msg, + type: res.code === 1000 ? 'success' : 'error' + }) + if (res.code === 1000) { + tagsViewStore.delVisitedViews(router.currentRoute.value.path) + if (props.step === '20') { + await router.push({ + name: 'Initiation' + }) + } else if (props.step === '40') { + await router.push({ + name: 'Implementation' + }) + } else if (props.step === '50') { + await router.push({ + name: 'Filing' + }) + } + } } const init = async () => { let id = projectId.value