1.解决el-raido选不中的问题
onSelectChange() {this.$forceUpdate();}
2.el-tree复选框选中选中的id值
//前提条件node-key="id"<el-tree :data="list" :props="defaultProps" show-checkbox node-key="id" ref="tree" :highlight-current="true" @check="check" @node-click="handleNodeClick"></el-tree>//获取ids值
let res = this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys())
3.el-tree编辑复选框回显问题
//default-checked-keys 通过这个设置回显
<el-tree :data="list" :props="defaultProps" :default-checked-keys="defaultChecks" default-expand-all show-checkbox node-key="id" ref="tree" :highlight-current="true" @check="check" @node-click="handleNodeClick"></el-tree>//defaultChecks:[]
//举例:defaultChecks[29,32] 这里面的29和32是node-key的值