| | |
| | | " |
| | | > |
| | | <span> |
| | | {{ |
| | | $t('operatManage.UserRoleAuthorizationObj.PermissionTable') |
| | | }}</span |
| | | {{ $t('operatManage.UserRoleAuthorizationObj.menuTable') }}</span |
| | | > |
| | | </div> |
| | | <el-divider /> |
| | |
| | | <el-tree |
| | | :data="menuList" |
| | | :props="defaultMenuProps" |
| | | :show-checkbox="true" |
| | | :show-checkbox="false" |
| | | :check-on-click-node="true" |
| | | :check-strictly="true" |
| | | node-key="id" |
| | |
| | | :data="menuTableData" |
| | | stripe |
| | | style="width: 100%" |
| | | height="80%" |
| | | height="84%" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"> </el-table-column> |
| | |
| | | <el-button @click="dialogTableVisible = false">{{ |
| | | $t('dataManage.dictionaryManageObj.cancel') |
| | | }}</el-button> |
| | | <el-button type="primary" @click="addConfirm">{{ |
| | | $t('dataManage.dictionaryManageObj.confirm') |
| | | }}</el-button> |
| | | <el-button |
| | | style="background: #409eff; border: 1px solid #409eff; color: white" |
| | | @click="addConfirm" |
| | | >{{ $t('dataManage.dictionaryManageObj.confirm') }}</el-button |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | menuTreeCheck(node, list) { |
| | | if (list.checkedNodes.length > 0) { |
| | | if (this.roleid == null) return; |
| | | this.rolMenuListData.menuid = node.id; |
| | | this.menuid = node.id; |
| | | this.rolMenuListData.roleid = this.roleid; |
| | |
| | | this.addcount = data.count; |
| | | }, |
| | | singleElection(row) { |
| | | this.getMenuTree(); |
| | | this.menuTableData = []; |
| | | this.roleMenuCount = 0; |
| | | this.templateSelection = row.id; |
| | | this.roleid = row.id; |
| | | |
| | | this.roleDepCheckList = this.tableData.filter( |
| | | (item) => item.id === row.id |
| | | ); |
| | |
| | | /deep/.el-dialog__title { |
| | | color: white; |
| | | } |
| | | .divider { |
| | | margin-top: 8px; |
| | | } |
| | | } |
| | | </style> |
| | | <style> |