260331_02_ENH: 그룹 헤더 다단도 가능하게 수정
This commit is contained in:
@@ -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]) : []
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user