fix : 修复新增征集/需求上报时缓存和注释log

This commit is contained in:
2024-10-27 18:08:16 +08:00
parent 604a0fedb8
commit 53b581e71c
8 changed files with 42 additions and 44 deletions

View File

@@ -404,35 +404,32 @@ watch(() => singleList.value, (newVal) => {
showSingleTable.value = newVal.length !== 0;
}, {deep: true})
localStorage.removeItem('originallySelectedList')
if(localStorage.getItem('collectData')){
let collectData=JSON.parse(localStorage.getItem('collectData'))
if(collectData.fileList){
if (name.value === 'Summary/edit') {
attachment.value.allFileList=collectData.fileList
}else {
otherFileList.value=collectData.fileList
if (name.value === 'Summary/edit') {
}else {
if (localStorage.getItem('collectData')) {
let collectData = JSON.parse(localStorage.getItem('collectData'))
if (collectData.fileList) {
otherFileList.value = collectData.fileList
}
if (collectData.optionalChargeLeadership) {
optionalChargeLeadershipList.value = collectData.optionalChargeLeadership
}
formData.value = collectData
}
if(collectData.optionalChargeLeadership){
optionalChargeLeadershipList.value=collectData.optionalChargeLeadership
}
formData.value=collectData
}
const changeCollectData=()=>{
let params = {
...formData.value,
deploymentId: deploymentId.value,
fileList: [],
requirementId: route.query.id ? route.query.id : '-1'
}
if (name.value === 'Summary/edit') {
params.fileList= attachment.value.allFileList
// params.fileList= attachment.value.allFileList
}else {
let params = {
...formData.value,
deploymentId: deploymentId.value,
fileList: [],
requirementId: route.query.id ? route.query.id : '-1'
}
params.fileList= otherFileList.value
localStorage.setItem('collectData', JSON.stringify(params))
}
localStorage.setItem('collectData', JSON.stringify(params))
}
const handleShowOptionalChargeLeadershipPicker = () => {
optionalChargeLeadershipPickerRef.value.showUserPicker()
@@ -634,7 +631,7 @@ const handleResubmit = debounce((instance) => {
router.push({
name: 'Summary'
})
localStorage.removeItem('collectData')
// localStorage.removeItem('collectData')
}
})
})