实现的功能:
- 树形控件的节点过滤之后获取过滤之后的数据
- 由于树形数据较多默认不展开全部,当过滤之后展开节点
- 这里处理JSON数据使用了CircularJSON
<el-tree
ref="unitTree"
node-key="id"
:current-node-key="currentId"
:highlight-current="true"
:data="data"
:props="defaultProps"
@node-click="handleNodeClick"
:filter-node-method="filterNode"
>
<span
class="over"
slot-scope