html代码
<td nowrap class="kv-label" style="text-align:right">所属区域:</td>
<td class="kv-content">
<select id="regionTree" class="easyui-combotree" style="width:200px;"
data-options="url:'<%=contextPath%>/wuye/chargeBatchUploadController/getRegionTree_noSecurity',
parentField:'pid',
textFiled:'text',
idFiled:'id',
panelHeight:'240',
onBeforeSelect:isLeaf,
onClick:showPanel"></select>
</td>
js代码:
<script>
var isLeaf = function (node) {
if (!$(this).tree('isLeaf', node.target)) {
return false;
}
};
var showPanel = function (node) {
if (!$(this).tree('isLeaf', node.target)) {
$('#regionTree').combo('showPanel');
}
};
</script>