邻里互助审核
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
<el-button type="text" @click="gag(row.createUserId, row.blacklist)">{{ row.blacklist ? '解除禁言' : '禁言' }}</el-button>
|
||||
<el-button type="text" v-if="!row.status" @click="admin(row)">审核</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -172,6 +173,36 @@
|
||||
id: id || ''
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
admin(row) {
|
||||
console.log(row)
|
||||
this.$confirm('是否审核通过该条帖子?', {
|
||||
distinguishCancelAndClose: true,
|
||||
confirmButtonText: '通过',
|
||||
closeOnClickModal: true,
|
||||
cancelButtonText: '拒绝'
|
||||
}).then((e) => {
|
||||
console.log(1,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) => {
|
||||
console.log(2,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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user