소스 검색

更新 移除管理员操作权限

wzg 2 년 전
부모
커밋
4da5c4b086
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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()"