| | |
| | | <div> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form style="display: flex;align-items: center;" ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="角色名称:" class="sermargin"> |
| | | <el-input v-model="searchData.roleName" class="input-form" placeholder="请输入角色名称" style="width:250px"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item class="rightBtn"> |
| | | <el-col> |
| | | <el-button type="primary" @click="searchRole">查询</el-button> |
| | | <el-button type="primary" plain>重置</el-button> |
| | | </el-col> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | |
| | | |
| | | }, |
| | | async upRole(scope) { |
| | | console.log(scope); |
| | | this.updateRole.roleId = scope.row.roleId |
| | | this.updateRole.roleName = scope.row.roleName |
| | | this.updateRole.lastName = scope.row.roleName |
| | | let menuSelect = scope.row.roleMenuList |
| | | this.updateRole.lastMenuSelect = scope.row.roleMenuList |
| | | console.log(menuSelect); |
| | | let res = await getMenusTree(); |
| | | this.menuUpdateInfo = res.data |
| | | this.menuUpdateInfo.forEach(item => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | console.log(this.menuUpdateInfo); |
| | | menuSelect.forEach(ms => { |
| | | this.menuUpdateInfo.forEach(item => { |
| | | if (ms.menuName === item.name) { |
| | |
| | | #selectRolecheck .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { |
| | | border-color: #fff !important; |
| | | } |
| | | |
| | | #selectRoleCheck .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { |
| | | background-color: #409EFF; |
| | | border-color: #409EFF; |