Explorar o código

修改按钮权限

yumeng hai 1 ano
pai
achega
a29268b0f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>