From d1d8a1eff37f239500d6a0cd5dd76422df8a35a2 Mon Sep 17 00:00:00 2001 From: bicochan Date: Fri, 24 Jul 2026 10:47:57 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20feat:=20=ED=86=B5=EA=B3=84=20=EA=B2=80?= =?UTF-8?q?=EC=A6=9D=20=EB=A6=AC=ED=8F=AC=ED=8A=B8=20=EC=8B=9C=EB=8F=84/?= =?UTF-8?q?=EC=8B=9C=EA=B5=B0=EA=B5=AC=20=EC=85=80=EB=A0=89=ED=8A=B8=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StatisticsVerificationReport.tsx | 35 +++++++++++++++---- .../statistics-verification-report-types.ts | 6 +++- .../ui/panels/schedule-info-panel.tsx | 4 +-- 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/apps/st/src/components/statistics/verification/StatisticsVerificationReport.tsx b/apps/st/src/components/statistics/verification/StatisticsVerificationReport.tsx index 38797a591..0ad30c6de 100644 --- a/apps/st/src/components/statistics/verification/StatisticsVerificationReport.tsx +++ b/apps/st/src/components/statistics/verification/StatisticsVerificationReport.tsx @@ -213,7 +213,14 @@ function StatisticsVerificationReport() { })), }); - const statisticsVerificationReportQuery = useStatsVrfcRptData(filters); + const { + ctpvSewerBzmnCd: _, + sggSewerBzmnCd: __, + ...statisticsVerificationReportFilters + } = filters; + const statisticsVerificationReportQuery = useStatsVrfcRptData( + statisticsVerificationReportFilters, + ); const statisticsVerificationResultQuery = useStatsVrfcRsltData(detailParams); @@ -399,12 +406,16 @@ function StatisticsVerificationReport() { optionData?: { label: string; value: string }, ) => { resetReportState(); - if (key === "sewerBzmnCd") { + + // 시도 변경 시 + if (key === "ctpvNm") { setFilters((prev) => ({ ...prev, + sewerBzmnCd: value, ctpvNm: optionData?.label, - sewerBzmnCd: optionData?.value, + ctpvSewerBzmnCd: value, sggNm: "", + sggSewerBzmnCd: "", })); setSubFilters((prev) => ({ ...prev, @@ -414,6 +425,18 @@ function StatisticsVerificationReport() { })); return; } + + // 시군구 변경 시 + if (key === "sggNm") { + setFilters((prev) => ({ + ...prev, + sewerBzmnCd: value, + sggNm: optionData?.label, + sggSewerBzmnCd: value, + })); + return; + } + if (key === "statsCd") { setSubFilters((prev) => ({ ...prev, statsCd: "" })); } @@ -540,8 +563,8 @@ function StatisticsVerificationReport() {
({ label: item.adstNm, @@ -551,7 +574,7 @@ function StatisticsVerificationReport() { /> ({ diff --git a/apps/st/src/entities/statistics/model/statistics-verification-report/statistics-verification-report-types.ts b/apps/st/src/entities/statistics/model/statistics-verification-report/statistics-verification-report-types.ts index d81ee98ee..46e74c8b5 100644 --- a/apps/st/src/entities/statistics/model/statistics-verification-report/statistics-verification-report-types.ts +++ b/apps/st/src/entities/statistics/model/statistics-verification-report/statistics-verification-report-types.ts @@ -2,7 +2,11 @@ import type { VerifyResultSearchRequest } from "../general-verification-interfac import type { StatsInputStatusListRequestParams } from "../input/statistics-input-status-interface"; export type StatisticsVerificationFilterState = - StatsInputStatusListRequestParams; + StatsInputStatusListRequestParams & { + // 셀렉트 표시용 시도, 시군구 코드 + ctpvSewerBzmnCd?: string | null; + sggSewerBzmnCd?: string | null; + }; export type StatisticsVerificationSubFilterState = VerifyResultSearchRequest; diff --git a/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx b/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx index 05a0fe3ff..f6054adf4 100644 --- a/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx +++ b/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx @@ -91,7 +91,7 @@ export function ScheduleInfoPanel({ params }: ScheduleInfoPanelProps) { size="lg" className="font-semibold" > - {data.inptSeCd}차 입력기간 + 입력기간

{dayjs(data.inptBgngYmd).format( @@ -119,7 +119,7 @@ export function ScheduleInfoPanel({ params }: ScheduleInfoPanelProps) { color="gray" className="font-semibold" > - {data.vrfcSeCd}차 검증기간 + 검증기간

{dayjs(data.vrfcBgngYmd).format(