detail.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. <input id="id" name="id" th:value="${id}" type="hidden">
  9. <input id="uid" name="uid" th:value="${users.uid}" type="hidden">
  10. <div class="row">
  11. <div class="btn-group-sm" id="toolbar" role="group">
  12. <span style="color: red">被举报的卿卿号:</span><span id="erbanNo" th:text="${users.erbanNo}"></span>
  13. <span style="color: red">被举报的用户昵称:</span><span id="nick" th:text="${users.nick}"></span>
  14. </div>
  15. <div class="col-sm-12 select-table table-striped">
  16. <table id="bootstrap-table" data-mobile-responsive="false"></table>
  17. </div>
  18. </div>
  19. </div>
  20. <th:block th:include="include :: footer" />
  21. <script th:inline="javascript">
  22. var bannedFlag = [[${@permission.hasPermi('review:album:banned:punish')}]];
  23. var blockFlag = [[${@permission.hasPermi('review:album:block:punish')}]];
  24. var reportType = [[${@dict.getType('report_type')}]];
  25. var prefix = ctx + "review/album";
  26. var id = $("#id").val();
  27. $(function() {
  28. var options = {
  29. url: prefix + "/albums?id=" + id,
  30. modalName: "用户相册信息",
  31. height: $(window).height()-120,
  32. columns: [
  33. {
  34. field: 'id',
  35. title: 'ID',
  36. align : 'center'
  37. },
  38. {
  39. field: 'erBanNo',
  40. title: '被举报的卿卿号'
  41. },
  42. {
  43. field: 'nick',
  44. title: '被举报的用户昵称',
  45. align : 'center'
  46. },
  47. {
  48. field: 'ip',
  49. title: 'IP',
  50. align : 'center'
  51. },
  52. {
  53. field: 'deviceId',
  54. title: '设备号',
  55. align : 'center'
  56. },
  57. {
  58. field: 'reportType',
  59. title: '举报类型',
  60. align : 'center',
  61. formatter: function(value, row, index) {
  62. return $.table.selectDictLabel(reportType, value);
  63. }
  64. },
  65. {
  66. field: 'url',
  67. title: '头像',
  68. align : 'center',
  69. formatter:function (value,row,index) {
  70. return "<img src='" + value + "' width='70' height='60'>";
  71. }
  72. },
  73. {
  74. title: '操作',
  75. align: 'center',
  76. formatter: function(value, row, index) {
  77. var actions = [];
  78. if(row.status == 2){
  79. 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> ');
  80. actions.push('');
  81. actions.push('');
  82. 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> ');
  83. }
  84. return actions.join('');
  85. }
  86. }]
  87. };
  88. $.table.init(options);
  89. });
  90. function banned(id,erBanNo){
  91. var url = prefix + "/banned?id=" + id + "&erBanNo=" + erBanNo ;
  92. $.modal.open("禁言处罚",url,'800','400');
  93. }
  94. function block(id,erBanNo){
  95. var url = prefix + "/block?id=" + id + "&erBanNo=" + erBanNo ;
  96. $.modal.open("封禁处罚",url,'800','400');
  97. }
  98. </script>
  99. </body>
  100. </html>