diff --git a/packages/conv/neighbor2neighbor/AppHelp/components/List.vue b/packages/conv/neighbor2neighbor/AppHelp/components/List.vue index 4e1cbdd1..41285d67 100644 --- a/packages/conv/neighbor2neighbor/AppHelp/components/List.vue +++ b/packages/conv/neighbor2neighbor/AppHelp/components/List.vue @@ -49,6 +49,7 @@ 详情 删除 {{ row.blacklist ? '解除禁言' : '禁言' }} + 审核 @@ -77,7 +78,7 @@ }, total: 0, colConfigs: [ - { prop: 'content', label: '内容', align: 'left' }, + { prop: 'content', label: '帖子内容', align: 'left' }, { prop: 'createUserName', label: '发帖人', align: 'center', width: '120' }, { prop: 'createUserAreaName', label: '所属地区', align: 'center' }, { prop: 'createTime', label: '创建时间', align: 'center' }, @@ -85,6 +86,7 @@ { prop: 'appreciateCount', label: '点赞数', align: 'center', width: '120' }, { prop: 'sharedCount', label: '分享数', align: 'center', width: '120' }, { prop: 'blacklist', label: '状态', align: 'center', format: v => v ? '禁言' : '正常' }, + { prop: 'status', label: '审核状态', align: 'center', width: '120', dict: 'auditStatus' }, { slot: 'options'}, ], tableData: [], @@ -100,7 +102,9 @@ created() { this.search.areaId = this.user.info.areaId - this.getList() + this.dict.load('auditStatus').then(() => { + this.getList() + }) }, methods: { @@ -172,6 +176,34 @@ id: id || '' } }) + }, + + admin(row) { + console.log(row) + this.$confirm('是否审核通过该条帖子?', { + distinguishCancelAndClose: true, + confirmButtonText: '通过', + closeOnClickModal: true, + cancelButtonText: '拒绝' + }).then((e) => { + this.instance.post(`/app/appneighborhoodassistance/examine?id=${row.id}&pass=1`).then(res => { + if (res.code == 0) { + this.$message.success('审核成功!') + this.search.current = 1 + this.getList() + } + }) + }).catch((e) => { + if(e == 'cancel') { + this.instance.post(`/app/appneighborhoodassistance/examine?id=${row.id}&pass=0`).then(res => { + if (res.code == 0) { + this.$message.success('审核成功!') + this.search.current = 1 + this.getList() + } + }) + } + }) } } } diff --git a/project/biaopin/AppFormReview/AppGridReview.vue b/project/biaopin/AppFormReview/AppFormReview.vue similarity index 94% rename from project/biaopin/AppFormReview/AppGridReview.vue rename to project/biaopin/AppFormReview/AppFormReview.vue index f5b990bd..eea7e035 100644 --- a/project/biaopin/AppFormReview/AppGridReview.vue +++ b/project/biaopin/AppFormReview/AppFormReview.vue @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ import Detail from './components/Detail' export default { - name: 'AppGridReview', + name: 'AppFormReview', label: '网格动态', props: { @@ -56,7 +56,7 @@