circle.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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="erBanNo" placeholder="请输入举报的卿卿号"/>
  15. </li>
  16. <li>
  17. 类型:<select name="type" th:with="type=${@dict.getType('circle_report_type')}">
  18. <option value="">所有</option>
  19. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  20. </select>
  21. </li>
  22. <li>
  23. 状态:<select name="status" th:with="type=${@dict.getType('circle_report_status')}">
  24. <option value="">所有</option>
  25. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  26. </select>
  27. </li>
  28. <li>
  29. 操作人:<input type="text" name="adminName" placeholder="请输入操作人"/>
  30. </li>
  31. <li class="select-time">
  32. <label>创建时间: </label>
  33. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
  34. <span>-</span>
  35. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
  36. </li>
  37. <li>
  38. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  39. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  40. </li>
  41. </ul>
  42. </div>
  43. </form>
  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 processFlag = [[${@permission.hasPermi('review:circle:process')}]];
  53. var circleReportType = [[${@dict.getType('circle_report_type')}]];
  54. var circleReportStatus = [[${@dict.getType('circle_report_status')}]];
  55. var ignoreFlag = [[${@permission.hasPermi('review:circle:ignore')}]];
  56. var prefix = ctx + "review/circle";
  57. $(function() {
  58. var options = {
  59. url: prefix + "/list",
  60. modalName: "动态圈举报管理",
  61. height: $(window).height()-120,
  62. columns: [
  63. {
  64. field: 'id',
  65. title: 'ID'
  66. },
  67. {
  68. field: 'erBanNo',
  69. title: '举报的卿卿号',
  70. align : 'center'
  71. },
  72. {
  73. field: 'nick',
  74. title: '举报的用户昵称',
  75. align : 'center'
  76. },
  77. {
  78. field: 'momentId',
  79. title: '动态ID',
  80. align : 'center',
  81. formatter: function(value, row, index) {
  82. var content = value;
  83. if(value == 0){
  84. content = "无";
  85. }
  86. return content;
  87. }
  88. },
  89. {
  90. field: 'playerId',
  91. title: '评论ID',
  92. align : 'center',
  93. formatter: function(value, row, index) {
  94. var content = value;
  95. if(value == 0){
  96. content = "无";
  97. }
  98. return content;
  99. }
  100. },
  101. {
  102. field: 'type',
  103. title: '类型',
  104. align : 'center',
  105. formatter: function(value, row, index) {
  106. return $.table.selectDictLabel(circleReportType, value);
  107. }
  108. },
  109. {
  110. field: 'status',
  111. title: '状态',
  112. align : 'center',
  113. formatter: function(value, row, index) {
  114. return $.table.selectDictLabel(circleReportStatus, value);
  115. }
  116. },
  117. {
  118. field: 'reason',
  119. title: '举报内容',
  120. align : 'center'
  121. },
  122. {
  123. field: 'createDate',
  124. title: '举报时间',
  125. align : 'center'
  126. },
  127. {
  128. field: 'adminName',
  129. title: '操作人',
  130. align : 'center'
  131. },
  132. {
  133. field: 'updateDate',
  134. title: '处理时间',
  135. align : 'center'
  136. },
  137. {
  138. title: '操作',
  139. align: 'center',
  140. formatter: function(value, row, index) {
  141. var actions = [];
  142. if(row.status == 0){
  143. actions.push('<a class="btn btn-success btn-xs ' + processFlag + '" href="javascript:void(0)" onclick="process(\'' + row.id + '\')"><i class="fa fa-ban"></i> 处理</a> ');
  144. actions.push('');
  145. actions.push('');
  146. actions.push('<a class="btn btn-success btn-xs ' + ignoreFlag + '" href="javascript:void(0)" onclick="ignore(\'' + row.id + '\')"><i class="fa fa-edit"></i> 忽略</a>');
  147. }
  148. return actions.join('');
  149. }
  150. }]
  151. };
  152. $.table.init(options);
  153. });
  154. function process(id){
  155. $.modal.confirm("确认要处理该记录吗?", function() {
  156. $.operate.post(prefix + "/process?reportId=" + id);
  157. });
  158. }
  159. function ignore(id) {
  160. $.modal.confirm("确认要忽略吗?", function () {
  161. $.operate.post(prefix + "/ignore?id=" + id);
  162. });
  163. }
  164. </script>
  165. </body>
  166. </html>