From a2ebd9a92a375b0b6898d532d3fee782b5fd8f49 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 15 十月 2020 19:22:57 +0800
Subject: [PATCH] 修复权限设置

---
 src/pages/vindicate/index/App.vue |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue
index e41e502..7f0e417 100644
--- a/src/pages/vindicate/index/App.vue
+++ b/src/pages/vindicate/index/App.vue
@@ -1,13 +1,12 @@
 <template>
   <div class="s-system-manage">
     <el-tabs
-      
       id="systemMaintenance"
       v-model="activeName"
       v-loading="loading"
       :element-loading-text="loadingText"
     >
-      <el-tab-pane label="璁惧缁存姢" name="first">
+      <el-tab-pane label="璁惧缁存姢" name="device" v-if="isShow('vindicate:device')">
         <div class="s-system-maintenance">
           <div class="box-card">
             <div class="ui-top-view">
@@ -123,7 +122,7 @@
           </div>
         </div>
       </el-tab-pane>
-      <el-tab-pane label="鏁版嵁搴撶淮鎶�" name="second">
+      <el-tab-pane label="鏁版嵁搴撶淮鎶�" name="dbvdc" v-if="isShow('vindicate:db')">
         <div class="box">
           <p class="title">
             <label>鏁版嵁娓呯悊</label>
@@ -172,7 +171,7 @@
       timer: null,
       buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [],
       rebootCron: "",
-      activeName: "first",
+      activeName: "device",
       restartValue: "涓嶉噸鍚�",
       restartTimeValue: new Date(2019, 9, 10, 18, 40),
       loading: false,
@@ -193,14 +192,13 @@
         },
       },
       upgrading: false,
-      fileAdded: false
+      fileAdded: false,
     };
   },
   mounted() {
     this.getRebootCron()
-    if (!this.isShow('videoSystem:sysManage:sysfix')) {
-      console.log("榛樿鏄剧ず鏁版嵁搴撶淮鎶�")
-      this.activeName = "second"
+    if (!this.isShow('vindicate:device')) {
+      this.activeName = "dbvdc"
     }
   },
   computed: {
@@ -485,15 +483,15 @@
   width: 100%;
   height: 100%;
   .el-button--primary {
-    color: #FFFFFF;
-    background-color: #3D68E1;
-    border-color: #3D68E1;
+    color: #ffffff;
+    background-color: #3d68e1;
+    border-color: #3d68e1;
   }
-  .el-button--primary.is-disabled, 
-  .el-button--primary.is-disabled:hover, 
-  .el-button--primary.is-disabled:focus, 
-  .el-button--primary.is-disabled:active{
-    color: #FFFFFF;
+  .el-button--primary.is-disabled,
+  .el-button--primary.is-disabled:hover,
+  .el-button--primary.is-disabled:focus,
+  .el-button--primary.is-disabled:active {
+    color: #ffffff;
     background-color: #9eb4f0;
     border-color: #9eb4f0;
   }

--
Gitblit v1.8.0