|
|
@@ -29,6 +29,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" min-width="200px" label="帖子标题" prop="title">
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="center" min-width="80px" label="积分" prop="integral">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" min-width="150px" label="回复时间" prop="createTime">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" min-width="100px" label="审批状态" prop="statusName">
|
|
|
@@ -36,7 +38,7 @@
|
|
|
<el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" size="small" @click="handleView(scope.row,'view')">查看</el-button>
|
|
|
- <el-button type="success" size="small" @click="handleView(scope.row,'complete')">处理</el-button>
|
|
|
+ <el-button v-if="scope.row.status==1" type="success" size="small" @click="handleView(scope.row,'complete')">处理</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -321,7 +323,7 @@ export default {
|
|
|
},
|
|
|
complete(flag) {
|
|
|
const parms = {
|
|
|
- postId:this.postId,
|
|
|
+ commentId:this.commentId,
|
|
|
comment: this.comment,
|
|
|
flag:flag,
|
|
|
}
|
|
|
@@ -369,7 +371,8 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
handleView(row,val){
|
|
|
- this.postId = row.postId,
|
|
|
+ this.postId = row.postId;
|
|
|
+ this.commentId = row.id;
|
|
|
getDetailInfo({postId:row.postId}).then(response => {
|
|
|
this.data = response.data.data.data;
|
|
|
this.data.forEach(item => {
|