fix : 修复需求上报提交功能

This commit is contained in:
2024-10-25 23:30:54 +08:00
parent fb0a0cd719
commit 1a72339ade
2 changed files with 20 additions and 13 deletions

View File

@@ -569,19 +569,19 @@ const handleSubmit = debounce(async (instance) => {
requirementId: route.query.id ? route.query.id : '-1'
}
console.log('params', params)
// let res = await requirementReported(params)
// ElNotification({
// title: '提示',
// message: res.msg,
// type: res.code === 1000 ? 'success' : 'error'
// })
// if (res.code === 1000) {
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
// await router.push({
// name: 'Summary'
// })
// localStorage.removeItem('collectData')
// }
let res = await requirementReported(params)
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
await router.push({
name: 'Summary'
})
localStorage.removeItem('collectData')
}
})
})
const handleResubmit = debounce((instance) => {