| | |
| | | <div class="role_manage"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">角色管理</el-col> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;">角色管理</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增角色</el-button> |
| | | </el-col> |
| | |
| | | <template slot="title"> |
| | | <i class="el-icon-circle-plus-outline" style="margin-right: 10px;"></i>{{category}} |
| | | </template> |
| | | <div style="padding: 3px 30px;" v-for="(a, ai) in menu" :key="ai" v-if="a.type==category"><el-checkbox |
| | | v-model="a.isClick" :disabled="type=='查看'">{{a.remark}}</el-checkbox></div> |
| | | <div style="padding: 3px 30px;display: flex;align-items: center;justify-content: space-between;" v-for="(a, ai) in menu" :key="ai" v-if="a.type==category" ><el-checkbox |
| | | v-model="a.isClick" :disabled="type=='查看'">{{a.remark}}</el-checkbox> <el-checkbox v-model="a.look" v-if="a.remark.includes('查询')||a.remark.includes('获取')" :disabled="type=='查看'">只看我</el-checkbox></div> |
| | | </el-collapse-item> |
| | | <!-- <el-collapse-item title="查询"> |
| | | <el-row style="padding: 3px 30px;" v-for="(a, ai) in menu" :key="ai" v-if="a.type=='查询'"> |
| | |
| | | upRole(row) { |
| | | this.type = '修改' |
| | | this.addData.roleName = row.name |
| | | this.addData.category = row.category |
| | | this.$set(this.addData, 'category', row.category) |
| | | // this.addData.category = row.category |
| | | this.selectPowerByRoleId(row.id) |
| | | }, |
| | | selectRole(row) { |
| | | this.type = '查看' |
| | | this.addData.roleName = row.name |
| | | this.addData.category = row.category |
| | | this.$set(this.addData, 'category', row.category) |
| | | // this.addData.category = row.category |
| | | this.selectPowerByRoleId(row.id) |
| | | }, |
| | | openAdd() { |