[update]
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user