自定义表头修改
This commit is contained in:
+16
-16
@@ -264,7 +264,7 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
|||||||
//编号,标题,操作
|
//编号,标题,操作
|
||||||
boolean hasBH = false;
|
boolean hasBH = false;
|
||||||
boolean hasBT = false;
|
boolean hasBT = false;
|
||||||
boolean hasCZ = false;
|
// boolean hasCZ = false;
|
||||||
for (HeadCustomVO hcVO : headCustomVOOneList) {
|
for (HeadCustomVO hcVO : headCustomVOOneList) {
|
||||||
if ("编号".equals(hcVO.getTitle()) || "Number".equals(hcVO.getTitle())) {
|
if ("编号".equals(hcVO.getTitle()) || "Number".equals(hcVO.getTitle())) {
|
||||||
hasBH = true;
|
hasBH = true;
|
||||||
@@ -273,7 +273,7 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
|||||||
hasBT = true;
|
hasBT = true;
|
||||||
}
|
}
|
||||||
if ("操作".equals(hcVO.getTitle())) {
|
if ("操作".equals(hcVO.getTitle())) {
|
||||||
hasCZ = true;
|
headCustomVOOneList.remove(hcVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasBH) {
|
if (!hasBH) {
|
||||||
@@ -299,17 +299,17 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
|||||||
res.add(bt);
|
res.add(bt);
|
||||||
}
|
}
|
||||||
res.addAll(headCustomVOOneList);
|
res.addAll(headCustomVOOneList);
|
||||||
if (!hasCZ) {
|
// if (!hasCZ) {
|
||||||
HeadCustomVO cz = new HeadCustomVO();
|
// HeadCustomVO cz = new HeadCustomVO();
|
||||||
cz.setDataIndex("operation");
|
// cz.setDataIndex("operation");
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
// if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
cz.setTitle("操作");
|
// cz.setTitle("操作");
|
||||||
} else {
|
// } else {
|
||||||
cz.setTitle("Operation");
|
// cz.setTitle("Operation");
|
||||||
}
|
// }
|
||||||
cz.setFixed("right");
|
// cz.setFixed("right");
|
||||||
res.add(cz);
|
// res.add(cz);
|
||||||
}
|
// }
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,9 +329,9 @@ public class HeadCustomEOServiceImpl extends ServiceImpl<HeadCustomEOMapper, Hea
|
|||||||
if ("标题".equals(headCustomEO.getHeadFieldCn())) {
|
if ("标题".equals(headCustomEO.getHeadFieldCn())) {
|
||||||
headCustomVO.setFixed("left");
|
headCustomVO.setFixed("left");
|
||||||
}
|
}
|
||||||
if ("操作".equals(headCustomEO.getHeadFieldCn())) {
|
// if ("操作".equals(headCustomEO.getHeadFieldCn())) {
|
||||||
headCustomVO.setFixed("right");
|
// headCustomVO.setFixed("right");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
return headCustomVO;
|
return headCustomVO;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user