| | |
| | | }
|
| | | }
|
| | | },
|
| | | mapCategoryTree(node, arr) {
|
| | | mapCategoryTree(node, arr,parentCheckTrue=false) {
|
| | | var has = true
|
| | | if (arr) {
|
| | | var hasTrue = false
|
| | |
| | | has = true
|
| | | if (this.columns_categorys_search) {
|
| | | has = false
|
| | | } |
| | | if(parentCheckTrue){ |
| | | has = true |
| | | }
|
| | | var tmp = {
|
| | | ...item,
|
| | |
| | | // }
|
| | | this.columns_categorys_dict['@' + item.id] = item
|
| | | if (item.children && item.children.length > 0) {
|
| | | //如果上级已经有了,下级都包含
|
| | | tmp.children = []
|
| | | var childrenhas = this.mapCategoryTree(tmp.children, item.children)
|
| | | var childrenhas = this.mapCategoryTree(tmp.children, item.children,has) |
| | | if (childrenhas) {
|
| | | has = true
|
| | | hasTrue = true
|
| | | }
|
| | |
|
| | | } else {
|
| | | tmp.children = undefined
|
| | | }
|
| | |
| | | // height: 100px;
|
| | |
|
| | | .label {
|
| | | width: 300rpx;
|
| | | width: 240rpx;
|
| | | line-height: 60px;
|
| | | min-width: 240rpx;
|
| | |
|
| | | }
|
| | |
|