summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
author0-Zz-ang <s1998319@gmail.com>2025-08-07 18:02:54 +0900
committer0-Zz-ang <s1998319@gmail.com>2025-08-07 18:02:54 +0900
commit67bb1ad7d7e001e19c8d1dd9153a5f663e2afa03 (patch)
tree9aab25663d6c180fd3a315840a3035b491ac0b7d /app
parente270e477f362dd68249bb4a013c66eab293bba82 (diff)
(박서영)docu-list-rule Project_code적용
Diffstat (limited to 'app')
-rw-r--r--app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx15
-rw-r--r--app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx6
2 files changed, 17 insertions, 4 deletions
diff --git a/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx b/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
index 7fb7bd80..c3556fb7 100644
--- a/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
+++ b/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
@@ -8,6 +8,19 @@ import { getNumberTypeConfigs } from "@/lib/docu-list-rule/number-type-configs/s
import { InformationButton } from "@/components/information/information-button";
import { searchParamsNumberTypeConfigsCache } from "@/lib/docu-list-rule/number-type-configs/validation";
+// Number Type with project info type
+type NumberTypeWithProject = {
+ id: number
+ name: string
+ description: string | null
+ isActive: boolean | null
+ createdAt: Date
+ updatedAt: Date
+ projectId: number
+ projectCode: string | null
+ projectName: string | null
+}
+
interface IndexPageProps {
searchParams: Promise<any>;
}
@@ -28,7 +41,7 @@ export default async function IndexPage(props: IndexPageProps) {
numberTypeId: "",
description: "",
isActive: ""
- }),
+ }) as Promise<{ data: NumberTypeWithProject[]; pageCount: number }>,
// Number Type Configs도 서버 사이드에서 가져오기
parsedSearchParams.numberTypeId > 0 ? getNumberTypeConfigs(parsedSearchParams) : Promise.resolve({ success: true, data: [], pageCount: 0 }),
]);
diff --git a/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx b/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
index 3ebf93b3..8735e3d6 100644
--- a/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
+++ b/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
@@ -4,8 +4,8 @@ import { redirect } from "next/navigation"
export default async function DocumentNumberingPage({
params,
}: {
- params: { lng: string }
+ params: Promise<{ lng: string }>
}) {
- // Code Group 페이지로 리다이렉트
- redirect(`/${params.lng}/evcp/docu-list-rule/document-class`)
+ const { lng } = await params
+ redirect(`/${lng}/evcp/docu-list-rule/document-class`)
} \ No newline at end of file