roleList-select.jsp 851 B

1234567891011121314151617181920212223242526
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html >
  4. <html>
  5. <head>
  6. <title>common.role.list</title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. </head>
  9. <body style="overflow-y: hidden" scroll="no">
  10. <t:datagrid name="roleList" title="common.role.select" actionUrl="userController.do?datagridRole" idField="id" showRefresh="false" >
  11. <t:dgCol title="common.code" field="id" hidden="true"></t:dgCol>
  12. <t:dgCol title="common.role.name" field="roleName" width="50"></t:dgCol>
  13. </t:datagrid>
  14. </body>
  15. </html>
  16. <script type="text/javascript">
  17. function getRole(){
  18. var rowsData = $("#roleList").datagrid("getChecked");
  19. var id = "";
  20. if(rowsData.length==0){
  21. tip('<t:mutiLang langKey="please.select.role"/>');
  22. return "";
  23. }
  24. return rowsData[0].id;
  25. }
  26. </script>