diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue index 6628a95d4..6283b88ff 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue @@ -140,7 +140,6 @@ label="在产车型实施日期" align="center"> - { - this.zxIdList.forEach( items => { - if (item.id === items) { - item.zxUserId = data[0].id - item.zxUserIdName = data[0].name + for (let a = 0; a < this.itemList.length; a++) { + for (let b = 0; b < this.zxIdList.length; b++) { + if (this.itemList[a].id === this.zxIdList[b]) { + this.itemList[a].zxUserId = data[0].id + this.itemList[a].zxUserIdName = data[0].name + let row = JSON.parse(JSON.stringify(this.itemList[a])) + row.zxUserId = data[0].id + row.zxUserIdName = data[0].name + this.$set(this.itemList, a, row) } - }) - }) + } + } } this.modalshowflag = false }, @@ -488,6 +495,7 @@ item.zxUserIdName = item.zxUserIdName || '' }) this.itemList = arr + console.log(this.itemList); this.loading = false }).catch(e => { }) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue index 49986e59d..b12aa421e 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue @@ -836,18 +836,19 @@ } else { itemList = data.itemList } - itemList.forEach(item => { - item.unitDeptName = this.$store.getters.userInfo.institutionName - item.onlineData = item.onlineData || '' - item.newData = item.newData || '' - item.complianceState = item.complianceState || '' - item.oldNumber = item.oldNumber || '' - item.complianceRequir = item.complianceRequir || '1' - item.changePoint = item.changePoint || '' - item.technicalRequir = item.technicalRequir || '' - item.itemsTitle = item.itermsConditions - item.applyArctic = item.applyArctic || [] - }) + console.log(itemList); + // itemList.forEach(item => { + // item.unitDeptName = this.$store.getters.userInfo.institutionName + // item.onlineData = item.onlineData || '' + // item.newData = item.newData || '' + // item.complianceState = item.complianceState || '' + // item.oldNumber = item.oldNumber || '' + // item.complianceRequir = item.complianceRequir || '1' + // item.changePoint = item.changePoint || '' + // item.technicalRequir = item.technicalRequir || '' + // item.itemsTitle = item.itermsConditions + // item.applyArctic = item.applyArctic || [] + // }) this.getBDList() this.itemList = itemList this.loading = false