1 <input id="reporttypeid" name="reporttypeid" class="tb-input easyui-combotree easyui-validatebox" style="width: 100%;" value="${data.reporttypeid}" 2 data-options=" 3 required: true, 4 panelHeight: ‘auto‘, 5 editable:false, 6 valueField:‘id‘, 7 textField:‘typename‘, 8 cascadeCheck: false, 9 multiple: false, 10 editable: true, 11 checkbox: false, 12 url:‘/omsworkreporttype/datagrid‘, 13 loadFilter:function(data){ 14 return data.rows; 15 }, 16 formatter:function(node){ 17 return node.typename; 18 }, 19 onSelect:function(node){ 20 $(‘#reporttypeid‘).val(node.id); 21 }, 22 onBeforeExpand : function(node) { 23 if (node.children === null || node.children === undefined) { 24 $(‘#reporttypeid‘).combotree(‘tree‘).tree(‘options‘).url= ‘/omsworkreporttype/datagrid?parentid=‘ + node.id; 25 } 26 }"/>
原文:https://www.cnblogs.com/ywy8/p/13590372.html