물 하수재이용 등록 사업 작업중

This commit is contained in:
leedj312
2025-05-26 16:10:34 +09:00
parent 06f5400569
commit 2b18aa2c4b
9 changed files with 139 additions and 48 deletions
@@ -1,6 +1,7 @@
import { headMakeprfmnc } from "@/app/ruseFcltMng/prfmncReg/chkgdnReg/TableHead";
import type { chHeadType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn/headList";
import type { TableUpperProps } from "@/app/store/ruseFcltMng/fcltReg/rainReg";
import { selectClass, type TableUpperProps } from "@/app/store/ruseFcltMng/fcltReg/rainReg";
import { SelectBox, type SelectDataType } from "@common/business_components/ui";
import {
Input,
Table,
@@ -15,11 +16,16 @@ export default function RuseMngTable({
tableData,
headList,
upHeadList,
code = [],
}: {
tableData: any[];
headList: TableUpperProps[];
upHeadList?: chHeadType[];
code?:{name:string, val:SelectDataType[] }[]
}) {
return (
<>
<Table variant="secondary">
@@ -53,7 +59,21 @@ export default function RuseMngTable({
onChange={(e) => {}}
value={item[head.id] || ""}
/>
) : (
) : head.type === "select" ? (
<SelectBox
label=""
selectArray={code.find(item => item.name === head.selectData)?.val ?? []}
value={
tableData[index][item[head.id]]
}
className={""}
selectClass={selectClass}
onSelectValue={(val) => {
tableData[index][head.id] = val;
}}
></SelectBox>
)
: (
`${item[head.id] || ""}`
)}
</TableCell>