<%layout("/eova/layout/default.html",{'title' : 'CRUD'}){%> <script type="text/javascript" src="${STATIC!}/ui/js/template.js"></script> <body class="easyui-layout" data-options="fit:true,border:false"> <div class="eova-form-field" title="分派角色[fpjs]" style=""> <div class="eova-form-lbl">分派角色</div> <div> <div class="eova-combo" id="fpjs" name="fpjs" value="" url="/widget/comboJson?exp=select id,name from sys_xnsg.eova_role" data-options=" disable : false"> </div> <script> $('#fpjs').eovacombo({ valueField: 'id', textField: 'name', multiple: false }); </script> </div> </div> </body> <script> var submitForm = function($dialog, $grid, $pjq) { /* var url = "/mt2/mdxxAssignment/" + ${mids}; var date = document.getElementsByName("finddate")[0].value;//打开查看器查看input标签 var o = { 'date' : date }; $.post(url, o, function(result) { if (result.success) { $.slideMsg("操作成功!", $pjq); $grid.datagrid('load'); $dialog.dialog('destroy'); } else { $pjq.messager.alert('提示', result.msg, 'error'); } }, 'json'); return; */ }; </script> <%}%>
@Ellen翔 找一个系统的自定义页面 看看 下拉框 如何实现的。代码写的太多了,本来一句话就可以构建下拉框的