认证参数收集清单 列表结构修改
This commit is contained in:
@@ -873,12 +873,20 @@
|
||||
res.result.records.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(',')
|
||||
}
|
||||
})
|
||||
for (const key in Obj[item].paramsConfigData){
|
||||
Obj[item].paramsConfigData[key].forEach((itemLi) => {
|
||||
itemLi.isLock = 1
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
// Obj[item].list.forEach((itemLi) => {
|
||||
// itemLi.isLock = 1
|
||||
// if (itemLi.type === 'pull_more') {
|
||||
// itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
tt.push(Obj)
|
||||
@@ -887,11 +895,18 @@
|
||||
res.result.records.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(',')
|
||||
}
|
||||
})
|
||||
for (const key in Obj[item].paramsConfigData){
|
||||
Obj[item].paramsConfigData[key].forEach((itemLi) => {
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
// Obj[item].list.forEach((itemLi) => {
|
||||
// if (itemLi.type === 'pull_more') {
|
||||
// itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
tt.push(Obj)
|
||||
@@ -958,17 +973,30 @@
|
||||
res.result.records.forEach((Obj) => {
|
||||
Object.keys(Obj).forEach((item) => {
|
||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||
Obj[item].list.forEach((itemLi) => {
|
||||
console.log(item)
|
||||
if((this.currentPersonRole == 'homo' || this.currentPersonRole == 'admin') && item == 'referencesCol'){
|
||||
itemLi.isLock = 0
|
||||
}else{
|
||||
itemLi.isLock = 1
|
||||
}
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
for (const key in Obj[item].paramsConfigData){
|
||||
Obj[item].paramsConfigData[key].forEach((itemLi) => {
|
||||
console.log(item)
|
||||
if((this.currentPersonRole == 'homo' || this.currentPersonRole == 'admin') && item == 'referencesCol'){
|
||||
itemLi.isLock = 0
|
||||
}else{
|
||||
itemLi.isLock = 1
|
||||
}
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
// Obj[item].list.forEach((itemLi) => {
|
||||
// console.log(item)
|
||||
// if((this.currentPersonRole == 'homo' || this.currentPersonRole == 'admin') && item == 'referencesCol'){
|
||||
// itemLi.isLock = 0
|
||||
// }else{
|
||||
// itemLi.isLock = 1
|
||||
// }
|
||||
// if (itemLi.type === 'pull_more') {
|
||||
// itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
tt.push(Obj)
|
||||
@@ -977,11 +1005,18 @@
|
||||
res.result.records.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 ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
for (const key in Obj[item].paramsConfigData){
|
||||
Obj[item].paramsConfigData[key].forEach((itemLi) => {
|
||||
if (itemLi.type === 'pull_more') {
|
||||
itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
// Obj[item].list.forEach((itemLi) => {
|
||||
// if (itemLi.type === 'pull_more') {
|
||||
// itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
tt.push(Obj)
|
||||
|
||||
Reference in New Issue
Block a user