Browse Source

优化权限控制按钮显示

master
李磊 3 years ago
parent
commit
2a9ba903e1
  1. 6
      src/views/bggl/banjie_list.vue
  2. 4
      src/views/bggl/eliminatingred_list.vue

6
src/views/bggl/banjie_list.vue

@ -1,12 +1,12 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="filter-container"> <div class="filter-container">
<div v-show="hasPerm('bggl:banjie:update') || hasPerm('bggl:banjie:regenerate')" class="sub-navbar"> <div v-show="hasPerm('ysjl:banjie:update') || hasPerm('ysjl:banjie:regenerate')" class="sub-navbar">
<sticky> <sticky>
<el-button v-if="hasPerm('bggl:banjie:update')" type="danger" icon="el-icon-refresh" @click="resetFlow"> <el-button v-if="hasPerm('ysjl:banjie:update')" type="danger" icon="el-icon-refresh" @click="resetFlow">
重启流程 重启流程
</el-button> </el-button>
<template v-if="hasPerm('bggl:banjie:regenerate')"> <template v-if="hasPerm('ysjl:banjie:regenerate')">
<el-button type="warning" icon="el-icon-refresh" @click="generatePdf('YSJL')"> <el-button type="warning" icon="el-icon-refresh" @click="generatePdf('YSJL')">
生成记录 生成记录
</el-button> </el-button>

4
src/views/bggl/eliminatingred_list.vue

@ -1,9 +1,9 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="filter-container"> <div class="filter-container">
<div v-show="hasPerm('regenerate:update')" class="sub-navbar"> <div v-if="hasPerm('ysjl:eliminatingred:update')" class="sub-navbar">
<sticky> <sticky>
<el-button v-show="hasPerm('regenerate:update')" type="warning" @click="cleanRed"> <el-button v-if="hasPerm('ysjl:eliminatingred:update')" type="warning" @click="cleanRed">
<svg-icon icon-class="clear" /> 消红 <svg-icon icon-class="clear" /> 消红
</el-button> </el-button>
</sticky> </sticky>

Loading…
Cancel
Save