From eee25ea68f36a929acf81e18bb17db29688de703 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 11 Mar 2026 17:14:50 +0900 Subject: [PATCH] =?UTF-8?q?260311=5F01=5FENH:=20Console.log=20clear=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B5=AC=EB=A7=A4=EC=9C=A8=20=ED=88=AC=EC=9E=85?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../category/sub-page/category-page/PenetrationChange.tsx | 2 -- src/app/(pages)/(main)/total/lg-purchase/page.tsx | 8 ++++---- src/app/(pages)/(main)/total/purchase/page.tsx | 4 ++-- src/components/lge-dashboard/chart/GroupedStackBar.tsx | 1 - src/components/lge-dashboard/chart/StackBar.tsx | 2 +- src/lib/lg-dashboard.ts | 1 - 6 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx b/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx index 5dce4fd..6657bf7 100644 --- a/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx +++ b/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx @@ -27,8 +27,6 @@ const PenetrationChange = ({ })); }); - console.log(tempProfileData) - return tempProfileData; }, [dataMap]); diff --git a/src/app/(pages)/(main)/total/lg-purchase/page.tsx b/src/app/(pages)/(main)/total/lg-purchase/page.tsx index 2d45f3f..8b01693 100644 --- a/src/app/(pages)/(main)/total/lg-purchase/page.tsx +++ b/src/app/(pages)/(main)/total/lg-purchase/page.tsx @@ -36,7 +36,7 @@ const LGPurchasePage = () => { const req = useMemo(() => { return { - variableIdMap: {purchase: "KQA3_2", purchase_lg: "KQX3_3_LG"}, + variableIdMap: {purchase: "KQB0", purchase_lg: "KQX3_3_LG"}, bannerIdList: ["product"], filterCondition: normalizeFilterCondition(debouncedFilterValue), option: {useCache: true, lastYear: false, decimalPoint: 0}, @@ -51,7 +51,7 @@ const LGPurchasePage = () => { const purchaseRows = data?.statisticsDataMap?.purchase - .filter((r) => r.rowLabel == `해당년도`) + .filter((r) => r.rowLabel == `구매`) .map((row) => { return { ...row, @@ -110,8 +110,8 @@ const LGPurchasePage = () => { for (let ci = 0; ci < includeProductKeys.length; ci++) { const k = includeProductKeys[ci]; - const t = (purchaseRows[ri] as any)[k]; - const v = (r as any)[k]; + const t = (purchaseRows[ri] as any)[k] ?? ""; + const v = (r as any)[k] ?? ""; total[yi][ci] = Number(t); focus[yi][ci] = Number(v); diff --git a/src/app/(pages)/(main)/total/purchase/page.tsx b/src/app/(pages)/(main)/total/purchase/page.tsx index 0c54d2c..a63140e 100644 --- a/src/app/(pages)/(main)/total/purchase/page.tsx +++ b/src/app/(pages)/(main)/total/purchase/page.tsx @@ -31,7 +31,7 @@ const PurchasePage = () => { const req = useMemo(() => { return { - variableIdMap: { purchase: "KQA3_2"}, + variableIdMap: { purchase: "KQB0"}, bannerIdList: ["product"], filterCondition: normalizeFilterCondition(debouncedFilterValue), option: { useCache: true, lastYear: false, decimalPoint: 0 }, @@ -46,7 +46,7 @@ const PurchasePage = () => { const purchaseRows = data?.statisticsDataMap?.purchase - .filter((r) => r.rowLabel == `해당년도`) + .filter((r) => r.rowLabel == `구매`) .map((row) => { return { ...row, diff --git a/src/components/lge-dashboard/chart/GroupedStackBar.tsx b/src/components/lge-dashboard/chart/GroupedStackBar.tsx index 55ab1fe..779386f 100644 --- a/src/components/lge-dashboard/chart/GroupedStackBar.tsx +++ b/src/components/lge-dashboard/chart/GroupedStackBar.tsx @@ -61,7 +61,6 @@ const GroupedStackBar = ({ const defaultYAxis: EChartsOption["yAxis"] = { type: "value", ...AXIS_HIDE_STYLE }; const latestYear = years.at(-1); - console.log(yearBrandPalette, String(latestYear), yearBrandPalette?.[String(latestYear)]) const latestPalette = buildLgPalette(yearBrandPalette?.[String(latestYear)]); const yearLegendTokens = years.map((y) => { diff --git a/src/components/lge-dashboard/chart/StackBar.tsx b/src/components/lge-dashboard/chart/StackBar.tsx index a2b35db..f138058 100644 --- a/src/components/lge-dashboard/chart/StackBar.tsx +++ b/src/components/lge-dashboard/chart/StackBar.tsx @@ -65,7 +65,7 @@ const StackBar = ({ const option: EChartsOption = useMemo(() => { const fmt = valueFormatter ?? ((v: number) => String(v)); const isV = orientation === "vertical"; -console.log(grid) + return { color: palette, tooltip: tooltip ?? (isReverse ? createReverseTooltip(data, fmt) : createDefaultTooltip(fmt)), diff --git a/src/lib/lg-dashboard.ts b/src/lib/lg-dashboard.ts index cb9b3ab..46e596a 100644 --- a/src/lib/lg-dashboard.ts +++ b/src/lib/lg-dashboard.ts @@ -446,7 +446,6 @@ export const calcCagrRow = (after: ProductRow, before: ProductRow): ProductRow = for (const k of PRODUCT_KEYS) { const vBefore = before? before[k] ?? "0" : "0"; const vAfter = after? after[k] ?? "0" : "0"; - console.log(k, vBefore, vAfter); out[k] = Number(vBefore) > 0 ? calcCagr(Number(vAfter), Number(vBefore), years) : "0"; } return out;