【更新】修复微信开源1群提出的角色编辑bug,更新了首页图片尺寸高度

pull/52/head
小诺 2022-10-22 22:35:56 +08:00
parent d7df6ff222
commit 1a49935026
2 changed files with 7 additions and 5 deletions

View File

@ -32,17 +32,17 @@
<style scoped> <style scoped>
.carousel-images { .carousel-images {
height: 150px; height: 160px;
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;
} }
.snowy-right-card-one { .snowy-right-card-one {
height: 150px; height: 160px;
} }
.ant-carousel :deep(.slick-slide) { .ant-carousel :deep(.slick-slide) {
text-align: center; text-align: center;
height: 150px; height: 160px;
line-height: 150px; line-height: 150px;
background: #364d79; background: #364d79;
overflow: hidden; overflow: hidden;

View File

@ -141,8 +141,10 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
if(superRole) { if(superRole) {
throw new CommonException("不可编辑超管角色"); throw new CommonException("不可编辑超管角色");
} }
if(SysRoleCategoryEnum.ORG.getValue().equals(sysRoleEditParam.getCategory()) && ObjectUtil.isEmpty(sysRoleEditParam.getOrgId())) { if(SysRoleCategoryEnum.ORG.getValue().equals(sysRoleEditParam.getCategory())) {
throw new CommonException("orgId不能为空"); if (ObjectUtil.isEmpty(sysRoleEditParam.getOrgId())) {
throw new CommonException("orgId不能为空");
}
} else { } else {
sysRoleEditParam.setOrgId(null); sysRoleEditParam.setOrgId(null);
} }