Bläddra i källkod

新增 指令控制按钮权限

wzh 3 år sedan
förälder
incheckning
8f10f53b05

+ 1 - 1
src/views/accountManage/subAccountList.vue

@@ -11,7 +11,7 @@
         ></el-input>
         <div class="seach-btn" @click="getSubAccountList">查询</div>
       </div>
-      <el-button v-auth="'ADDPROXY'" type="primary" @click="visable = true"
+      <el-button v-auth="'ADDACCOUNT'" type="primary" @click="visable = true"
         >添加账号</el-button
       >
     </div>

+ 3 - 1
src/views/agencyManage/agencyCompanyList.vue

@@ -11,7 +11,9 @@
         ></el-input>
         <div class="seach-btn" @click="getAgencyList">查询</div>
       </div>
-      <el-button type="primary" @click="visable = true">添加代理</el-button>
+      <el-button v-auth="'ADDPROXY'" type="primary" @click="visable = true"
+        >添加代理</el-button
+      >
     </div>
 
     <el-dialog v-model="visable" title="添加代理" width="550px">

+ 3 - 1
src/views/authManage/roleList.vue

@@ -11,7 +11,9 @@
         ></el-input>
         <div class="seach-btn" @click="getRoleList">查询</div>
       </div>
-      <el-button type="primary" @click="addRole">添加角色</el-button>
+      <el-button v-auth="'ADDUPDATEROLE'" type="primary" @click="addRole"
+        >添加角色</el-button
+      >
     </div>
     <div style="margin-top: 24px">
       <el-table :data="tableData" stripe style="width: 100%">

+ 3 - 1
src/views/cargoManage/cargoList.vue

@@ -11,7 +11,9 @@
         ></el-input>
         <div class="seach-btn" @click="getCargoList">查询</div>
       </div>
-      <el-button type="primary" @click="addCargo">添加货种</el-button>
+      <el-button v-auth="ADDCARGO" type="primary" @click="addCargo"
+        >添加货种</el-button
+      >
     </div>
 
     <div style="margin-top: 24px">