This commit is contained in:
zhutianqi
2021-12-21 09:53:50 +08:00
parent c986a34e2c
commit cc5265b458
2 changed files with 29 additions and 20 deletions
@@ -140,7 +140,6 @@
label="在产车型实施日期"
align="center">
</el-table-column>
<el-table-column
label="执行人"
width="170"
@@ -387,15 +386,23 @@
if (this.type === 1) {
this.itemList[this.zxIndex].zxUserId = data[0].id
this.itemList[this.zxIndex].zxUserIdName = data[0].name
let row = JSON.parse(JSON.stringify(this.itemList[this.zxIndex]))
row.zxUserId = data[0].id
row.zxUserIdName = data[0].name
this.$set(this.itemList, this.zxIndex, row)
} else {
this.itemList.forEach( item => {
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 => {
})
@@ -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