페이지 삭제

This commit is contained in:
leedj312
2025-03-10 16:11:57 +09:00
parent 16b296e2fb
commit 411a47a0b8
@@ -1,63 +0,0 @@
'use client'
import { useWrStore } from "@/app/store";
import type { TableUpperProps } from "@/app/store/publicReuseFaciltyInsert";
import { SearchDiv, SelectBox, UiTable } from "@common/business_components";
import { Button, TableHead, TableRow } from "@common/components";
const headMakeColSpan = (upHeadList: TableUpperProps[]) => {
return ( <>
<TableRow>{
upHeadList.map((head: TableUpperProps) =>
(!head.upSequnce?<TableHead rowSpan={2}key={head.id}>{head.title}</TableHead>:
head.upName === 'upChangeRe'&& head.upSequnce=== 1?<TableHead key={head.id} rowSpan={1} colSpan={3}>{'중축 개축 증축 '}</TableHead>:null))}
</TableRow>
<TableRow>
{upHeadList.map((head: TableUpperProps) =>
(head.upName === 'upChangeRe'?<TableHead key={head.id}>{head.title}</TableHead>:null))}
</TableRow>
</> )
}
export default function Home (){
const { upHeadList, publicReuseFacilityUper} = useWrStore((state) => state);
const nodeList= headMakeColSpan(upHeadList);
const total = 100;
const searchDiv ='시군구'
const selectBox = [{text:'한양', value:1}]
const headName= ()=>{
return(
<h1 className="pl-3 text-xl">○공공 허수처리시설 등록</h1>
)
}
return(
<>
<div>
<h1 className="pl-3 text-2xl" >물재이용 시설 등록 </h1>
<SearchDiv >
<div className='flex'>
<SelectBox label={searchDiv} selectArray={selectBox} />
<Button className ='mr-4' size='sm'>조회</Button>
<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={100} total={total} headName={headName()}>
{nodeList}
</UiTable>
</div>
<div className="colsapn-1 h-full">
</div>
</div>
</>
);
}