diff --git a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysRole.java b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysRole.java index d47aa41e..fbf8600f 100644 --- a/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysRole.java +++ b/yanzhu-api/yanzhu-api-system/src/main/java/com/yanzhu/system/api/domain/SysRole.java @@ -110,12 +110,12 @@ public class SysRole extends BaseEntity public static boolean isGsAdmin(String roleKey) { - return Objects.equals(roleKey,"gsAdmin"); + return roleKey!=null && roleKey.startsWith("gsAdmin"); } public static boolean isGsAdmin(List roleKeys) { - return roleKeys.contains("gsAdmin"); + return roleKeys.stream().filter(d->d!=null && d.startsWith("gsAdmin")).count()>0; } @NotBlank(message = "角色名称不能为空") diff --git a/yanzhu-bigscreen/src/views/machmater/machineManage.vue b/yanzhu-bigscreen/src/views/machmater/machineManage.vue index 00c17286..9926c328 100644 --- a/yanzhu-bigscreen/src/views/machmater/machineManage.vue +++ b/yanzhu-bigscreen/src/views/machmater/machineManage.vue @@ -989,6 +989,24 @@ export default { } } } + .check-in-module,.exception-alert { + .elTable { + + .el-table__empty-text { + font-size: 14px; + } + th { + .cell { + font-size:16px; + } + } + td { + .cell { + font-size: 14px; + } + } + } + } .BMap_bubble_pop { width: 440px !important; diff --git a/yanzhu-common/yanzhu-common-security/src/main/java/com/yanzhu/common/security/utils/SecurityUtils.java b/yanzhu-common/yanzhu-common-security/src/main/java/com/yanzhu/common/security/utils/SecurityUtils.java index ff52a47e..5079b5e6 100644 --- a/yanzhu-common/yanzhu-common-security/src/main/java/com/yanzhu/common/security/utils/SecurityUtils.java +++ b/yanzhu-common/yanzhu-common-security/src/main/java/com/yanzhu/common/security/utils/SecurityUtils.java @@ -12,6 +12,7 @@ import com.yanzhu.system.api.model.LoginUser; import java.util.Objects; import java.util.Set; +import java.util.stream.Collectors; /** * 权限获取工具类 @@ -101,7 +102,7 @@ public class SecurityUtils */ public static boolean isGSAdmin() { - Set roles = getLoginUser().getRoles(); + Set roles = getLoginUser().getSysUser().getRoles().stream().map(role -> role.getRoleKey()).collect(Collectors.toSet()); if(Objects.nonNull(roles)){ for(String role:roles){ if(role.startsWith("gsAdmin")){ diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java index d79c66ce..0a281988 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java @@ -142,7 +142,7 @@ public class ProProjectInfoController extends BaseController LoginUser loginUser = SecurityUtils.getLoginUser(); if(!SecurityUtils.isAdmin(loginUser.getUserid())){ if(SecurityUtils.isGSAdmin()){ - proProjectInfo.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); + proProjectInfo.setActiveComId(SecurityUtils.getLoginUser().getSysUser().getActiveComId()); }else{ proProjectInfo.setCurrentUserId(SecurityUtils.getUserId()); } diff --git a/yanzhu-ui-vue3/src/components/BaiduMap/Map.vue b/yanzhu-ui-vue3/src/components/BaiduMap/Map.vue index 5f914637..1e6daff1 100644 --- a/yanzhu-ui-vue3/src/components/BaiduMap/Map.vue +++ b/yanzhu-ui-vue3/src/components/BaiduMap/Map.vue @@ -1,170 +1,180 @@ \ No newline at end of file + diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue index 314fd821..cb1f5e28 100644 --- a/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfo/index.vue @@ -194,7 +194,7 @@ - +