自定义表头
This commit is contained in:
+10
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -15,6 +15,8 @@ public class HeadCustomVO {
|
||||
|
||||
private String dataIndex;//对应列表字段
|
||||
|
||||
private List<HeadCustomVO> headCustomVOList;//二级表头
|
||||
private String fixed;//字段位置标识
|
||||
|
||||
private List<HeadCustomVO> child;//二级表头
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user