feat: fix export group
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
2f03f18d51
commit
59cf933abc
|
@ -144,7 +144,6 @@ export class ReportExportService extends BaseReportService {
|
|||
// Create a new worksheet
|
||||
const reportSheet = workbook.addWorksheet('Report');
|
||||
|
||||
const columnStateIds = columnState.map((i) => i.colId);
|
||||
let configColumns = config.column_configs;
|
||||
const rowGroups = query_model?.rowGroupCols ?? [];
|
||||
|
||||
|
@ -155,6 +154,11 @@ export class ReportExportService extends BaseReportService {
|
|||
});
|
||||
}
|
||||
|
||||
const columnStateIds = [
|
||||
...rowGroups.map((i) => i.id),
|
||||
...columnState.map((i) => i.colId),
|
||||
];
|
||||
|
||||
const newConfigColumn = columnStateIds
|
||||
.map((i) => {
|
||||
const findData = configColumns.find((col) => col.column === i);
|
||||
|
|
Loading…
Reference in New Issue