This commit is contained in:
zhaomeijing
2022-06-27 19:15:15 +08:00
parent aa2b155ad8
commit 9102c2e692
4 changed files with 48 additions and 19 deletions
@@ -474,7 +474,36 @@
// }
// })
// })
this.dataSource = res.result
let tt = []
if(this.currentPersonRole !== 'dre') {
res.result.forEach((Obj) => {
Object.keys(Obj).forEach((item) => {
if(Obj[item] instanceof Object && Obj[item].controlType !== undefined){
Obj[item].list.forEach((itemLi) => {
itemLi.isLock = 1
if(itemLi.type === 'pull_more'){
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
}
})
}
})
tt.push(Obj)
})
} else {
res.result.forEach((Obj) => {
Object.keys(Obj).forEach((item) => {
if(Obj[item] instanceof Object && Obj[item].controlType !== undefined){
Obj[item].list.forEach((itemLi) => {
if(itemLi.type === 'pull_more'){
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
}
})
}
})
tt.push(Obj)
})
}
this.dataSource = tt
this.total = res.result.total
this.selectedRowKeys = []
this.selectedRowrowValue = []