wr: width 고정

This commit is contained in:
2026-06-19 16:15:48 +09:00
parent 3451b19b96
commit 04b8082f04
8 changed files with 42 additions and 25 deletions
@@ -154,6 +154,7 @@ export default function Home() {
onPageChange={setPageNation}
index={htdfTableIndex}
resetPageNo={resetPageNo}
widthFixed={true}
></UiTable>
</ScrollArea>
</ListDiv>
@@ -376,6 +376,7 @@ export default function PublicReuseFaciltyInsert() {
resetSelection={resetSelection}
index={selectedRowIndex}
curPage={pageNation}
widthFixed={true}
/>
</ScrollArea>
</ListDiv>
@@ -167,6 +167,7 @@ export default function Home() {
onPageChange={setPageNation}
index={rainTableIndex}
resetPageNo={resetPageNo}
widthFixed={true}
></UiTable>
</ScrollArea>
</ListDiv>
@@ -171,6 +171,7 @@ export default function Home() {
onPageChange={setPageNation}
index={rswtTableIndex}
resetPageNo={resetPageNo}
widthFixed={true}
></UiTable>
</ScrollArea>
</ListDiv>
@@ -1,10 +1,10 @@
import type { TableUpperProps } from "@/app/store/common/type/header";
export const htdTableHeadList: TableUpperProps[] = [
{ id: "cityText", title: "시도" },
{ id: "sggText", title: "시군구" },
{ id: "bdstNm", title: "시설명" },
{ id: "daddr", title: "위치" },
{ id: "frstArchPrmsnDt", title: "준공년도" },
{ id: "archArea", title: "건축면적(㎡)" },
{ id: "cityText", title: "시도", widthPercent: 10 },
{ id: "sggText", title: "시군구", widthPercent: 10 },
{ id: "bdstNm", title: "시설명", widthPercent: 20 },
{ id: "daddr", title: "위치", widthPercent: 30 },
{ id: "frstArchPrmsnDt", title: "준공년도", widthPercent: 15 },
{ id: "archArea", title: "건축면적(㎡)", widthPercent: 15 },
];
@@ -3,14 +3,14 @@ import type { TableUpperProps } from "@/app/store/common/type/header";
import type { chHeadType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn/headList";
export const pubFacHeadListExport: TableUpperProps[] = [
{ id: "sido", title: "시도" },
{ id: "gugun", title: "시군구" },
{ id: "bscFctNm", title: "시설명" },
{ id: "addr", title: "위치" },
{ id: "efflWqltStndrdNm", title: "지역구분" },
{ id: "fctCpc", title: "시설용량(m³/일)" },
{ id: "ruse", title: "재이용여부" },
{ id: "rswtrYn", title: "등록여부" },
{ id: "sido", title: "시도", widthPercent: 8 },
{ id: "gugun", title: "시군구", widthPercent: 8 },
{ id: "bscFctNm", title: "시설명", widthPercent: 18 },
{ id: "addr", title: "위치", widthPercent: 24 },
{ id: "efflWqltStndrdNm", title: "지역구분", widthPercent: 15 },
{ id: "fctCpc", title: "시설용량(m³/일)", widthPercent: 12 },
{ id: "ruse", title: "재이용\n여부", widthPercent: 8 },
{ id: "rswtrYn", title: "등록\n여부", widthPercent: 6 },
];
export const pbnstMngUpHeadListExport: TableUpperProps[] = [
@@ -69,15 +69,15 @@ export type chgBuilding = {
export type customRainBdst = z.infer<typeof rainZod>;
export const upHeadList: TableUpperProps[] = [
{ id: "cityText", title: "시도" },
{ id: "sggText", title: "시군구" },
{ id: "bdstNm", title: "시설명" },
{ id: "daddr", title: "위치" },
{ id: "bdsgUsgText", title: "건축물용도" },
{ id: "frstArchPrmsnDt", title: "최초건축허가일" },
{ id: "archArea", title: "건축면적(㎡)" },
{ id: "lawTrgtYn", title: "법적의무대상여부" },
{ id: "bdstChgYn", title: "건축물변경여부" },
{ id: "cityText", title: "시도", widthPercent: 8 },
{ id: "sggText", title: "시군구", widthPercent: 8 },
{ id: "bdstNm", title: "시설명", widthPercent: 14 },
{ id: "daddr", title: "위치", widthPercent: 22 },
{ id: "bdsgUsgText", title: "건축물용도", widthPercent: 12 },
{ id: "frstArchPrmsnDt", title: "최초건축허가일", widthPercent: 12 },
{ id: "archArea", title: "건축면적(㎡)", widthPercent: 9 },
{ id: "lawTrgtYn", title: "법적의무대상여부", widthPercent: 8 },
{ id: "bdstChgYn", title: "건축물변경여부", widthPercent: 7 },
];
const rainRes: customRainBdst[] = [];
@@ -1,5 +1,5 @@
import { deleteFectch, getFetchWithCount, postFectch, putFectch } from "@/components/lib/api";
import { upHeadList, type chgBuilding } from "../rainReg";
import { type chgBuilding } from "../rainReg";
import { DEFAULT_LIST_SIZE } from "@/src/shared/config";
import type { TableUpperProps } from "@/app/store/common/type/header";
@@ -57,6 +57,19 @@ export type customRswtBdst = z.infer<typeof rswtZod>;
const rswtRes: customRswtBdst[] = [];
export const rswtUpHeadList: TableUpperProps[] = [
{ id: "cityText", title: "시도", widthPercent: 7 },
{ id: "sggText", title: "시군구", widthPercent: 7 },
{ id: "bdstNm", title: "건축물명", widthPercent: 13 },
{ id: "daddr", title: "위치", widthPercent: 20 },
{ id: "bdstUsgText", title: "건축물용도", widthPercent: 11 },
{ id: "frstArchPrmsnDt", title: "최초건축허가일", widthPercent: 11 },
{ id: "archArea", title: "건축면적(㎡)", widthPercent: 8 },
{ id: "lawTrgtYn", title: "법적의무대상여부", widthPercent: 8 },
{ id: "chBuildingYn", title: "증축/개축/재축여부", widthPercent: 8 },
{ id: "instlCmptnDt", title: "설치완료일시", widthPercent: 7 },
];
export type rswtFacState = {
rswt: {
upHeadList: TableUpperProps[];
@@ -83,7 +96,7 @@ export type rswtFacType = rswtFacState & rswtFacSActions;
export const rswtFacStateExport: rswtFacState = {
rswt: {
upHeadList: upHeadList,
upHeadList: rswtUpHeadList,
rswtRes: rswtRes,
rswtResCount: 1,
},