중수도 지도점검 업데이트 해야함

This commit is contained in:
leedj312
2025-05-14 14:39:42 +09:00
parent f224369d52
commit 9e4cfa6324
6 changed files with 280 additions and 220 deletions
@@ -3,7 +3,6 @@ import { headMakeprfmnc } from "@/app/ruseFcltMng/prfmncReg/chkgdnReg/TableHead"
import { useWrStore } from "@/app/store";
import type {
} from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn";
import type { splRuseWaterType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn/headList";
import type { TableUpperProps } from "@/app/store/ruseFcltMng/fcltReg/rainReg";
import {
Input,
@@ -13,7 +12,7 @@ import {
TableHeader,
TableRow,
} from "@common/components/ui";
import { use, useEffect, useState } from "react";
import { useEffect, useState } from "react";
export function GuideDetailsTable({
chgRes,
@@ -22,7 +21,7 @@ export function GuideDetailsTable({
setChGuidData,
}: {
chgRes: any[];
headList: TableUpperProps[];
headList: TableUpperProps[];
type: string;
setChGuidData: (chgRes: any[]) => void;
}) {
@@ -58,14 +57,25 @@ export function GuideDetailsTable({
{chgRes.map((data, dataIndex) => (
<TableRow key={dataIndex + "row"}>
{headList.map((head, headIndex) => (
<TableCell key={head.id + headIndex}>
<TableCell key={head.id + headIndex} className="w-36" >
{head.edit ===true && data.edit !==false?
<Input
className={`${head.id !== "utztnUsgCd" ? "text-right" : "text-center"} text-3xl`}
className={`${head.id !== "utztnUsgCd" ? "text-right" : "text-center"} !text-2xl h-10 w-full`}
onChange={(e) =>
(dataIndex, head.id as any, e.target.value)
handleChange(dataIndex, head.id, e.target.value)
}
value={data[head.id as keyof any] || ""}
/>
/> : (
<div
className={`
${head.id !== "utztnUsgCd" ? "text-right" : "text-center"}
!text-2xl w-full h-10
`}
>
{data[head.id as keyof any] || ""}
</div>
)
}
</TableCell>
))}
</TableRow>