fix : 前置流程多选

This commit is contained in:
2024-06-18 23:55:40 +08:00
parent 91f21409f6
commit aa15e9b8d0

View File

@@ -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