HTML
<el-tree
:data="treeDate"
show-checkbox
node-key="id"
ref="tree"
:default-expanded-keys="[1,2,3,4,5]"
:props="defaultProps"
:default-checked-keys="checkedKeys"
@check="checks"
></el-tree>
javascript
checks(data, currentChecked) {
//如果点击的子级内容是'导出'的话,对应的父级全选
if (data.children == 0 && data.path == null && data.name &