|
@@ -78,9 +78,11 @@
|
|
|
|
|
|
<el-table-column prop="updated_at" label="修改时间" width=""></el-table-column>
|
|
|
|
|
|
- <el-table-column fixed="right" label="操作" width="200" header-align="center">
|
|
|
+ <el-table-column fixed="right" label="操作" width="300" header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="listBtnBox">
|
|
|
+ <div class="listUpBtn" v-if="type_id == 10000" @click="returnRow(scope.row.id, tableData)"><i
|
|
|
+ class="el-icon-refresh-right"></i>撤回</div>
|
|
|
<div class="listDeleteBtn" @click="deleteRow(scope.row.id, tableData)"><i
|
|
|
class="el-icon-delete"></i>删除</div>
|
|
|
<div class="listEditBtn" @click="goEdit(scope.row.id, tableData)"><i
|
|
@@ -158,6 +160,17 @@ export default {
|
|
|
this.allCount = res.data.count; //给与总条数
|
|
|
})
|
|
|
},
|
|
|
+ // 1.2.1 撤回
|
|
|
+ returnRow(id) {
|
|
|
+ this.$confirm('确定要撤回吗?', '提示', {
|
|
|
+ confirmButtonText: '撤回',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ //撤回,把文章状态修改为0,重新进行审核
|
|
|
+ this.upRow(id, 1)
|
|
|
+ })
|
|
|
+ },
|
|
|
//1.2 删除内容
|
|
|
deleteRow(id) {
|
|
|
this.$confirm('此操作将永久删除该条数据, 是否继续?', '提示', {
|
|
@@ -195,8 +208,9 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
- message: '通知状态已修改!'
|
|
|
+ message: '审核状态已修改!'
|
|
|
});
|
|
|
+ this.getData();
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
this.$message({
|