| | |
| | | <template> |
| | | <div class="menuSettings_box"> |
| | | <My-bread |
| | | <!-- <My-bread |
| | | :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | |
| | | `${$t('operatManage.MenuRoleAuthorization')}`, |
| | | ]" |
| | | ></My-bread> |
| | | <el-divider /> |
| | | <el-divider /> --> |
| | | <div class="menuSettings_tree subpage_Div"> |
| | | <My-bread :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('operatManage.UserRoleAuthorization')}`, |
| | | ]"></My-bread> |
| | | |
| | | <el-divider /> |
| | | <div class="menuTreeBox"> |
| | | |
| | | <div class="card_tree"> |
| | | <el-tree |
| | | :data="depList" |
| | | :props="defaultProps" |
| | | :show-checkbox="false" |
| | | :check-on-click-node="true" |
| | | :check-strictly="true" |
| | | node-key="id" |
| | | @check="treeCheck" |
| | | :default-expanded-keys="[1]" |
| | | ref="treeForm" |
| | | > |
| | | </el-tree> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="menuTreeBox "> |
| | | <div class="left_tree subpage_Div"> |
| | | <!-- <div class="left_tree subpage_Div"> |
| | | <el-tree |
| | | :data="depList" |
| | | :props="defaultProps" |
| | |
| | | :default-expanded-keys="[1]" |
| | | > |
| | | </el-tree> |
| | | </div> |
| | | </div> --> |
| | | <div class="right_menu subpage_Div"> |
| | | <div |
| | | style=" |
| | |
| | | <div class="btn" style="margin-left: auto"> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | type="primary" |
| | | type="success" |
| | | icon="el-icon-circle-plus-outline" |
| | | size="small" |
| | | :disabled="roleid == null ? true : false" |
| | |
| | | </el-table> |
| | | |
| | | <div |
| | | style="margin-top: 20px; text-align: center" |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | |
| | | this.usermultipleSelection.forEach((e) => { |
| | | arr.push(e.id); |
| | | }); |
| | | const data = await menuAuthDeletes({ ids: arr.toString() }); |
| | | if (data.code !== 200) { |
| | | return this.$message.error('删除失败'); |
| | | } |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'success', |
| | | this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await menuAuthDeletes({ ids: arr.toString() }); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.$message({ |
| | | message: '删除成功!', |
| | | type: 'success', |
| | | }); |
| | | this.getRole(); |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败!', |
| | | type: 'warning', |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | this.getRole(); |
| | | // const data = await menuAuthDeletes({ ids: arr.toString() }); |
| | | // if (data.code !== 200) { |
| | | // return this.$message.error('删除失败'); |
| | | // } |
| | | // this.$message({ |
| | | // message: '删除成功', |
| | | // type: 'success', |
| | | // }); |
| | | // this.getRole(); |
| | | }, |
| | | |
| | | async getadduserList() { |
| | |
| | | <style lang="less" scoped> |
| | | //@import url(); 引入公共css类 |
| | | .menuSettings_box { |
| | | height: 98%; |
| | | height: 96%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | border-radius: 10px; |
| | | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .menuTreeBox { |
| | | width: 100%; |
| | |
| | | border-radius: 5px; |
| | | float: left; |
| | | overflow-y: auto; |
| | | border-radius: 10px; |
| | | |
| | | } |
| | | .right_menu { |
| | | width: 67%; |
| | | height: 92%; |
| | | border-radius: 10px; |
| | | width: 97%; |
| | | height: 100%; |
| | | padding: 10px; |
| | | |
| | | border-radius: 5px; |
| | |
| | | margin-top: 8px; |
| | | } |
| | | } |
| | | .subpage_Div{ |
| | | border-radius: 10px; |
| | | } |
| | | </style> |
| | | |