浏览代码

修改按钮权限

yumeng 1 年之前
父节点
当前提交
a29268b0f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>