固定多级表头
This commit is contained in:
@@ -282,7 +282,19 @@ const initTable = async () => {
|
||||
config.searchType = 'tag'
|
||||
}
|
||||
if (item.queryMode == 'NE') config.searchLabel = `${config.label} !=`
|
||||
tableOption.value.column[item.fieldCode] = config
|
||||
if(!item.parentFieldCode&&!!item.parentFieldName){
|
||||
if(tableOption.value.column[item.parentFieldName]){
|
||||
tableOption.value.column[item.parentFieldName].children.push(config)
|
||||
}else{
|
||||
tableOption.value.column[item.parentFieldName]={
|
||||
children:[config],
|
||||
label:item.parentFieldName
|
||||
}
|
||||
}
|
||||
}else{
|
||||
tableOption.value.column[item.fieldCode] = config
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
isInit.value = true
|
||||
|
||||
Reference in New Issue
Block a user