bill.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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('用户积分流水列表')" />
  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. <label>账单标题:</label>
  15. <input type="text" name="title"/>
  16. </li>
  17. <li>
  18. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  19. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  20. </li>
  21. </ul>
  22. </div>
  23. </form>
  24. </div>
  25. <div class="btn-group-sm" id="toolbar" role="group">
  26. <!-- <a class="btn btn-success" onclick="$.operate.add()">-->
  27. <!-- <i class="fa fa-plus"></i> 添加-->
  28. <!-- </a>-->
  29. <!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()">-->
  30. <!-- <i class="fa fa-edit"></i> 修改-->
  31. <!-- </a>-->
  32. <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()">-->
  33. <!-- <i class="fa fa-remove"></i> 删除-->
  34. <!-- </a>-->
  35. <a class="btn btn-warning" onclick="$.table.exportExcel()">
  36. <i class="fa fa-download"></i> 导出
  37. </a>
  38. </div>
  39. <div class="col-sm-12 select-table table-striped">
  40. <table id="bootstrap-table"></table>
  41. </div>
  42. </div>
  43. </div>
  44. <th:block th:include="include :: footer" />
  45. <script th:inline="javascript">
  46. var editFlag = [[${@permission.hasPermi('system:bill:edit')}]];
  47. var removeFlag = [[${@permission.hasPermi('system:bill:remove')}]];
  48. var prefix = ctx + "system/bill";
  49. $(function() {
  50. var options = {
  51. url: prefix + "/list",
  52. createUrl: prefix + "/add",
  53. updateUrl: prefix + "/edit/{id}",
  54. removeUrl: prefix + "/remove",
  55. exportUrl: prefix + "/export",
  56. modalName: "用户积分流水",
  57. columns: [{
  58. checkbox: true
  59. },
  60. {
  61. field: 'id',
  62. title: '用户账单id',
  63. visible: false
  64. },
  65. {
  66. field: 'username',
  67. title: '用户名称'
  68. },
  69. {
  70. field: 'title',
  71. title: '账单标题'
  72. },
  73. {
  74. field: 'number',
  75. title: '明细数字'
  76. },
  77. {
  78. field: 'balance',
  79. title: '剩余'
  80. },
  81. {
  82. field: 'useCategory',
  83. title: '积分用途'
  84. },
  85. {
  86. field: 'remark',
  87. title: '备注'
  88. },
  89. // {
  90. // title: '操作',
  91. // align: 'center',
  92. // formatter: function(value, row, index) {
  93. // var actions = [];
  94. // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  95. // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
  96. // return actions.join('');
  97. // }
  98. // }
  99. ]
  100. };
  101. $.table.init(options);
  102. });
  103. </script>
  104. </body>
  105. </html>