From 2a4ce4b3f7a455251b6e72e0c1f907f650aecd17 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 15 十月 2020 19:32:08 +0800
Subject: [PATCH] 添加底库权限控制

---
 src/pages/library/components/carList.vue    |   15 +++++++--------
 src/pages/library/components/baseList.vue   |   20 ++++++++++----------
 src/pages/library/components/personList.vue |   17 +++++++++--------
 3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/src/pages/library/components/baseList.vue b/src/pages/library/components/baseList.vue
index d714f17..4e80915 100644
--- a/src/pages/library/components/baseList.vue
+++ b/src/pages/library/components/baseList.vue
@@ -12,13 +12,13 @@
             class="el-icon-circle-plus-outline ml10"
             style="font-size:20px;color:#3D68E1;"
             @click.stop="add('sync')"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           ></i>
           <span
             class="ml5"
             style="font-size:14px;color:#3D68E1;"
             @click.stop="add('sync')"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           >鏂板</span>
         </template>
         <div class="max-height">
@@ -52,14 +52,14 @@
                 <span
                   class="iconfont iconbianji iconStyle1"
                   @click.stop="edit(item,'sync')"
-                  v-if="isShow('videoTable:edit')"
+                  v-if="isShow('library:set')"
                 ></span>
               </el-tooltip>
               <el-tooltip content="鍒犻櫎" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconshanchu iconStyle1"
                   style="color:#E74C3C;"
-                  v-if="isShow('videoTable:edit')"
+                  v-if="isShow('library:set')"
                   @click.stop="deleteBase(item.id)"
                 ></span>
               </el-tooltip>
@@ -80,13 +80,13 @@
             class="el-icon-circle-plus-outline ml10"
             style="font-size:20px;color:#3D68E1;"
             @click.stop="add('local')"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           ></i>
           <span
             class="ml5"
             style="font-size:14px;color:#3D68E1;"
             @click.stop="add('local')"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           >鏂板</span>
         </template>
         <div class="max-height">
@@ -118,14 +118,14 @@
                 <span
                   class="iconfont iconbianji iconStyle1"
                   @click.stop="edit(item,'local')"
-                  v-if="isShow('videoTable:edit')"
+                  v-if="isShow('library:set')"
                 ></span>
               </el-tooltip>
               <el-tooltip content="鍒犻櫎" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconshanchu iconStyle1"
                   style="color:#E74C3C;"
-                  v-if="isShow('videoTable:edit')"
+                  v-if="isShow('library:set')"
                   @click.stop="deleteBase(item.id)"
                 ></span>
               </el-tooltip>
