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