fix : 修复新增分摊复制/添加一行功能

This commit is contained in:
2024-06-25 16:21:40 +08:00
parent afa0a52898
commit 65b8af3e3e

View File

@@ -306,18 +306,18 @@ const handleSubmit = (instance) => {
deploymentId: processInstanceData.value.deploymentId,
}
console.log('params', params, formData.value.tableData)
// const {code, msg} = await addAllocation(params)
// ElNotification({
// title: '提示',
// message: msg,
// type: code === 1000 ? 'success' : 'error'
// })
// if (code === 1000) {
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
// router.push({
// name: 'Expense/share'
// })
// }
const {code, msg} = await addAllocation(params)
ElNotification({
title: '提示',
message: msg,
type: code === 1000 ? 'success' : 'error'
})
if (code === 1000) {
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
router.push({
name: 'Expense/share'
})
}
})
}
const handleResubmit = (instance) => {