Browse Source

修改按钮权限

yumeng 1 năm trước cách đây
mục cha
commit
a29268b0f7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/supplyChain/channelList.vue

+ 1 - 1
src/views/supplyChain/channelList.vue

@@ -107,7 +107,7 @@
       >
         <template slot-scope="scope">
           {{ scope.row.promotersCount }}
-          <el-button size="mini" type="text" @click="editCount(scope.row)">编辑</el-button>
+          <el-button  v-if="$store.getters.roles[0] == 'admin' ||$store.getters.roles[0] == 'bdManager' || $store.getters.roles[0] == 'supplyChainAdmin' " size="mini" type="text" @click="editCount(scope.row)">编辑</el-button>
         </template>
       </el-table-column>