$('#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>

解决方案 »

  1.   

    var editor = $grid.datagrid('getEditor', { index: index, field: 'unit' });
                    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;
                        }
                    });
      

  2.   

    onBeforeExpand:function(n,o){
    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';
    }
    }