config.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. <select name="sysTpCd" th:with="type=${@dict.getType('sys_tp_cd')}">
  16. <option value="">所有</option>
  17. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  18. </select>
  19. </li>
  20. <li>
  21. <label>接口请求地址:</label>
  22. <input type="text" name="methUrl"/>
  23. </li>
  24. <li>
  25. <label>APPID:</label>
  26. <input type="text" name="appId"/>
  27. </li>
  28. <li>
  29. <label>收款开户行:</label>
  30. <input type="text" name="skKhh"/>
  31. </li>
  32. <li>
  33. <label>收款账户名称:</label>
  34. <input type="text" name="skAccountNm"/>
  35. </li>
  36. <li>
  37. <label>收款账号:</label>
  38. <input type="text" name="skAccount"/>
  39. </li>
  40. <li>
  41. <label>状态:</label>
  42. <select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
  43. <option value="">所有</option>
  44. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  45. </select>
  46. </li>
  47. <li>
  48. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  49. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  50. </li>
  51. </ul>
  52. </div>
  53. </form>
  54. </div>
  55. <div class="btn-group-sm" id="toolbar" role="group">
  56. <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="opt:config:add">
  57. <i class="fa fa-plus"></i> 添加
  58. </a>
  59. <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="opt:config:edit">
  60. <i class="fa fa-edit"></i> 修改
  61. </a>
  62. <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="opt:config:remove">
  63. <i class="fa fa-remove"></i> 删除
  64. </a>
  65. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="opt:config:export">
  66. <i class="fa fa-download"></i> 导出
  67. </a>
  68. </div>
  69. <div class="col-sm-12 select-table table-striped">
  70. <table id="bootstrap-table"></table>
  71. </div>
  72. </div>
  73. </div>
  74. <th:block th:include="include :: footer" />
  75. <script th:inline="javascript">
  76. var editFlag = [[${@permission.hasPermi('opt:config:edit')}]];
  77. var removeFlag = [[${@permission.hasPermi('opt:config:remove')}]];
  78. var sysTpCdDatas = [[${@dict.getType('sys_tp_cd')}]];
  79. var methTpCdDatas = [[${@dict.getType('meth_tp_cd')}]];
  80. var statusDatas = [[${@dict.getType('sys_normal_disable')}]];
  81. var prefix = ctx + "opt/config";
  82. $(function() {
  83. var options = {
  84. url: prefix + "/list",
  85. createUrl: prefix + "/add",
  86. updateUrl: prefix + "/edit/{id}",
  87. removeUrl: prefix + "/remove",
  88. exportUrl: prefix + "/export",
  89. modalName: "系统配置",
  90. columns: [{
  91. checkbox: true
  92. },
  93. {
  94. field: 'confId',
  95. title: '配置ID',
  96. visible: false
  97. },
  98. {
  99. field: 'sysTpCd',
  100. title: '系统类型',
  101. formatter: function(value, row, index) {
  102. return $.table.selectDictLabel(sysTpCdDatas, value);
  103. }
  104. },
  105. {
  106. field: 'methTpCd',
  107. title: '接口请求类型',
  108. formatter: function(value, row, index) {
  109. return $.table.selectDictLabel(methTpCdDatas, value);
  110. }
  111. },
  112. {
  113. field: 'methUrl',
  114. title: '接口请求地址'
  115. },
  116. {
  117. field: 'appId',
  118. title: 'APPID'
  119. },
  120. {
  121. field: 'appKey',
  122. title: 'APPKEY'
  123. },
  124. {
  125. field: 'skKhh',
  126. title: '收款开户行'
  127. },
  128. {
  129. field: 'skAccountNm',
  130. title: '收款账户名称'
  131. },
  132. {
  133. field: 'skAccount',
  134. title: '收款账号'
  135. },
  136. {
  137. field: 'status',
  138. title: '状态',
  139. formatter: function(value, row, index) {
  140. return $.table.selectDictLabel(statusDatas, value);
  141. }
  142. },
  143. {
  144. title: '操作',
  145. align: 'center',
  146. formatter: function(value, row, index) {
  147. var actions = [];
  148. actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.confId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  149. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.confId + '\')"><i class="fa fa-remove"></i>删除</a>');
  150. return actions.join('');
  151. }
  152. }]
  153. };
  154. $.table.init(options);
  155. });
  156. </script>
  157. </body>
  158. </html>