门户后台-举报管理功能完善

This commit is contained in:
Renpc-kilig 2024-08-29 12:03:00 +08:00
parent c5cf944e1e
commit abef8964e3
2 changed files with 21 additions and 3 deletions

View File

@ -341,7 +341,7 @@
#{newsIds[${index}]}
</foreach>
</if>
ORDER BY t1.id DESC
ORDER BY t1.publish_time DESC
</select>
<!-- 新闻表列表 -->

View File

@ -105,10 +105,28 @@
return '-';
}
if(1 == rowData) {
return '已处理';
return '<p style="color: green;">已处理</p>';
}
if(0 == rowData) {
return '未处理';
return '<p style="color: red;">未处理</p>';
}
return rowData;
}
},
{field: 'gmtCreate', width: 180, title: '举报时间', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
},
{field: 'handleContent', width: 180, title: '处理结果', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}