From d9c77bcc5b49b5dfc9ae691c8a0c54a0a30a4bb7 Mon Sep 17 00:00:00 2001 From: leedj312 Date: Fri, 7 Mar 2025 14:16:19 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=B4=EB=8D=94=EA=B5=AC=EC=A1=B0(url?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0)=20=EB=B3=80=EA=B2=BD,=20=EB=AC=BC=EC=9E=AC?= =?UTF-8?q?=EC=9D=B4=EC=9A=A9=20=EA=B3=B5=ED=86=B5=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=9D=B4=EB=8F=99,=20=EB=B9=97=EB=AC=BC?= =?UTF-8?q?=EC=9D=B4=EC=9A=A9=EC=8B=9C=EC=84=A4=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/page.tsx | 15 ++++- .../publicReuseFaciltyInsert/page.tsx | 9 ++- .../waterReuseFaciltyInsert/page.tsx | 63 +++++++++++++++++++ .../ui}/publicReuseInsertForm.tsx | 3 +- 4 files changed, 81 insertions(+), 9 deletions(-) rename apps/wr/app/{ => reuseFaciltyManage/reuseFacilityInsert}/publicReuseFaciltyInsert/page.tsx (86%) create mode 100644 apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/waterReuseFaciltyInsert/page.tsx rename apps/wr/{app/component => components/ui}/publicReuseInsertForm.tsx (99%) diff --git a/apps/wr/app/page.tsx b/apps/wr/app/page.tsx index 994244625..5892ab211 100644 --- a/apps/wr/app/page.tsx +++ b/apps/wr/app/page.tsx @@ -1,9 +1,20 @@ -import {PublicReuseFaciltyInsert }from './publicReuseFaciltyInsert/page'; +import Link from 'next/link'; +import { Button } from '@common/components/ui'; export default function Home() { return ( - + <> +
+ + + +
+ ); } diff --git a/apps/wr/app/publicReuseFaciltyInsert/page.tsx b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx similarity index 86% rename from apps/wr/app/publicReuseFaciltyInsert/page.tsx rename to apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx index ebbedf83a..bac5d458a 100644 --- a/apps/wr/app/publicReuseFaciltyInsert/page.tsx +++ b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx @@ -3,10 +3,9 @@ import {SearchDiv, SelectBox, UiTable } from '@common/business_components'; import { Button, TableRow } from '@common/components'; import { TableHead } from '@common/components'; -import Style from "../style/PublicReuseFaciltyInsert.module.css"; -import { useWrStore } from '../store'; -import type { TableUpperProps } from '../store/publicReuseFaciltyInsert'; -import { PublicReuseFaciltyFormInsert } from '../component/publicReuseInsertForm'; +import { useWrStore } from '../../../store'; +import type { TableUpperProps } from '../../../store/publicReuseFaciltyInsert'; +import { PublicReuseFaciltyFormInsert } from '../../../../components/ui/publicReuseInsertForm'; @@ -28,7 +27,7 @@ import { PublicReuseFaciltyFormInsert } from '../component/publicReuseInsertFor - export function PublicReuseFaciltyInsert() { + export default function PublicReuseFaciltyInsert() { const { upHeadList, publicReuseFacilityUper} = useWrStore((state) => state); const nodeList= headMakeColSpan(upHeadList); const total = 100; diff --git a/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/waterReuseFaciltyInsert/page.tsx b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/waterReuseFaciltyInsert/page.tsx new file mode 100644 index 000000000..ba2943d63 --- /dev/null +++ b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/waterReuseFaciltyInsert/page.tsx @@ -0,0 +1,63 @@ +'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 ( <> + { + upHeadList.map((head: TableUpperProps) => + (!head.upSequnce?{head.title}: + head.upName === 'upChangeRe'&& head.upSequnce=== 1?{'중축 개축 증축 '}:null))} + + + {upHeadList.map((head: TableUpperProps) => + (head.upName === 'upChangeRe'?{head.title}:null))} + + ) + } + + +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( +

○공공 허수처리시설 등록

+ ) + } + + return( + <> +
+

물재이용 시설 등록

+ +
+ + + +
+
+
+
+ +
+ + {nodeList} + +
+
+
+ +
+ + ); +} + \ No newline at end of file diff --git a/apps/wr/app/component/publicReuseInsertForm.tsx b/apps/wr/components/ui/publicReuseInsertForm.tsx similarity index 99% rename from apps/wr/app/component/publicReuseInsertForm.tsx rename to apps/wr/components/ui/publicReuseInsertForm.tsx index e973bbef8..bf4405ab6 100644 --- a/apps/wr/app/component/publicReuseInsertForm.tsx +++ b/apps/wr/components/ui/publicReuseInsertForm.tsx @@ -7,8 +7,7 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { useWrStore } from "../store"; -import Style from "../style/PublicReuseFaciltyInsert.module.css"; +import { useWrStore } from "../../app/store/index"; import { SelectBox } from "@common/business_components"; import { DatePicker } from "@common/components";