<el-tree
ref="tree"
:data="treeDate"
class="pageTree"
show-checkbox
node-key="id"
:indent="0"
:default-checked-keys="treeDataSelect"
:expand-on-click-node="false"
@check="handleNodeClick"
:default-expand-all="true">
</el-tree>
export default {
name: "upData",
data() {
return {
treeDataSelect: [],
menuIds: [],
treeDate: [],
}
},
methods: {
handleNodeClick() {
this.menuIds = this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys())
},
},
}
</script>