diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index 00388570b0..2c8815b1db 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -195,6 +195,17 @@ public class UserService { String userId = user.getId(); UserRoleExample userRoleExample = new UserRoleExample(); userRoleExample.createCriteria().andUserIdEqualTo(userId); + List userRoles = userRoleMapper.selectByExample(userRoleExample); + List list = userRoles.stream().map(UserRole::getSourceId).collect(Collectors.toList()); + + if (!CollectionUtils.isEmpty(list)) { + if (list.contains(user.getLastWorkspaceId()) || list.contains(user.getLastOrganizationId())) { + user.setLastOrganizationId(""); + user.setLastWorkspaceId(""); + userMapper.updateByPrimaryKeySelective(user); + } + } + userRoleMapper.deleteByExample(userRoleExample); List> roles = user.getRoles(); if (!roles.isEmpty()) { @@ -275,6 +286,14 @@ public class UserService { UserRoleExample example = new UserRoleExample(); example.createCriteria().andRoleIdLike("%test%") .andUserIdEqualTo(userId).andSourceIdEqualTo(workspaceId); + + User user = userMapper.selectByPrimaryKey(userId); + if (StringUtils.equals(workspaceId, user.getLastWorkspaceId())) { + user.setLastWorkspaceId(""); + user.setLastOrganizationId(""); + userMapper.updateByPrimaryKeySelective(user); + } + userRoleMapper.deleteByExample(example); } @@ -305,6 +324,14 @@ public class UserService { public void delOrganizationMember(String organizationId, String userId) { UserRoleExample userRoleExample = new UserRoleExample(); userRoleExample.createCriteria().andRoleIdLike("%org%").andUserIdEqualTo(userId).andSourceIdEqualTo(organizationId); + + User user = userMapper.selectByPrimaryKey(userId); + if (StringUtils.equals(organizationId, user.getLastOrganizationId())) { + user.setLastWorkspaceId(""); + user.setLastOrganizationId(""); + userMapper.updateByPrimaryKeySelective(user); + } + userRoleMapper.deleteByExample(userRoleExample); } diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 905b0997b3..0353e3d3cd 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -29,23 +29,24 @@ :label="$t('test_track.plan.plan_status')" show-overflow-tooltip> - + @@ -425,7 +425,7 @@ line-height: 50px; } - .step-edit >>> p { + .issues-edit >>> p { line-height: 16px; } @@ -456,5 +456,4 @@ .el-switch >>> .el-switch__label.is-active { color: #409EFF; } - diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue index 7a8439cb01..938a555ef4 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue @@ -86,7 +86,8 @@ column-key="status" :label="$t('test_track.plan_view.execute_result')"> diff --git a/frontend/src/common/css/main.css b/frontend/src/common/css/main.css index 72c8d9710c..2e459aba95 100644 --- a/frontend/src/common/css/main.css +++ b/frontend/src/common/css/main.css @@ -33,8 +33,10 @@ body { clear: both; } - - +/*解决富文本框中link显示问题*/ +.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners { + z-index: 10055 !important; +} .table-card > .el-card__body { padding-top: 0;