自定义表头

This commit is contained in:
zhn
2023-01-09 11:10:05 +08:00
parent 7fbbc9c522
commit 9854157768
2 changed files with 13 additions and 2 deletions
@@ -239,7 +239,7 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
headCustomVOTwoList.add(headCustomVOTemp);
}
if(ObjectUtils.isNotEmpty(headCustomVOTwoList)){
headCustomVO.setHeadCustomVOList(headCustomVOTwoList);
headCustomVO.setChild(headCustomVOTwoList);
}
}
getHeadCustomVO(cut, headCustomEO,headCustomVO);
@@ -257,6 +257,15 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
}else{
headCustomVO.setTitle(headCustomEO.getHeadFieldEn());
}
if("编号".equals(headCustomEO.getHeadFieldCn())){
headCustomVO.setFixed("left");
}
if("标题".equals(headCustomEO.getHeadFieldCn())){
headCustomVO.setFixed("left");
}
if("操作".equals(headCustomEO.getHeadFieldCn())){
headCustomVO.setFixed("right");
}
return headCustomVO;
}
}
@@ -15,6 +15,8 @@ public class HeadCustomVO {
private String dataIndex;//对应列表字段
private List<HeadCustomVO> headCustomVOList;//二级表头
private String fixed;//字段位置标识
private List<HeadCustomVO> child;//二级表头
}