Files
frontend/apps/sn/app/oper/pplines/page.tsx
T
2025-03-11 12:04:36 +09:00

56 lines
2.1 KiB
TypeScript

'use client'
import { SearchDiv, SelectBox, UiTable } from '@common/business_components';
import { Button, TableRow, Input, Label } from '@common/components';
import { TableHead } from '@common/components';
import { useSnStore } from '../../store';
import type { TableUpperProps } from '../../store/oper/pplines';
const headMakeColSpan = (upHeadList: TableUpperProps[]) => {
return ( <>
<TableRow>{
upHeadList.map((head: TableUpperProps) =>
(<TableHead key={head.id} >{head.title}</TableHead>))}
</TableRow>
</> )
}
export default function PublicReuseFaciltyInsert() {
const { upHeadList, publicReuseFacilityUper} = useSnStore((state) => state);
const nodeList= headMakeColSpan(upHeadList);
const total = 100;
const headName= ()=>{
return(
<p className="pl-3 text-xl">현황정보</p>
)
}
return ( <>
<div>
<p className="pl-3 text-2xl"> 현황정보 조회</p>
<SearchDiv>
<div className='flex'>
<SelectBox label='시설물' selectArray={[{text:'관로', val:'1'}]} />
<SelectBox label='사용여부' selectArray={[{text:'사용', val:'1'}]} />
<SelectBox label='경과년도' selectArray={[{text:'10년', val:'1'}]} />
<SelectBox label='경사' selectArray={[{text:'', val:'1'}]} />
<SelectBox label='흐름방식' selectArray={[{text:'자연유하', val:'1'}]} />
<SelectBox label='용도' selectArray={[{text:'오수관', val:'1'}]} />
<SelectBox label='관종' selectArray={[{text:'PE관관', val:'1'}]} />
<SelectBox label='관경' selectArray={[{text:'50', val:'1'}]} />
<Button className='mr-4' size='sm'>조회</Button>
</div>
</SearchDiv>
</div>
<div className="grid grid-cols-2 gap-4">
<div className="colsapn-1">
<UiTable publicReuseFacility={publicReuseFacilityUper} headlist={upHeadList} pageSize={20} total={total} headName={headName()}>
</UiTable>
</div>
</div>
</> )
}