diff --git a/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue b/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue index b3ec93312..43878c38d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue @@ -97,7 +97,7 @@ { - if(item.projectName === tab.name){ - this.dataList.push(item) - } - }) + this.projectName = tab.name }, getData() { return new Promise((resolve, reject) => { @@ -377,6 +372,7 @@ export default { * @description: 动态表单读取 */ getFormFieldList (item) { + console.log(item); this.$nextTick(() => { this.listForm = JSON.parse(JSON.stringify(item)) this.fileType = item.fileType @@ -384,11 +380,13 @@ export default { this.listForm.prcName = this.prcName this.listForm['id'] = item.id this.dataList = item.resDats + this.oldDataList = item.resDats item.resDats.forEach(item => { if(!this.projectTabName.includes(item.projectName)){ this.projectTabName.push(item.projectName) } }) + this.projectName = this.activeName = this.projectTabName[Object.keys(this.projectTabName)[0]] this.listForm.resDats = [] this.listForm.breakdownList = [] this.dataList.distributePerson = item.dataList[0].distributePerson @@ -533,6 +531,7 @@ export default { this.selectProject = data }, choiceZRRS(row, type, index) { + localStorage.setItem('selectProject', JSON.stringify(this.selectProject)) this.type = type; if (type === 1) { this.nodeList2 = []; @@ -574,6 +573,7 @@ export default { projectList[this.lsIndex].implementer = nameList; this.dataList = projectList } else if (this.type === 2) { + this.selectProject = JSON.parse(localStorage.getItem('selectProject')) let projectList = JSON.parse(JSON.stringify(this.dataList)) projectList.forEach(item => { this.selectProject.forEach(items => {