avatar.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. 举报的卿卿号:<input type="text" name="reportErBanNo" placeholder="请输入举报的卿卿号"/>
  18. </li>
  19. <li>
  20. 举报类型:<select name="reportType" th:with="type=${@dict.getType('report_type')}">
  21. <option value="">所有</option>
  22. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  23. </select>
  24. </li>
  25. <li>
  26. 操作人:<input type="text" name="adminName" placeholder="请输入操作人"/>
  27. </li>
  28. <li class="select-time">
  29. <label>创建时间: </label>
  30. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
  31. <span>-</span>
  32. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
  33. </li>
  34. <li>
  35. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  36. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  37. </li>
  38. </ul>
  39. </div>
  40. </form>
  41. </div>
  42. <div class="col-sm-12 select-table table-striped" style="overflow:scroll;">
  43. <table id="bootstrap-table" data-mobile-responsive="false" style="min-width:1500px;"></table>
  44. </div>
  45. </div>
  46. </div>
  47. <th:block th:include="include :: footer" />
  48. <script th:inline="javascript">
  49. var bannedFlag = [[${@permission.hasPermi('review:avatar:banned:punish')}]];
  50. var blockFlag = [[${@permission.hasPermi('review:avatar:block:punish')}]];
  51. var ignoreFlag = [[${@permission.hasPermi('review:avatar:ignore')}]];
  52. var reportType = [[${@dict.getType('report_type')}]];
  53. var reportStatus = [[${@dict.getType('report_status')}]];
  54. var prefix = ctx + "review/avatar";
  55. $(function() {
  56. var options = {
  57. url: prefix + "/list",
  58. modalName: "头像举报",
  59. height: $(window).height()-120,
  60. columns: [
  61. {
  62. field: 'id',
  63. title: 'ID'
  64. },
  65. {
  66. field: 'erBanNo',
  67. title: '被举报的卿卿号'
  68. },
  69. {
  70. field: 'nick',
  71. title: '被举报的用户昵称',
  72. align : 'center'
  73. },
  74. {
  75. field: 'reportErBanNo',
  76. title: '举报的卿卿号',
  77. align : 'center'
  78. },
  79. {
  80. field: 'reportNick',
  81. title: '举报的用户昵称',
  82. align : 'center'
  83. },
  84. {
  85. field: 'url',
  86. title: '头像',
  87. align : 'center',
  88. formatter:function (value,row,index) {
  89. return "<img src='" + value + "' width='70' height='60'>";
  90. }
  91. },
  92. {
  93. field: 'ip',
  94. title: 'IP',
  95. align : 'center'
  96. },
  97. {
  98. field: 'deviceId',
  99. title: '设备号',
  100. align : 'center'
  101. },
  102. {
  103. field: 'reportType',
  104. title: '举报类型',
  105. align : 'center',
  106. formatter: function(value, row, index) {
  107. return $.table.selectDictLabel(reportType, value);
  108. }
  109. },
  110. {
  111. field: 'status',
  112. title: '状态',
  113. align : 'center',
  114. formatter: function(value, row, index) {
  115. return $.table.selectDictLabel(reportStatus, value);
  116. }
  117. },
  118. {
  119. field: 'adminName',
  120. title: '操作人',
  121. align : 'center'
  122. },
  123. {
  124. field: 'createDate',
  125. title: '时间',
  126. align : 'center'
  127. },
  128. {
  129. title: '操作',
  130. align: 'center',
  131. formatter: function(value, row, index) {
  132. var actions = [];
  133. if(row.status == 2){
  134. actions.push('<a class="btn btn-success btn-xs ' + bannedFlag + '" href="javascript:void(0)" onclick="banned(\'' + row.id + '\',\'' + row.erBanNo + '\')"><i class="fa fa-ban"></i> 禁言处罚</a> ');
  135. actions.push('');
  136. actions.push('');
  137. actions.push('<a class="btn btn-primary btn-xs ' + blockFlag + '" href="javascript:void(0)" onclick="block(\'' + row.id + '\',\'' + row.erBanNo + '\')"><i class="fa fa-exclamation-circle"></i> 封禁处罚</a> ');
  138. actions.push('');
  139. actions.push('');
  140. 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>');
  141. }
  142. return actions.join('');
  143. }
  144. }]
  145. };
  146. $.table.init(options);
  147. });
  148. function banned(id,erBanNo){
  149. var url = prefix + "/banned?id=" + id + "&erBanNo=" + erBanNo ;
  150. $.modal.open("禁言处罚",url,'800','400');
  151. }
  152. function block(id,erBanNo){
  153. var url = prefix + "/block?id=" + id + "&erBanNo=" + erBanNo ;
  154. $.modal.open("封禁处罚",url,'800','400');
  155. }
  156. function ignore(id) {
  157. $.modal.confirm("确认要忽略吗?", function () {
  158. $.operate.post(prefix + "/ignore?id=" + id);
  159. });
  160. }
  161. </script>
  162. </body>
  163. </html>