Parcourir la Source

菜单按钮权限错误bug #41

daxiongYang 6 ans auparavant
Parent
commit
a5986d6b52
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/views/modules/sys/menu.vue

+ 3 - 3
src/views/modules/sys/menu.vue

@ -2,7 +2,7 @@
2 2
  <div class="mod-menu">
3 3
    <el-form :inline="true" :model="dataForm">
4 4
      <el-form-item>
5
        <el-button v-if="isAuth('sys:user:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
5
        <el-button v-if="isAuth('sys:menu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
6 6
      </el-form-item>
7 7
    </el-form>
8 8
    <el-table
@ -78,8 +78,8 @@
78 78
        width="150"
79 79
        label="操作">
80 80
        <template slot-scope="scope">
81
          <el-button v-if="isAuth('sys:user:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.menuId)">修改</el-button>
82
          <el-button v-if="isAuth('sys:user:delete')" type="text" size="small" @click="deleteHandle(scope.row.menuId)">删除</el-button>
81
          <el-button v-if="isAuth('sys:menu:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.menuId)">修改</el-button>
82
          <el-button v-if="isAuth('sys:menu:delete')" type="text" size="small" @click="deleteHandle(scope.row.menuId)">删除</el-button>
83 83
        </template>
84 84
      </el-table-column>
85 85
    </el-table>