album.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 detailFlag = [[${@permission.hasPermi('review:album:detail')}]];
  50. var ignoreFlag = [[${@permission.hasPermi('review:album:ignore')}]];
  51. var reportType = [[${@dict.getType('report_type')}]];
  52. var reportStatus = [[${@dict.getType('report_status')}]];
  53. var prefix = ctx + "review/album";
  54. $(function() {
  55. var options = {
  56. url: prefix + "/list",
  57. modalName: "相册举报管理",
  58. height: $(window).height()-120,
  59. columns: [
  60. {
  61. field: 'id',
  62. title: 'ID'
  63. },
  64. {
  65. field: 'erBanNo',
  66. title: '被举报的卿卿号'
  67. },
  68. {
  69. field: 'nick',
  70. title: '被举报的用户昵称',
  71. align : 'center'
  72. },
  73. {
  74. field: 'reportErBanNo',
  75. title: '举报的卿卿号',
  76. align : 'center'
  77. },
  78. {
  79. field: 'reportNick',
  80. title: '举报的用户昵称',
  81. align : 'center'
  82. },
  83. {
  84. field: 'ip',
  85. title: 'IP',
  86. align : 'center'
  87. },
  88. {
  89. field: 'deviceId',
  90. title: '设备号',
  91. align : 'center'
  92. },
  93. {
  94. field: 'reportType',
  95. title: '举报类型',
  96. align : 'center',
  97. formatter: function(value, row, index) {
  98. return $.table.selectDictLabel(reportType, value);
  99. }
  100. },
  101. {
  102. field: 'status',
  103. title: '状态',
  104. align : 'center',
  105. formatter: function(value, row, index) {
  106. return $.table.selectDictLabel(reportStatus, value);
  107. }
  108. },
  109. {
  110. field: 'adminName',
  111. title: '操作人',
  112. align : 'center'
  113. },
  114. {
  115. field: 'createDate',
  116. title: '时间',
  117. align : 'center'
  118. },
  119. {
  120. title: '操作',
  121. align: 'center',
  122. formatter: function(value, row, index) {
  123. var actions = [];
  124. actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.id + '\',\'' + row.erBanNo + '\')"><i class="fa fa-drivers-license"></i> 详情</a> ');
  125. actions.push('');
  126. actions.push('');
  127. 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>');
  128. return actions.join('');
  129. }
  130. }]
  131. };
  132. $.table.init(options);
  133. });
  134. function ignore(id) {
  135. $.modal.confirm("确认要忽略吗?", function () {
  136. $.operate.post(prefix + "/ignore?id=" + id);
  137. });
  138. }
  139. function detail(id,erBanNo){
  140. var url = prefix + "/detail?id=" + id + "&erBanNo=" + erBanNo;
  141. $.modal.open("详情",url,'900','650');
  142. }
  143. </script>
  144. </body>
  145. </html>