페이지에서 타이틀 구조 오류로 수정.

This commit is contained in:
truthwing
2025-03-05 15:48:05 +09:00
parent bf8dbffd15
commit 9f71e5527c
+13 -14
View File
@@ -8,20 +8,19 @@ import type { TableUpperProps } from '../store/publicReuseFaciltyInsert';
const headMakeColSpan = (upHeadList: any) => {
return ( <>
<TableRow>{
upHeadList.map((head: TableUpperProps) =>
(!head.upSequnce?null:
head.upName === 'upChangeRe'&& head.upSequnce=== 1?<TableHead key={head.id} rowSpan={1} colSpan={3}>{'중축 개축 증축 '}</TableHead>:
head.upSequnce > 1?null:<TableHead rowSpan={2}key={head.id}>{head.title}</TableHead>))}
</TableRow>
<TableRow>
{upHeadList.map((head: TableUpperProps) =>
(head.upName === 'upChangeRe'?<TableHead key={head.id}>{head.title}</TableHead>:null))}
</TableRow>
</>)
}
const headMakeColSpan = (upHeadList: any) => {
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 PublicReuseFaciltyInsert() {
const { isInit, upHeadList, publicReuseFacilityUper, decrementList} = useWrStore((state) => state);