From 81467cd8d3826d08275685fadc021e6c6333bed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 27 Jan 2022 17:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E8=AF=84=E4=BC=B0=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E7=AC=AC=E5=9B=9B=E6=AD=A5=E5=A4=9A=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzpg/step4.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 => {