|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
* @Author: zhangjiabao
|
|
|
|
|
* @Date: 2024-02-01 22:15:37
|
|
|
|
|
* @LastEditors: zhangjiabao
|
|
|
|
|
* @LastEditTime: 2024-02-06 13:52:55
|
|
|
|
|
* @FilePath: /luoo_manage_fe/src/views/comment/commentReport.vue
|
|
|
|
|
* @LastEditTime: 2024-02-21 00:06:38
|
|
|
|
|
* @FilePath: \luoo_manage_fe\src\views\comment\commentReport.vue
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
@ -16,12 +16,14 @@
|
|
|
|
|
<el-input
|
|
|
|
|
placeholder="评论内容"
|
|
|
|
|
size="medium"
|
|
|
|
|
disabled
|
|
|
|
|
v-model="queryForm.data.qf_d_content"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<!-- :disabled="queryForm.typeLoading" -->
|
|
|
|
|
<el-select
|
|
|
|
|
:disabled="queryForm.typeLoading"
|
|
|
|
|
disabled
|
|
|
|
|
placeholder="举报类型"
|
|
|
|
|
size="medium"
|
|
|
|
|
v-model="queryForm.data.qf_d_type"
|
|
|
|
@ -39,6 +41,7 @@
|
|
|
|
|
v-model="queryForm.data.qf_d_user"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
disabled
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="请选择用户"
|
|
|
|
|
:loading="queryForm.userLoading"
|
|
|
|
@ -58,6 +61,7 @@
|
|
|
|
|
placeholder="评论时间"
|
|
|
|
|
v-model="queryForm.data.qf_d_time"
|
|
|
|
|
type="daterange"
|
|
|
|
|
disabled
|
|
|
|
|
:range-separator="
|
|
|
|
|
queryForm.data.qf_d_time.length === 0 ? null : '~'
|
|
|
|
|
"
|
|
|
|
@ -111,25 +115,29 @@
|
|
|
|
|
{{ scope.$index + 1 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="index" label="编号"></el-table-column>
|
|
|
|
|
<el-table-column label="举报类型"></el-table-column>
|
|
|
|
|
<el-table-column label="举报人"></el-table-column>
|
|
|
|
|
<el-table-column label="举报时间"></el-table-column>
|
|
|
|
|
<el-table-column prop="commentId" label="编号"></el-table-column>
|
|
|
|
|
<el-table-column prop="type" label="举报类型"></el-table-column>
|
|
|
|
|
<el-table-column prop="complaintFrom" label="举报人"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="complaintTime"
|
|
|
|
|
label="举报时间"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="举报关联">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="mini"
|
|
|
|
|
v-if="scope.row.journalId"
|
|
|
|
|
@click="jumpToJournal(scope.row.journalId)"
|
|
|
|
|
>{{ scope.row.journalId }}</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="举报对象"></el-table-column>
|
|
|
|
|
<el-table-column label="举报状态"></el-table-column>
|
|
|
|
|
<el-table-column label="处理结果"></el-table-column>
|
|
|
|
|
<el-table-column label="处理人"></el-table-column>
|
|
|
|
|
<el-table-column label="处理时间"></el-table-column>
|
|
|
|
|
<el-table-column prop="complaintTo" label="举报对象"></el-table-column>
|
|
|
|
|
<el-table-column prop="state" label="举报状态"></el-table-column>
|
|
|
|
|
<el-table-column prop="handleResult" label="处理结果"></el-table-column>
|
|
|
|
|
<el-table-column prop="handleBy" label="处理人"></el-table-column>
|
|
|
|
|
<el-table-column prop="handleTime" label="处理时间"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -137,7 +145,7 @@
|
|
|
|
|
icon="el-icon-video-play"
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDetailClick"
|
|
|
|
|
@click="handleDetailClick(scope.row)"
|
|
|
|
|
>详情</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
@ -145,7 +153,7 @@
|
|
|
|
|
icon="el-icon-s-tools"
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleReportHandleClick"
|
|
|
|
|
@click="handleReportHandleClick(scope.row)"
|
|
|
|
|
>处理</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
@ -234,31 +242,20 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
fetchData() {
|
|
|
|
|
this.table.loading = true;
|
|
|
|
|
// commentApi
|
|
|
|
|
// .getList(this.table.page.current, this.table.page.size)
|
|
|
|
|
// .then(res => {
|
|
|
|
|
// if (res.code === 200) {
|
|
|
|
|
// this.table.data = res.data.rows;
|
|
|
|
|
// this.table.page.total = res.data.total;
|
|
|
|
|
// this.table.loading = false;
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message.error(res.message);
|
|
|
|
|
// this.table.data = [];
|
|
|
|
|
// this.table.page.total = 0;
|
|
|
|
|
// this.table.loading = false;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.table.data = [];
|
|
|
|
|
for (let index = 0; index < 10; index++) {
|
|
|
|
|
this.table.data.push({
|
|
|
|
|
id: index,
|
|
|
|
|
index: index
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.table.loading = false;
|
|
|
|
|
this.table.page.total = 11;
|
|
|
|
|
}, 1000);
|
|
|
|
|
commentApi
|
|
|
|
|
.getReportList(this.table.page.current, this.table.page.size)
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.table.data = res.data.rows;
|
|
|
|
|
this.table.page.total = res.data.total;
|
|
|
|
|
this.table.loading = false;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
this.table.data = [];
|
|
|
|
|
this.table.page.total = 0;
|
|
|
|
|
this.table.loading = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fetchTypeData() {
|
|
|
|
|
this.queryForm.typeLoading = true;
|
|
|
|
@ -345,9 +342,8 @@ export default {
|
|
|
|
|
* 详情操作
|
|
|
|
|
*/
|
|
|
|
|
handleDetailClick(row) {
|
|
|
|
|
this.$message.success("detail" + row.id);
|
|
|
|
|
this.$router.push(
|
|
|
|
|
`/contentManage/commentReportDetail?type=0&id=${row.id}`
|
|
|
|
|
`/contentManage/commentReportDetail?type=0&id=${row._id}`
|
|
|
|
|
);
|
|
|
|
|
// commentApi.delete(row._id).then(res => {
|
|
|
|
|
// if (res.code === 200) {
|
|
|
|
@ -362,9 +358,8 @@ export default {
|
|
|
|
|
* 举报处理
|
|
|
|
|
*/
|
|
|
|
|
handleReportHandleClick(row) {
|
|
|
|
|
this.$message.success("handle" + row.id);
|
|
|
|
|
this.$router.push(
|
|
|
|
|
`/contentManage/commentReportDetail?type=1&id=${row.id}`
|
|
|
|
|
`/contentManage/commentReportDetail?type=1&id=${row._id}`
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
handleTypeManageClick() {
|
|
|
|
|