review_config.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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="role-form">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. 审核内容:<input type="text" name="tagName" />
  15. </li>
  16. <li>
  17. 系统:<select name="system" th:with="type=${@dict.getType('os_type')}">
  18. <option value="">所有</option>
  19. <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
  20. th:value="${dict.dictValue}"></option>
  21. </select>
  22. </li>
  23. <li>
  24. 渠道:<select name="channel" th:with="type=${channelList}">
  25. <option value="">所有</option>
  26. <option th:each="dict : ${type}" th:text="${dict}"
  27. th:value="${dict}"></option>
  28. </select>
  29. </li>
  30. <li>
  31. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
  32. class="fa fa-search"></i>&nbsp;搜索</a>
  33. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
  34. class="fa fa-refresh"></i>&nbsp;重置</a>
  35. </li>
  36. </ul>
  37. </div>
  38. </form>
  39. </div>
  40. <div class="btn-group-sm" id="toolbar" role="group">
  41. <a class="btn btn-success" onclick="add()" shiro:hasPermission="operation:channel:config:add">
  42. <i class="fa fa-plus"></i> 新增
  43. </a>
  44. </div>
  45. <div class="col-sm-12 select-table table-striped" style="overflow:scroll;">
  46. <table id="bootstrap-table" data-mobile-responsive="false" style="min-width:1500px;"></table>
  47. </div>
  48. </div>
  49. </div>
  50. <th:block th:include="include :: footer"/>
  51. <script th:inline="javascript">
  52. var editFlag = [[${@permission.hasPermi('operation:channel:config:edit')}]];
  53. var removeFlag = [[${@permission.hasPermi('operation:channel:config:del')}]];
  54. var osType = [[${@dict.getType('os_type')}]];
  55. var commontype = [[${@dict.getType('common_type')}]];
  56. var prefix = ctx + "operation/channel/config";
  57. $(function () {
  58. var options = {
  59. url: prefix + "/list",
  60. createUrl: prefix + "/add",
  61. updateUrl: prefix + "/edit/{id}",
  62. removeUrl: prefix + "/remove",
  63. modalName: "审核配置",
  64. height: 600,
  65. columns: [
  66. {
  67. field: 'id',
  68. title: 'ID'
  69. },
  70. {
  71. field: 'system',
  72. title: '系统',
  73. align: 'center',
  74. formatter: function (value, row, index) {
  75. return $.table.selectDictLabel(osType, value);
  76. }
  77. },
  78. {
  79. field: 'channel',
  80. title: '渠道'
  81. },
  82. {
  83. field: 'versions',
  84. title: '版本'
  85. },
  86. {
  87. field: 'tagName',
  88. title: '审核内容'
  89. },
  90. {
  91. field: 'rechargeAmount',
  92. title: '充值金额'
  93. },
  94. {
  95. field: 'status',
  96. title: '状态',
  97. formatter: function (value, row, index) {
  98. return $.table.selectDictLabel(commontype, value);
  99. }
  100. },
  101. {
  102. field: 'createTime',
  103. title: '创建时间',
  104. },
  105. {
  106. title: '操作',
  107. align: 'center',
  108. formatter: function (value, row, index) {
  109. var actions = [];
  110. actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')"><i class="fa fa-edit"></i> 编辑</a> ');
  111. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="remove(\'' + row.id + '\')"><i class="fa fa-remove"></i> 删除</a>');
  112. return actions.join('');
  113. }
  114. }]
  115. };
  116. $.table.init(options);
  117. });
  118. function add() {
  119. var url = prefix + "/add";
  120. $.modal.open("新增审核配置", url, '700', '650');
  121. }
  122. function edit(id) {
  123. var url = prefix + "/edit/" + id;
  124. $.modal.open("编辑审核配置", url, '700', '650');
  125. }
  126. function remove(id) {
  127. $.modal.confirm("确认要删除该记录吗?", function () {
  128. $.operate.post(prefix + "/del?id=" + id);
  129. });
  130. }
  131. </script>
  132. </body>
  133. </html>