var treeObj = treeSelect.zTree(id);//获取tree对象 id是lay-filter="treeSelectTwoId"
//其实就是使用zTree里面对应的方法操作
var nodes=treeObj.getCheckedNodes(true);
var nodeId;//子节点对应的id
for(var t=0;t<nodes.length;t++){
var chArr= nodes[t].children
for(var i=0;i<chArr.length;i++){
var threeh= chArr[i].children
for(var y=0;y<threeh.length;y++){
var name= threeh[y].name;
if(name==xueke){
debugger
nodeId= threeh[y].id;
break;
}
}
}
}
treeSelect.checkNode(id,nodeId );