fix : 修复新增征集/需求上报时缓存和注释log
This commit is contained in:
@@ -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')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user