| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getRoleSearch() |
| | | this.getRoleTypeSearch2() |
| | | this.getUserOrganization() |
| | | this.handleRequest() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | handleRequest() { |
| | | this.getRoleSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getRoleTypeSearch2() |
| | | this.getUserOrganization() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取角色清单 |
| | | async getRoleSearch() { |
| | | const res = await RoleSearch(this.form) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | return { code: res.code } |
| | | }, |
| | | // 获取用户类型 |
| | | async getRoleTypeSearch() { |