Prechádzať zdrojové kódy

更新 移除管理员操作权限

wzg 2 rokov pred
rodič
commit
4da5c4b086
1 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  1. 7 2
      src/components/ShipInfo.vue

+ 7 - 2
src/components/ShipInfo.vue

@@ -43,7 +43,9 @@
             取消更新
           </el-button>
           <el-button
-            v-if="route.name == 'shipOwnerDetail'"
+            v-if="
+              route.name == 'shipOwnerDetail' && store.state.isSuperuser == 0
+            "
             @click="deleteShip(currentIndex)"
             type="primary"
             class="mr20"
@@ -51,7 +53,10 @@
             删除当前船舶
           </el-button>
         </div>
-        <div class="df" v-if="route.name == 'shipOwnerDetail'">
+        <div
+          class="df"
+          v-if="route.name == 'shipOwnerDetail' && store.state.isSuperuser == 0"
+        >
           <el-button
             v-if="shipInfos.length == 0 || shipInfos[currentIndex].code"
             @click="addShip()"