// 获取某节点下的所有叶子节点
function getAllChildrenNodes(treeNode, result) {
if (treeNode.isParent) {
var childrenNodes = treeNode.children;
if (childrenNodes) {
for (var i = 0; i < childrenNodes.length; i++) {
if (childrenNodes[i].isParent) {
result = getAllChildrenNodes(childrenNodes[i], result);
} else {
result += ',' + childrenNodes[i].id;
}
}
}
}
return result;
}