wr: 지도점검결과 등록 화면 운영관리코드명으로 보이도록
This commit is contained in:
@@ -94,7 +94,7 @@ export default function Page() {
|
||||
|
||||
const cellClick = () => {
|
||||
if (searchYear)
|
||||
if (selFcltDiv === "RNB") {
|
||||
if (selFcltDiv === "RNB") { // 빗물
|
||||
if (fcltNm) {
|
||||
rainChkNmSearch(
|
||||
rainPageNation,
|
||||
@@ -107,7 +107,7 @@ export default function Page() {
|
||||
} else {
|
||||
rainChkInit(rainPageNation, rainPageSize, searchYear, laeSeCd);
|
||||
}
|
||||
} else {
|
||||
} else { // 중수도
|
||||
if (fcltNm) {
|
||||
rswtChkNmSearch(
|
||||
rainPageNation,
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
chRowspanTable,
|
||||
rswtChkTableData,
|
||||
} from "@/components/lib/func/TableData";
|
||||
import { codeToText } from "@/components/lib/func/commom";
|
||||
import UiPageNations from "@common/business_components/ui/table/uiPageNations";
|
||||
import { Table, TableBody, TableHeader } from "@common/components/ui";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
@@ -99,9 +100,16 @@ export default function RswtChkgdTable({
|
||||
const tableTotalData = rswtChkTableData(rswtChkData);
|
||||
const makeRswtChkData = tableTotalData.map((item: any) => {
|
||||
const bud = tableData([item.building], { code });
|
||||
// 운영관리형태 코드 → 한글 텍스트로 치환 (빗물 화면과 동일한 표시)
|
||||
const operMngCdText =
|
||||
codeToText(item.operMngCd?.trim(), "rainRswtMng") ??
|
||||
codeToText(item.reuseBuilding?.operMngCd?.trim(), "rainRswtMng") ??
|
||||
item.operMngCd;
|
||||
|
||||
return {
|
||||
...item,
|
||||
...bud[0],
|
||||
operMngCd: operMngCdText,
|
||||
rowspan: item.rswtrDetails?.length,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user