Browse Source

修改对应权限问题

lex-xin 5 years ago
parent
commit
5d9b5c4907

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-3de8ba38.cc01a364.css → dist/static/css/chunk-6c979a3e.bc87c9ba.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-2df4f1a0],.bannerImg[data-v-5f99549c],.bannerImg[data-v-6aa73098],.bannerImg[data-v-253ea32e],.bannerImg[data-v-718fa087],.bannerImg[data-v-64951acc]{height:60px}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.bannerImg[data-v-2df4f1a0],.bannerImg[data-v-6aa73098],.bannerImg[data-v-27dd613c],.bannerImg[data-v-253ea32e],.bannerImg[data-v-718fa087],.bannerImg[data-v-64951acc]{height:60px}

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.561e6169.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3de8ba38.a2cd77c3.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-6c979a3e.459df882.js


+ 11 - 2
src/views/contentManager/components/banner.vue

@@ -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,

Some files were not shown because too many files changed in this diff