| | |
| | | <!-- |
| | | * @Author: 小明丶 |
| | | * @Date: 2019-10-25 10:17:56 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2023-04-25 15:34:05 |
| | | * @LastEditors: zhaoxiaoqiang 287285524@qq.com |
| | | * @LastEditTime: 2023-09-05 15:31:32 |
| | | * @Description: |
| | | --> |
| | | <template> |
| | |
| | | <el-button type="primary" @click="addRoleModel = true" size="small">新增</el-button> |
| | | </div> |
| | | <div class="role-list-table"> |
| | | <Etable isFind httpUrl="roleGetRoleList" itemsArr="roles" highlightCurrentRow :columns="columns" :searchData="searchData" :hasPagination="false" @operateDo="operateDo" @cellClick="powerInit" border></Etable> |
| | | <Etable isFind httpUrl="roleGetRoleList" nameUrl="roleGetRoleList" itemsArr="roles" highlightCurrentRow :columns="columns" :searchData="searchData" :hasPagination="false" @operateDo="operateDo" @cellClick="powerInit" border></Etable> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | |
| | | columns: [ |
| | | { |
| | | lable: "角色名称", |
| | | prop: "name", |
| | | prop: "roleName", |
| | | }, |
| | | { |
| | | lable: "", |
| | |
| | | "div", |
| | | { |
| | | on: { |
| | | click: () => { |
| | | this.editRoleVal = params.row.name; |
| | | click: (e) => { |
| | | e.stopPropagation(); |
| | | this.editRoleVal = params.row.roleName; |
| | | this.editRoleModel = true; |
| | | this.roleId = params.row.code; |
| | | this.roleId = params.row.roleId; |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | "div", |
| | | { |
| | | on: { |
| | | click: () => { |
| | | click: (e) => { |
| | | e.stopPropagation(); |
| | | this.removeModel = true; |
| | | this.roleId = params.row.roleId; |
| | | }, |
| | |
| | | }, |
| | | //选择角色 |
| | | powerInit(params) { |
| | | this.roleId = params.code; |
| | | let obj = { |
| | | roleId: params.code, |
| | | }; |
| | | this.roleId = params.roleId; |
| | | let obj = { roleId: params.roleId }; |
| | | setInit(obj).then((res) => { |
| | | if (res.body.btnList) { |
| | | this.btnList = res.body.btnList; |
| | |
| | | } |
| | | } |
| | | }); |
| | | console.log(this.initList); |
| | | // console.log(this.initList); |
| | | this.loading = true; |
| | | }, |
| | | operateDo() { }, |