toCascader (ary) {
const array = []
ary.map(item => {
const obj = {}
obj.value = item.className
obj.label = item.className
obj.children = []
item.fieldNamelist.map(field => {
const f = {}
f.value = field
f.label = field
obj.children.push(f)
})
array.push(obj)
})
return array
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!