123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
- <head>
- <th:block th:include="include :: header('用户相册信息管理')" />
- </head>
- <body class="gray-bg">
- <div class="container-div">
- <input id="id" name="id" th:value="${id}" type="hidden">
- <input id="uid" name="uid" th:value="${users.uid}" type="hidden">
- <div class="row">
- <div class="btn-group-sm" id="toolbar" role="group">
- <span style="color: red">被举报的卿卿号:</span><span id="erbanNo" th:text="${users.erbanNo}"></span>
- <span style="color: red">被举报的用户昵称:</span><span id="nick" th:text="${users.nick}"></span>
- </div>
- <div class="col-sm-12 select-table table-striped">
- <table id="bootstrap-table" data-mobile-responsive="false"></table>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <script th:inline="javascript">
- var bannedFlag = [[${@permission.hasPermi('review:album:banned:punish')}]];
- var blockFlag = [[${@permission.hasPermi('review:album:block:punish')}]];
- var reportType = [[${@dict.getType('report_type')}]];
- var prefix = ctx + "review/album";
- var id = $("#id").val();
- $(function() {
- var options = {
- url: prefix + "/albums?id=" + id,
- modalName: "用户相册信息",
- height: $(window).height()-120,
- columns: [
- {
- field: 'id',
- title: 'ID',
- align : 'center'
- },
- {
- field: 'erBanNo',
- title: '被举报的卿卿号'
- },
- {
- field: 'nick',
- title: '被举报的用户昵称',
- align : 'center'
- },
- {
- field: 'ip',
- title: 'IP',
- align : 'center'
- },
- {
- field: 'deviceId',
- title: '设备号',
- align : 'center'
- },
- {
- field: 'reportType',
- title: '举报类型',
- align : 'center',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(reportType, value);
- }
- },
- {
- field: 'url',
- title: '头像',
- align : 'center',
- formatter:function (value,row,index) {
- return "<img src='" + value + "' width='70' height='60'>";
- }
- },
- {
- title: '操作',
- align: 'center',
- formatter: function(value, row, index) {
- var actions = [];
- if(row.status == 2){
- 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> ');
- actions.push('');
- actions.push('');
- 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> ');
- }
- return actions.join('');
- }
- }]
- };
- $.table.init(options);
- });
- function banned(id,erBanNo){
- var url = prefix + "/banned?id=" + id + "&erBanNo=" + erBanNo ;
- $.modal.open("禁言处罚",url,'800','400');
- }
- function block(id,erBanNo){
- var url = prefix + "/block?id=" + id + "&erBanNo=" + erBanNo ;
- $.modal.open("封禁处罚",url,'800','400');
- }
- </script>
- </body>
- </html>
|