diff --git a/apps/fo/app/pages/(with-layout)/facilityWaterQlty/modal/page.tsx b/apps/fo/app/pages/(with-layout)/facilityWaterQlty/modal/page.tsx
index 470a44e4c..c1a6afdf8 100644
--- a/apps/fo/app/pages/(with-layout)/facilityWaterQlty/modal/page.tsx
+++ b/apps/fo/app/pages/(with-layout)/facilityWaterQlty/modal/page.tsx
@@ -447,7 +447,9 @@ export default function WaterQualityModal({ fcltyName = '', facilityCd = '', sea
수질 TMS
- ({msrmtDate ? msrmtDate.substring(0, 4) + '-' + msrmtDate.substring(4, 6) + '-' + msrmtDate.substring(6, 8) : yesterDayStr})
+
+ ({msrmtDate ? msrmtDate.substring(0, 4) + '-' + msrmtDate.substring(4, 6) + '-' + msrmtDate.substring(6, 8) : yesterDayStr})
+
{
+ // const rainCellClassName = useCallback(
+ // (row: FlowRateModalInterface, headId: string, rowIndex: number) => {
+ // if (activeTab !== "tab_term_rain") return "";
+ // if (headId !== "infoRnDay") return "";
+ // if (rowIndex < 3) return "";
+
+ // const raw = row.infoRnDay;
+ // const value = typeof raw === "string" ? Number(raw.replace(/,/g, "").trim()) : Number(raw);
+ // if (!Number.isFinite(value)) return "";
+ // return value > 3 ? "bg-red-50 font-semibold" : "";
+ // },
+ // [activeTab],
+ // );
+
+ const rainRowClassName = useCallback(
+ (row: FlowRateModalInterface, rowIndex: number) => {
if (activeTab !== "tab_term_rain") return "";
- if (headId !== "infoRnDay") return "";
if (rowIndex < 3) return "";
const raw = row.infoRnDay;
const value = typeof raw === "string" ? Number(raw.replace(/,/g, "").trim()) : Number(raw);
if (!Number.isFinite(value)) return "";
- return value > 3 ? "bg-red-50 font-semibold" : "";
+ return value > 3 ? "bg-slate-50" : "";
},
[activeTab],
);
@@ -353,7 +366,7 @@ export default function FlowRateModal(props: { fcltyName: string; facilityCd: st
{ }} className="h-[370px]" boldArray={[0, 1, 2]}
- cellClassName={rainCellClassName} />
+ rowClassName={rainRowClassName} />
diff --git a/apps/fo/app/store/flowRate/index.tsx b/apps/fo/app/store/flowRate/index.tsx
index 9bca32518..b097fc234 100644
--- a/apps/fo/app/store/flowRate/index.tsx
+++ b/apps/fo/app/store/flowRate/index.tsx
@@ -388,7 +388,7 @@ export const flowRateSearchReducer: (set: (fn: (state: FlowRateSearchType) => Fl
const yearSunnyAmnt = sunnyDay > 0 ? sunnyInflAmnt / sunnyDay : 0; // 청천시 연평균유입유량
const yearSunnyBod = sunnyDay > 0 ? sunnyBod / sunnyDay : 0; // 청천시 연평균유입BOD
- console.log(inflData);
+ //console.log(inflData);
const rtnData = inflData.map((item: FlowRateModalProps) => {
const targetWqItem = wqltData?.find(wqitem => wqitem.msrDt === item.msrDt.replaceAll('-', ''));
const dayBod = targetWqItem ? Number(targetWqItem.inflAssctBfrWqltBod) : 0;
@@ -404,7 +404,7 @@ export const flowRateSearchReducer: (set: (fn: (state: FlowRateSearchType) => Fl
: item.msrDt,
};
});
- console.log(rtnData);
+ //console.log(rtnData);
set((state: FlowRateSearchType) => ({
...state,
FlowRateModal: {
diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx
index 94c86d2d8..d2fd81de6 100644
--- a/packages/common/business_components/src/ui/table/index.tsx
+++ b/packages/common/business_components/src/ui/table/index.tsx
@@ -25,6 +25,7 @@ type UiTableProps
= {
cellClick: ((index: number | undefined, headId: string) => void) | undefined;
onPageChange: (page: number) => void;
cellClassName?: (row: T, headId: string, rowIndex: number) => string;
+ rowClassName?: (row: T, rowIndex: number) => string;
className?: string;
resetPageNo?: boolean;
children?: React.ReactNode | undefined;
@@ -57,6 +58,7 @@ export function UiTable>({
cellClick,
onPageChange,
cellClassName,
+ rowClassName,
className = "",
resetPageNo = false,
boldArray = [],
@@ -151,7 +153,7 @@ export function UiTable>({
{tableData.length > 0 ? (
tableData?.map((el: T, index) => (
-
+
{headlist
.filter((item) => item.visible != false)
.map(