@@ -222,7 +222,7 @@
     },
     isDisabled(item) {
       var flag = true
-      if (this.isShow('videoTable:edit')) {
+      if (this.isShow('library:set')) {
         if (item.endTime == "") {
           flag = false
         } else {
@@ -329,7 +329,7 @@
     },
     // 宸︿晶搴曞簱鐢熸晥寮�鍏虫槸鍚﹀惎鐢ㄥ垽鏂�
     // isDisa(data) {
-    //   if (!this.isShow('videoTable:edit')) {
+    //   if (!this.isShow('library:set')) {
     //     return true
     //   } else {
     //     return false
diff --git a/src/pages/library/components/carList.vue b/src/pages/library/components/carList.vue
index 0b4f134..c502700 100644
--- a/src/pages/library/components/carList.vue
+++ b/src/pages/library/components/carList.vue
@@ -40,13 +40,13 @@
         <el-button size="small" type="primary" @click="handleSearch">鎼滅储</el-button>
       </el-col>
       <el-col :offset="8" :span="3">
-        <fTemplate authority="videoTable:edit">
+        <fTemplate authority="library:set">
           <el-button
             size="small"
             class="ml10"
             type="danger"
             @click="deleteBatch"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           >鎵归噺鍒犻櫎</el-button>
         </fTemplate>
       </el-col>
@@ -196,7 +196,6 @@
         tooltip-effect="dark"
         style="width: 100%;"
         :fit="true"
-      
         :default-sort="{prop: 'createTime', order: 'descending'}"
         @selection-change="handleSelectionChange"
         :header-cell-style="{background:'#f8f8f8',color:'#222222'}"
@@ -272,7 +271,7 @@
             <el-switch
               v-model="scope.row.enable"
               :active-value="1"
-              :disabled="!isShow('videoTable:edit')"
+              :disabled="!isShow('library:set')"
               :inactive-value="0"
               @change="enable(scope.row)"
             ></el-switch>
@@ -280,7 +279,7 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" min-width="200" align="center">
           <template slot-scope="scope">
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="缂栬緫" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconbianji iconStyle1"
@@ -292,7 +291,7 @@
             <el-tooltip content="鏌ユ壘姝や汉" placement="top" popper-class="atooltip">
               <span class="iconfont iconsousuoren iconStyle1" @click="tosearch(scope.row)"></span>
             </el-tooltip>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="澶嶅埗" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconfuzhi iconStyle1"
@@ -301,7 +300,7 @@
                 ></span>
               </el-tooltip>
             </fTemplate>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="绉诲姩" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconyidongzhi iconStyle1"
@@ -311,7 +310,7 @@
                 ></span>
               </el-tooltip>
             </fTemplate>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="鍒犻櫎" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconshanchu iconStyle1"
diff --git a/src/pages/library/components/personList.vue b/src/pages/library/components/personList.vue
index c91f58e..54eb6de 100644
--- a/src/pages/library/components/personList.vue
+++ b/src/pages/library/components/personList.vue
@@ -42,13 +42,13 @@
         <el-button size="small" type="primary" @click="handleSearch">鎼滅储</el-button>
       </el-col>
       <el-col :offset="11" :span="3">
-        <fTemplate authority="videoTable:edit">
+        <fTemplate authority="library:set">
           <el-button
             size="small"
             class="ml10"
             type="danger"
             @click="deleteBatch"
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
           >鎵归噺鍒犻櫎</el-button>
         </fTemplate>
       </el-col>
@@ -59,7 +59,7 @@
             limitSize
             uploadBtntext="涓婁紶鐓х墖"
             uploadBtnIcon
-            v-if="isShow('videoTable:edit')"
+            v-if="isShow('library:set')"
             uploadBtnSize="small"
             :isDrag="true"
             @addFilesBaBackFN="changeDialog"
@@ -135,7 +135,7 @@
             <el-switch
               v-model="scope.row.enable"
               :active-value="1"
-              :disabled="!isShow('videoTable:edit')"
+              :disabled="!isShow('library:set')"
               :inactive-value="0"
               @change="enable(scope.row)"
             ></el-switch>
@@ -143,7 +143,7 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" min-width="200" align="center">
           <template slot-scope="scope">
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="缂栬緫" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconbianji iconStyle1"
@@ -158,7 +158,7 @@
             <el-tooltip content="鏌ョ湅璇︽儏" placement="top" popper-class="atooltip">
               <span class="iconfont iconsousuoren iconStyle1" @click="showDetail(scope.row)"></span>
             </el-tooltip>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="澶嶅埗" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconfuzhi iconStyle1"
@@ -167,7 +167,7 @@
                 ></span>
               </el-tooltip>
             </fTemplate>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="绉诲姩" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconyidongzhi iconStyle1"
@@ -177,7 +177,7 @@
                 ></span>
               </el-tooltip>
             </fTemplate>
-            <fTemplate authority="videoTable:edit">
+            <fTemplate authority="library:set">
               <el-tooltip content="鍒犻櫎" placement="top" popper-class="atooltip">
                 <span
                   class="iconfont iconshanchu iconStyle1"
@@ -1289,6 +1289,7 @@
 }
 
 .avatar-uploader {
+  margin: auto;
   max-width: 150px;
   min-width: 150px;
   min-height: 152px;

--
Gitblit v1.8.0