|
@@ -91,9 +91,13 @@
|
|
<el-table-column prop="end" label="到期时间" width=""></el-table-column>
|
|
<el-table-column prop="end" label="到期时间" width=""></el-table-column>
|
|
<el-table-column prop="created_at" label="创建时间" width=""></el-table-column>
|
|
<el-table-column prop="created_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">
|
|
<template slot-scope="scope">
|
|
<div class="listBtnBox">
|
|
<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
|
|
<div class="listDeleteBtn" @click="deleteRow(scope.row.id, tableData)"><i
|
|
class="el-icon-delete"></i>删除</div>
|
|
class="el-icon-delete"></i>删除</div>
|
|
<div class="listEditBtn" @click="goEdit(scope.row.id, tableData)"><i
|
|
<div class="listEditBtn" @click="goEdit(scope.row.id, tableData)"><i
|
|
@@ -124,7 +128,8 @@
|
|
//表格标题
|
|
//表格标题
|
|
import tableTitle from './components/tableTitle';
|
|
import tableTitle from './components/tableTitle';
|
|
//引入公用样式
|
|
//引入公用样式
|
|
-import '@/styles/global.less';
|
|
|
|
|
|
+import '@/styles/global.less'; import { getUseType } from '@/utils/auth'
|
|
|
|
+
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -152,6 +157,20 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
|
|
+
|
|
|
|
+ returnRow(id) {
|
|
|
|
+ this.$confirm('确定要撤回吗?', '提示', {
|
|
|
|
+ confirmButtonText: '撤回',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ //撤回,把文章状态修改为0,重新进行审核
|
|
|
|
+ this.upRow(id, 1);
|
|
|
|
+ this.getData();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //1.3 修改网站状态
|
|
|
|
+
|
|
//1.1 开始请求列表信息方法
|
|
//1.1 开始请求列表信息方法
|
|
getData(type) {
|
|
getData(type) {
|
|
if (type == "search") {
|
|
if (type == "search") {
|
|
@@ -201,8 +220,9 @@ export default {
|
|
id: id,
|
|
id: id,
|
|
status: status
|
|
status: status
|
|
}
|
|
}
|
|
- this.$store.dispatch('news/upArticleStatus', data).then(res => {
|
|
|
|
|
|
+ this.$store.dispatch('news/updateNoticeStatus', data).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
+ this.getData();
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: '通知状态已修改!'
|
|
message: '通知状态已修改!'
|
|
@@ -258,6 +278,7 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
//1.获得初始数据
|
|
//1.获得初始数据
|
|
this.getData();
|
|
this.getData();
|
|
|
|
+ this.type_id = getUseType()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|