| | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="角色权限配置" |
| | | append-to-body |
| | | :visible.sync="box" |
| | | width="345px"> |
| | | <el-tabs type="border-card"> |
| | | append-to-body |
| | | :visible.sync="box" |
| | | width="350px" |
| | | style="height: 115vh; margin-top: -13vh; overflow: hidden"> |
| | | <el-tabs type="border-card" style="overflow-y: auto; height: 72vh"> |
| | | <el-tab-pane label="菜单权限"> |
| | | <el-tree :data="menuGrantList" |
| | | show-checkbox |
| | |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.selectionList = row; |
| | | this.$refs.crud.toggleSelection(); |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //选中当前行 |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |