stream.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('会员用卡流水列表')" th:value="${id}"/>
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <!-- <div class="col-sm-12 search-collapse">-->
  10. <form id="formId">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <input type="hidden" name="id" th:value="${id}"/>
  15. </li>
  16. </ul>
  17. </div>
  18. </form>
  19. <!-- </div>-->
  20. <!-- <div class="btn-group-sm" id="toolbar" role="group">-->
  21. <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:stream:add">-->
  22. <!-- <i class="fa fa-plus"></i> 添加-->
  23. <!-- </a>-->
  24. <!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:stream:edit">-->
  25. <!-- <i class="fa fa-edit"></i> 修改-->
  26. <!-- </a>-->
  27. <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:stream:remove">-->
  28. <!-- <i class="fa fa-remove"></i> 删除-->
  29. <!-- </a>-->
  30. <!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:stream:export">-->
  31. <!-- <i class="fa fa-download"></i> 导出-->
  32. <!-- </a>-->
  33. <!-- </div>-->
  34. <div class="col-sm-12 select-table table-striped">
  35. <table id="bootstrap-table"></table>
  36. </div>
  37. </div>
  38. </div>
  39. <th:block th:include="include :: footer" />
  40. <script th:inline="javascript">
  41. var editFlag = [[${@permission.hasPermi('system:stream:edit')}]];
  42. var removeFlag = [[${@permission.hasPermi('system:stream:remove')}]];
  43. var cardType = [[${@dict.getType('site_type')}]];
  44. var prefix = ctx + "card";
  45. $(function() {
  46. var options = {
  47. url: prefix + "/stream",
  48. modalName: "会员用卡流水",
  49. columns: [{
  50. field: 'username',
  51. title: '用户账户'
  52. },
  53. {
  54. field: 'realName',
  55. title: '姓名'
  56. },
  57. {
  58. field: 'mobile',
  59. title: '手机号码'
  60. },
  61. {
  62. field: 'cardName',
  63. title: '卡种名称'
  64. },
  65. {
  66. field: 'cardType',
  67. title: '卡种类型',
  68. formatter: function (value, row, index) {
  69. return $.table.selectDictLabel(cardType, value);
  70. }
  71. },
  72. {
  73. field: 'type',
  74. title: '类型',
  75. formatter: function (value, row, index) {
  76. if (value ==='0'){
  77. return '约场';
  78. }else {
  79. return '退场'
  80. }
  81. }
  82. },
  83. {
  84. field: 'createTime',
  85. title: '时间'
  86. }]
  87. };
  88. $.table.init(options);
  89. });
  90. </script>
  91. </body>
  92. </html>