list4.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <%@ include file="../../common/head.jsp"%>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  10. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js" type="text/javascript"></script>
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js" type="text/javascript"></script>
  12. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
  13. <script>
  14. function test(value,row,index){
  15. // return '<a href="#">' + row['id'] + '</a>';
  16. return '<a href="#">编辑 </a>|<a href="#">删除</a>';
  17. }
  18. function setAction(){
  19. var data = getSelectedRow("tab_menu");
  20. if(null == data){
  21. return;
  22. }
  23. $.openDlg({
  24. url:'transfer.cs?action=setAction&id=' + data.id,
  25. title:"设定操作权限 - " + data.name,
  26. width:'100%',
  27. height:'100%',
  28. });
  29. }
  30. </script>
  31. </head>
  32. <body class="gray-bg">
  33. <div class="wrapper wrapper-content animated fadeInRight">
  34. <!-- <div class="ibox " style=""> -->
  35. <!-- <div class="ibox-content"> -->
  36. <div class="row row-lg">
  37. <div class="col-sm-12">
  38. <cs:toolbar title="菜单" tableId="tab_menu" width="768px" height="420px" menuCode="181">
  39. <!-- <button class="btn btn-sm btn-info" type="button" onclick="setAction()"><i class="fa fa-info"></i>&nbsp;设点操作权限值</button> -->
  40. </cs:toolbar>
  41. <table id="tab_menu"
  42. data-toggle="table"
  43. data-url="list2.cs"
  44. data-method="get"
  45. data-click-to-select="true"
  46. data-pagination="true"
  47. data-data-type="json"
  48. data-show-refresh="true"
  49. data-show-columns="true"
  50. data-show-toggle="true"
  51. data-search-on-enter-key="true"
  52. data-toolbar="#def_toolbar"
  53. data-side-pagination="server"
  54. data-query-params="queryParams"
  55. data-mobile-responsive="true"
  56. >
  57. <thead>
  58. <tr>
  59. <th data-checkbox="true" data-click-to-select="true"></th>
  60. <th data-field="id">菜单id</th>
  61. <th data-field="pid">上级菜单ID</th>
  62. <th data-field="name">菜单名称</th>
  63. <th data-field="code">代码</th>
  64. <th data-field="url">url</th>
  65. <th data-field="weight">权重</th>
  66. <!-- <th data-formatter="test">操作</th> -->
  67. </tr>
  68. </thead>
  69. </table>
  70. </div>
  71. </div>
  72. <!-- </div> -->
  73. <!-- </div> -->
  74. </div>
  75. </body>
  76. </html>