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="在产车型实施日期" label="在产车型实施日期"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="执行人" label="执行人"
width="170" width="170"
@@ -387,15 +386,23 @@
if (this.type === 1) { if (this.type === 1) {
this.itemList[this.zxIndex].zxUserId = data[0].id this.itemList[this.zxIndex].zxUserId = data[0].id
this.itemList[this.zxIndex].zxUserIdName = data[0].name 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 { } else {
this.itemList.forEach( item => { for (let a = 0; a < this.itemList.length; a++) {
this.zxIdList.forEach( items => { for (let b = 0; b < this.zxIdList.length; b++) {
if (item.id === items) { if (this.itemList[a].id === this.zxIdList[b]) {
item.zxUserId = data[0].id this.itemList[a].zxUserId = data[0].id
item.zxUserIdName = data[0].name 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 this.modalshowflag = false
}, },
@@ -488,6 +495,7 @@
item.zxUserIdName = item.zxUserIdName || '' item.zxUserIdName = item.zxUserIdName || ''
}) })
this.itemList = arr this.itemList = arr
console.log(this.itemList);
this.loading = false this.loading = false
}).catch(e => { }).catch(e => {
}) })
@@ -836,18 +836,19 @@
} else { } else {
itemList = data.itemList itemList = data.itemList
} }
itemList.forEach(item => { console.log(itemList);
item.unitDeptName = this.$store.getters.userInfo.institutionName // itemList.forEach(item => {
item.onlineData = item.onlineData || '' // item.unitDeptName = this.$store.getters.userInfo.institutionName
item.newData = item.newData || '' // item.onlineData = item.onlineData || ''
item.complianceState = item.complianceState || '' // item.newData = item.newData || ''
item.oldNumber = item.oldNumber || '' // item.complianceState = item.complianceState || ''
item.complianceRequir = item.complianceRequir || '1' // item.oldNumber = item.oldNumber || ''
item.changePoint = item.changePoint || '' // item.complianceRequir = item.complianceRequir || '1'
item.technicalRequir = item.technicalRequir || '' // item.changePoint = item.changePoint || ''
item.itemsTitle = item.itermsConditions // item.technicalRequir = item.technicalRequir || ''
item.applyArctic = item.applyArctic || [] // item.itemsTitle = item.itermsConditions
}) // item.applyArctic = item.applyArctic || []
// })
this.getBDList() this.getBDList()
this.itemList = itemList this.itemList = itemList
this.loading = false this.loading = false