$('#cc')就是你定义中的ID <label for="org">组织机构</label>
<select id="cc" name="sysOrg.id" class="easyui-combotree" style="width:200px;"/>
<input id="orgId" name="orgId" type="hidden" value="$!{entity.sysOrg.id}"/>
</p>
<select id="cc" name="sysOrg.id" class="easyui-combotree" style="width:200px;"/>
<input id="orgId" name="orgId" type="hidden" value="$!{entity.sysOrg.id}"/>
</p>
var $combotree = $(editor.target);
$combotree.combotree({
url: url + $.Guid.Empty(),
onBeforeSelect: function (node) {
if (!$(this).tree("isLeaf", node.target)) {
return false;
}
},
onClick: function (node) {
if (!$(this).tree('isLeaf', node.target)) {
$combotree.combo("showPanel");
}
},
onBeforeExpand: function (node) {
$(this).tree("options").url = url + node.id;
}
});
if (n){
$(this).tree("options").url = '<%=request.getContextPath()%>/sys/deptAction.do?action=queryLeaf&pid='+ n.id;
} else {
$(this).tree("options").url = '<%=request.getContextPath()%>/sys/deptAction.do?action=queryByID';
}
}