|
@@ -47,14 +47,19 @@
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="openTeaching('update', scope.row)"
|
|
|
+ v-if="!scope.row.memo || permission('banner/copyrightbtn')"
|
|
|
type="text">修改</el-button>
|
|
|
- <el-button v-if="scope.row.status == 1"
|
|
|
+ <div style="display: inline-block" v-if="!scope.row.memo || permission('banner/copyrightbtn')">
|
|
|
+ <el-button v-if="scope.row.status == 1"
|
|
|
@click="onStop(scope.row, 0)"
|
|
|
type="text">停用</el-button>
|
|
|
- <el-button v-else
|
|
|
+ <el-button v-else
|
|
|
@click="onStop(scope.row, 1)"
|
|
|
type="text">启用</el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
<el-button @click="onDel(scope.row)"
|
|
|
+ v-if="!scope.row.memo || permission('banner/copyrightbtn')"
|
|
|
type="text">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -71,6 +76,7 @@
|
|
|
import { newsList, newsUpdate, newsDel } from '@/api/contentManager'
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
import store from '@/store'
|
|
|
+import { permission } from '@/utils/directivePage'
|
|
|
export default {
|
|
|
name: 'banner',
|
|
|
components: {
|
|
@@ -97,6 +103,9 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ permission (str) {
|
|
|
+ return permission(str)
|
|
|
+ },
|
|
|
getList () {
|
|
|
let params = {
|
|
|
rows: this.pageInfo.limit,
|