参考列禁用

This commit is contained in:
zyx.net
2022-12-07 15:53:43 +08:00
parent f7db59dca4
commit 67c01e8485
3 changed files with 12 additions and 3 deletions
@@ -650,8 +650,10 @@
let num = 0
this.content = []
jsonHead.forEach((res, index) => {
console.log(res)
// 配置列
if (res.type) {
console.log('配置')
this.columns.push({
dataIndex: res.db_field_name,
align: 'center',
@@ -835,7 +837,12 @@
Object.keys(Obj).forEach((item) => {
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
Obj[item].list.forEach((itemLi) => {
itemLi.isLock = 1
console.log(item)
if(this.currentPersonRole == 'homo' && item == 'referencesCol'){
itemLi.isLock = 0
}else{
itemLi.isLock = 1
}
if (itemLi.type === 'pull_more') {
itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
}