Commit 8b544fd1 by zhangkb

修改系统导出excel样式

parent e21cad8a
...@@ -807,7 +807,7 @@ public class TagFileService { ...@@ -807,7 +807,7 @@ public class TagFileService {
//蓝色背景列 //蓝色背景列
CellStyle cellStyle = workbook.createCellStyle(); CellStyle cellStyle = workbook.createCellStyle();
cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
cellStyle.setFillForegroundColor((short) 4);// 设置背景色 cellStyle.setFillForegroundColor((short) 30);// 设置背景色
//cellStyle.setAlignment(HorizontalAlignment.CENTER); // 居中 //cellStyle.setAlignment(HorizontalAlignment.CENTER); // 居中
cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);//垂直居中 cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);//垂直居中
...@@ -826,7 +826,7 @@ public class TagFileService { ...@@ -826,7 +826,7 @@ public class TagFileService {
cellStyle1.setFont(font); cellStyle1.setFont(font);
int cellIndex = 0; int cellIndex = 0;
row.setHeight((short)450); row.setHeight((short)550);
for (String title : titleList) { for (String title : titleList) {
sheet.setColumnWidth(cellIndex, 3500);//设置列宽 sheet.setColumnWidth(cellIndex, 3500);//设置列宽
if(requiredCell.contains(cellIndex)) { if(requiredCell.contains(cellIndex)) {
......
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