list.jsp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <%@ include file="../../common/head.jsp"%>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  9. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  10. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  11. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  12. <script>
  13. function test(value,row,index){
  14. // return '<a href="#">' + row['id'] + '</a>';
  15. return '<a href="#">编辑 </a>|<a href="#">删除</a>';
  16. }
  17. </script>
  18. </head>
  19. <body class="gray-bg">
  20. <div class="wrapper wrapper-content animated fadeInUp">
  21. <!-- <div class="ibox " style=""> -->
  22. <!-- <div class="ibox-content"> -->
  23. <div class="row row-lg">
  24. <div class="col-sm-12">
  25. <cs:toolbar title="数据字典" tableId="tab_dic" width="768px" height="420px" menuCode="${menuCode }"></cs:toolbar>
  26. <table id="tab_dic"
  27. data-toggle="table"
  28. data-url="list2.cs"
  29. data-method="get"
  30. data-click-to-select="true"
  31. data-pagination="true"
  32. data-data-type="json"
  33. data-show-refresh="true"
  34. data-show-columns="true"
  35. data-show-toggle="true"
  36. data-search-on-enter-key="true"
  37. data-toolbar="#def_toolbar"
  38. data-side-pagination="server"
  39. data-query-params="queryParams"
  40. data-mobile-responsive="true"
  41. >
  42. <thead>
  43. <tr>
  44. <th data-checkbox="true" data-click-to-select="true"></th>
  45. <th data-field="id" data-visible="false">id</th>
  46. <th data-field="type">类型</th>
  47. <th data-field="code">代码</th>
  48. <th data-field="name">字典名称</th>
  49. <th data-field="value">值</th>
  50. <th data-field="note">描述</th>
  51. <th data-field="isfixed">是否固定值</th>
  52. </tr>
  53. </thead>
  54. </table>
  55. </div>
  56. </div>
  57. <!-- </div> -->
  58. <!-- </div> -->
  59. </div>
  60. </body>
  61. </html>