Browse Source

菜单按钮权限错误bug #41

daxiongYang 6 years ago
parent
commit
a5986d6b52
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/modules/sys/menu.vue

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

2
  <div class="mod-menu">
2
  <div class="mod-menu">
3
    <el-form :inline="true" :model="dataForm">
3
    <el-form :inline="true" :model="dataForm">
4
      <el-form-item>
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
      </el-form-item>
6
      </el-form-item>
7
    </el-form>
7
    </el-form>
8
    <el-table
8
    <el-table
78
        width="150"
78
        width="150"
79
        label="操作">
79
        label="操作">
80
        <template slot-scope="scope">
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
        </template>
83
        </template>
84
      </el-table-column>
84
      </el-table-column>
85
    </el-table>
85
    </el-table>