Commit ea8f2a51 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents b7b2f2a8 9247e58b
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
:key="v.id" :key="v.id"
> >
<img :src="v.previewImagePath" /> <img :src="v.previewImagePath" />
<div class="name">
{{ v.name }}
</div>
</div> </div>
</div> </div>
<a-empty v-else :image="simpleImage" /> <a-empty v-else :image="simpleImage" />
...@@ -180,12 +183,25 @@ export default { ...@@ -180,12 +183,25 @@ export default {
margin-bottom: 6px; margin-bottom: 6px;
height: 120px; height: 120px;
background-color: #ececec; background-color: #ececec;
position: relative;
cursor: pointer; cursor: pointer;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
} }
.name {
width: 100%;
background-color: rgba(0, 0, 0, 0.3);
color: #fff;
position: absolute;
left: 0px;
bottom: 0px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
.active { .active {
border: 4px solid #ff8522; border: 4px solid #ff8522;
......
package com.mortals.xhx.module.window.model.vo; package com.mortals.xhx.module.window.model.vo;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.WindowBusinessEntity; import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import com.mortals.xhx.module.window.model.WindowEntity;
import com.mortals.xhx.module.window.model.WindowMatterEntity; import com.mortals.xhx.module.window.model.WindowMatterEntity;
import com.mortals.xhx.module.workman.model.WorkmanEntity; import com.mortals.xhx.module.workman.model.WorkmanEntity;
import lombok.Data; import lombok.Data;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* 站点部门窗口视图对象 * 站点部门窗口视图对象
...@@ -33,4 +31,7 @@ public class WindowVo extends BaseEntityLong { ...@@ -33,4 +31,7 @@ public class WindowVo extends BaseEntityLong {
*/ */
private String hallName; private String hallName;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
} }
\ No newline at end of file
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
v-model="form.password" v-model="form.password"
@pressEnter="handleSubmit" @pressEnter="handleSubmit"
> >
<img slot="prefix" src="@/assets/images/icon-user.png" /> <img slot="prefix" src="@/assets/images/icon-pwd.png" />
<template slot="suffix"> <template slot="suffix">
<a-space> <a-space>
<img <img
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
v-model="changePwdForm.oldPwd" v-model="changePwdForm.oldPwd"
@pressEnter="changePwd" @pressEnter="changePwd"
> >
<img slot="prefix" src="@/assets/images/icon-user.png" /> <img slot="prefix" src="@/assets/images/icon-pwd.png" />
<template slot="suffix"> <template slot="suffix">
<a-space> <a-space>
<img <img
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
v-model="changePwdForm.newPwd" v-model="changePwdForm.newPwd"
@pressEnter="changePwd" @pressEnter="changePwd"
> >
<img slot="prefix" src="@/assets/images/icon-user.png" /> <img slot="prefix" src="@/assets/images/icon-pwd.png" />
<template slot="suffix"> <template slot="suffix">
<a-space> <a-space>
<img <img
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
v-model="changePwdForm.newPwdAgain" v-model="changePwdForm.newPwdAgain"
@pressEnter="changePwd" @pressEnter="changePwd"
> >
<img slot="prefix" src="@/assets/images/icon-user.png" /> <img slot="prefix" src="@/assets/images/icon-pwd.png" />
<template slot="suffix"> <template slot="suffix">
<a-space> <a-space>
<img <img
......
...@@ -103,7 +103,7 @@ public class RoleAuthServiceImpl extends AbstractCRUDServiceImpl<RoleAuthDao, Ro ...@@ -103,7 +103,7 @@ public class RoleAuthServiceImpl extends AbstractCRUDServiceImpl<RoleAuthDao, Ro
condition.setRoleId(roleId); condition.setRoleId(roleId);
List<RoleAuthEntity> roleModelEntities = this.find(condition); List<RoleAuthEntity> roleModelEntities = this.find(condition);
if (CollectionUtils.isNotEmpty(roleModelEntities)) { if (CollectionUtils.isNotEmpty(roleModelEntities)) {
List<Long> menuIds = roleModelEntities.stream().map(RoleAuthEntity::getMenuId).collect(Collectors.toList()); List<Long> menuIds = roleModelEntities.stream().filter(m->m.getMenuId()!=null).map(RoleAuthEntity::getMenuId).collect(Collectors.toList());
MenuQuery query1 = new MenuQuery(); MenuQuery query1 = new MenuQuery();
query1.setIdList(menuIds); query1.setIdList(menuIds);
List<MenuEntity> menuEntities = menuService.find(query1); List<MenuEntity> menuEntities = menuService.find(query1);
......
...@@ -44,7 +44,7 @@ public class RoleServiceImpl extends AbstractCRUDServiceImpl<RoleDao, RoleEntity ...@@ -44,7 +44,7 @@ public class RoleServiceImpl extends AbstractCRUDServiceImpl<RoleDao, RoleEntity
@Override @Override
protected void findAfter(RoleEntity entity, Context context, List<RoleEntity> list) throws AppException { protected void findAfter(RoleEntity entity, Context context, List<RoleEntity> list) throws AppException {
list.stream().forEach(item->{ list.stream().forEach(item->{
List<Long> menuIds = roleAuthService.find(new RoleAuthQuery().roleId(item.getId())).stream().map(m -> m.getMenuId()).collect(Collectors.toList()); List<Long> menuIds = roleAuthService.find(new RoleAuthQuery().roleId(item.getId())).stream().filter(m->m.getMenuId()!=null).map(m -> m.getMenuId()).collect(Collectors.toList());
if(!ObjectUtils.isEmpty(menuIds)){ if(!ObjectUtils.isEmpty(menuIds)){
item.setMenuIdList(menuIds); item.setMenuIdList(menuIds);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment