260331_02_ENH: 그룹 헤더 다단도 가능하게 수정

This commit is contained in:
2026-03-31 11:08:30 +09:00
parent e51c6ba810
commit d58c0b4dd4
13 changed files with 577 additions and 622 deletions

View File

@@ -10,6 +10,7 @@ import {BANNER_KEY_MAP} from "@/const/lg-schema.const";
import {QID_SURVEY_TITLE} from "@/const/lg-survey.const";
import {SITE_TITLE, YEARS} from "@/const/lg-common.const";
import {CategoryByData} from "@/components/lge-dashboard";
import {wrapSampleRow} from "@/lib/lg-dashboard";
const CategoryDetail = ({
fields,
@@ -33,7 +34,7 @@ const CategoryDetail = ({
chartMode:f.chartMode,
chartLegend:f.chartLegend,
chartTopMargin:f.chartTopMargin,
data: dataLength && dataLength > 0 ? dataMap[f.requestKeyResolved] : []
data: dataLength && dataLength > 0 ? wrapSampleRow(dataMap[f.requestKeyResolved]) : []
};
});

View File

@@ -33,6 +33,8 @@ const PenetrationChange = ({
}, [dataMap]);
const getCellClassName = (row: BannerRow, column: DataColumn<BannerRow>, rowIndex: number) => {
if (!("key" in column) || column.key === undefined) return undefined;
const currentYear = Number(row.year);
if (currentYear !== 2024 && currentYear !== 2025) return undefined;
if (column.key === "rowLabel" || column.key === "total") return undefined;