toCascader (ary) {const array = []ary.map(item => {const obj = {}obj.value = item.classNameobj.label = item.classNameobj.children = []item.fieldNamelist.map(field => {const f = {}f.value = fieldf.label = fieldobj.children.push(f)})array.push(obj)})return array}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号