원수취수 상위페이지에 데이터 넘겨야함
This commit is contained in:
@@ -73,7 +73,6 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
});
|
||||
|
||||
const buttonClick = () => {
|
||||
console.log("머임?", data[0]?.fcOrgwts)
|
||||
setIsFcOrgwts(true);
|
||||
const moData = data[0]?.fcOrgwts;
|
||||
setModalData(moData);
|
||||
@@ -106,6 +105,7 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
|
||||
|
||||
}
|
||||
console.log("어휴", data)
|
||||
}, [getBizCycle, data]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -197,6 +197,7 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
|
||||
<h1 className={formH1Class}>재이용 원수취수 현황</h1>
|
||||
<div>
|
||||
<div className="text-right mb-3">
|
||||
<Button
|
||||
type="button"
|
||||
onClick={
|
||||
@@ -206,9 +207,11 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
// }
|
||||
buttonClick
|
||||
}
|
||||
size={commonButonSize}>
|
||||
size={commonButonSize}
|
||||
className="">
|
||||
추가등록
|
||||
</Button>
|
||||
</div>
|
||||
<RuseMngTable
|
||||
tableData={fcOrgwtFiled}
|
||||
headList={pbnst.pbnstOrgwtHeadList}
|
||||
@@ -233,21 +236,21 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
className="w-32 border-gray-300 rounded pr-8 "
|
||||
/>
|
||||
<Button
|
||||
type="button"
|
||||
size={commonButonSize}
|
||||
className="!text-xl"
|
||||
onClick={plusHist}
|
||||
>
|
||||
추가등록
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
size={commonButonSize}
|
||||
className="!text-xl !bg-red-500 !text-white ml-1"
|
||||
onClick={removeSelected}
|
||||
>
|
||||
삭제
|
||||
</Button>
|
||||
type="button"
|
||||
size={commonButonSize}
|
||||
className="!text-xl"
|
||||
onClick={plusHist}
|
||||
>
|
||||
추가등록
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
size={commonButonSize}
|
||||
className="!text-xl !bg-red-500 !text-white ml-1"
|
||||
onClick={removeSelected}
|
||||
>
|
||||
삭제
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -269,7 +272,9 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
|
||||
<h1 className={formH1Class}>하수처리수 재이용수 수요처</h1>
|
||||
<div>
|
||||
<div className="text-right mb-3">
|
||||
<Button size={commonButonSize}>수요처 추가</Button>
|
||||
</div>
|
||||
<RuseMngTable
|
||||
tableData={[]}
|
||||
headList={pbnst.pbnstDemandHeadList}
|
||||
@@ -282,7 +287,7 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
|
||||
<UiModal
|
||||
open={isFcOrgwts}
|
||||
onOpenChange={(open: boolean) => setIsFcOrgwts(open)}
|
||||
bodyClass={"w-[60vw] max-w-none h-[60vh]"}
|
||||
bodyClass={"w-[50vw] max-w-none h-[60vh]"}
|
||||
body={<FcOrgwtsRegModal data={ modalData || []}></FcOrgwtsRegModal>}
|
||||
></UiModal>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user