mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix:【图表】修复明细表表头合并后导出数据样式问题 (#15571)
Co-authored-by: taojinlong <jinlong@fit2cloud.com>
This commit is contained in:
@@ -518,12 +518,11 @@ public class ChartDataServer implements ChartDataApi {
|
||||
cell.setCellStyle(cellStyle);
|
||||
cell.setCellValue(getDeFieldName(xAxis, column.getKey()));
|
||||
} else {
|
||||
Cell cell1 = rowMap.get("row" + depth).createCell(width);
|
||||
cell1.setCellValue(getDeFieldName(xAxis, column.getKey()));
|
||||
cell1.setCellStyle(cellStyle);
|
||||
Cell cell2 = rowMap.get("row" + toDepth).createCell(width);
|
||||
cell2.setCellValue(getDeFieldName(xAxis, column.getKey()));
|
||||
cell2.setCellStyle(cellStyle);
|
||||
for (int i = depth; i <= toDepth; i++) {
|
||||
Cell cell1 = rowMap.get("row" + i).createCell(width);
|
||||
cell1.setCellValue(getDeFieldName(xAxis, column.getKey()));
|
||||
cell1.setCellStyle(cellStyle);
|
||||
}
|
||||
CellRangeAddress region = new CellRangeAddress(depth, toDepth, width, width);
|
||||
sheet.addMergedRegion(region);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user