Browse Source

修改按钮权限

yumeng 1 năm trước cách đây
mục cha
commit
a29268b0f7

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

@@ -107,7 +107,7 @@
       >
       >
         <template slot-scope="scope">
         <template slot-scope="scope">
           {{ scope.row.promotersCount }}
           {{ 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>
         </template>
       </el-table-column>
       </el-table-column>