From 462782f4b2ce653e84260ca586a58c8627c4ac9c Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 18 十一月 2022 13:55:22 +0800 Subject: [PATCH] 1 --- src/views/AuthorizationManagement/roleMenuAuthorization.vue | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/views/AuthorizationManagement/roleMenuAuthorization.vue b/src/views/AuthorizationManagement/roleMenuAuthorization.vue index 85c69ce..3e59c8a 100644 --- a/src/views/AuthorizationManagement/roleMenuAuthorization.vue +++ b/src/views/AuthorizationManagement/roleMenuAuthorization.vue @@ -83,9 +83,7 @@ " > <span> - {{ - $t('operatManage.UserRoleAuthorizationObj.PermissionTable') - }}</span + {{ $t('operatManage.UserRoleAuthorizationObj.menuTable') }}</span > </div> <el-divider /> @@ -93,7 +91,7 @@ <el-tree :data="menuList" :props="defaultMenuProps" - :show-checkbox="true" + :show-checkbox="false" :check-on-click-node="true" :check-strictly="true" node-key="id" @@ -154,7 +152,7 @@ :data="menuTableData" stripe style="width: 100%" - height="80%" + height="84%" @selection-change="handleSelectionChange" > <el-table-column type="selection" width="55"> </el-table-column> @@ -391,9 +389,11 @@ <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> @@ -500,6 +500,7 @@ }, 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; @@ -540,8 +541,12 @@ 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 ); @@ -847,6 +852,9 @@ /deep/.el-dialog__title { color: white; } + .divider { + margin-top: 8px; + } } </style> <style> -- Gitblit v1.9.3