53 lines
2.1 KiB
TypeScript
53 lines
2.1 KiB
TypeScript
'use client'
|
|
|
|
import { ScrollArea, SearchDiv, SelectBox, UiTable } from '@common/business_components';
|
|
import { Button } from '@common/components';
|
|
import { PublicReuseFaciltyFormInsert } from '../../../../components/ui/publicReuseInsertForm';
|
|
import { useWrStore } from '../../../store';
|
|
|
|
|
|
|
|
export default function PublicReuseFaciltyInsert() {
|
|
const {pubFac} = useWrStore((state) => state);
|
|
const { pubFacHeadList, publicReuseFacilityData} = pubFac;
|
|
const searchDiv = '하수재이용시설 '
|
|
const selectBox = [{ text: '서울하수처리시설', val: "1_hasu" }, { text: '서울1하수처리시설', val: "2_hasu" }, { text: '서울2하수처리시설', val: "3_hasu" }]
|
|
const headName = () => {
|
|
return (
|
|
<h1 className="pl-3 text-xl">○공공 하수처리시설 등록</h1>
|
|
)
|
|
}
|
|
const onSelectValue = (val: string) => {
|
|
console.log(val)
|
|
}
|
|
return (
|
|
<>
|
|
<div className="grid grid-cols-2 gap-4 h-full">
|
|
<div className='col-span-4'>
|
|
<h1 className="pl-3 text-xl" > 하수재이용시설 등록</h1>
|
|
<div className="m-8">
|
|
<SearchDiv>
|
|
<div className='w-4/5 grid grid-cols-12 gap-1 mx-4'>
|
|
<SelectBox className='col-span-4' label={searchDiv} selectArray={selectBox} onSelectValue={onSelectValue} />
|
|
</div>
|
|
<div className='w-1/5 flex items-center justify-end'>
|
|
<Button className='mr-4 rounded-lg'>조회</Button>
|
|
<Button className='mr-4 rounded-lg'>신규추가</Button>
|
|
</div>
|
|
</SearchDiv>
|
|
</div>
|
|
</div>
|
|
<div className="col-span-1 pl-11">
|
|
<UiTable tableData={publicReuseFacilityData} headlist={pubFacHeadList} pageSize={100} total={10} headName={headName()} children={undefined}/>
|
|
</div>
|
|
<div className="col-span-1 pr-6 max-h-full overflow-y-scroll">
|
|
<ScrollArea>
|
|
<PublicReuseFaciltyFormInsert />
|
|
{/* <ScrollBar orientation="vertical"></ScrollBar> */}
|
|
</ScrollArea>
|
|
</div>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|