From 586efe940f7194a7ec5a0a2b0149d8062c25fc17 Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 15 Jul 2025 13:38:36 +0900 Subject: [PATCH] =?UTF-8?q?[apps/cs]=20feat:=20=EC=A1=B0=EC=A7=81=EB=8F=84?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20>=20=EC=82=AC=EC=9A=A9=EC=9E=90=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95=20(CS=5FUT0?= =?UTF-8?q?3040105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/organization/ui/add-user-dialog.tsx | 2 +- .../ui/user-organization-section.tsx | 33 +++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/apps/cs/src/pages/organization/ui/add-user-dialog.tsx b/apps/cs/src/pages/organization/ui/add-user-dialog.tsx index e0007abfc..737688e49 100644 --- a/apps/cs/src/pages/organization/ui/add-user-dialog.tsx +++ b/apps/cs/src/pages/organization/ui/add-user-dialog.tsx @@ -72,7 +72,7 @@ function AddUserDialog({ onAddUsers, ...props }: AddUserDialogProps) { - 콘텐츠 조회 + 사용자 조회
diff --git a/apps/cs/src/pages/organization/ui/user-organization-section.tsx b/apps/cs/src/pages/organization/ui/user-organization-section.tsx index 6b8e3b789..99e9ac342 100644 --- a/apps/cs/src/pages/organization/ui/user-organization-section.tsx +++ b/apps/cs/src/pages/organization/ui/user-organization-section.tsx @@ -242,6 +242,16 @@ function UserOrganizationSection({ ognzSn }: UserOrganizationSectionProps) {
+ + + + + + + + + + @@ -300,6 +310,9 @@ const UserCells = memo( jobPositionCodeData, jobGradeCodeData, }: UserCellsProps) => { + const [jbpsSeCd, setJbpsSeCd] = useState(user.jbpsSeCd); + const [jbgdSeCd, setJbgdSeCd] = useState(user.jbgdSeCd); + const updateMode = (index: number) => { const mode = form.watch(`userOrganization.${index}.mode`); if (mode === "R") { @@ -322,17 +335,33 @@ const UserCells = memo( { + setJbpsSeCd(value); + updateFormValue(index, "jbpsSeCd")(value); + }} {...form.register(`userOrganization.${index}.jbpsSeCd`)} /> + {!jbpsSeCd && ( +

+ 직위를 선택해주세요. +

+ )} { + setJbgdSeCd(value); + updateFormValue(index, "jbgdSeCd")(value); + }} {...form.register(`userOrganization.${index}.jbgdSeCd`)} /> + {!jbgdSeCd && ( +

+ 직급을 선택해주세요. +

+ )}