From aca72fa4e06acf2b9d03cebd2d13485440fee93c Mon Sep 17 00:00:00 2001 From: jcchoi Date: Wed, 29 Apr 2026 13:34:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cm/src/pages/users/ui/users-form.tsx | 23 ++++++++++++----------- apps/cs/src/pages/users/ui/users-form.tsx | 16 ++++++++-------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/apps/cm/src/pages/users/ui/users-form.tsx b/apps/cm/src/pages/users/ui/users-form.tsx index 7920ce758..a8a5a86f3 100644 --- a/apps/cm/src/pages/users/ui/users-form.tsx +++ b/apps/cm/src/pages/users/ui/users-form.tsx @@ -102,35 +102,35 @@ function UsersForm({ return ( authSeCd?.filter( (code) => - code.lwpoCd === "ROLE_USER1" || - code.lwpoCd === "ROLE_USER2" || - code.lwpoCd === "ROLE_USER3", + code.lwpoCd === "ROLE_USER01" || + code.lwpoCd === "ROLE_USER02" || + code.lwpoCd === "ROLE_USER03", ) ?? [] ); if (watchOgdpSeCd === "3" || watchOgdpSeCd === "4") return ( authSeCd?.filter( (code) => - code.lwpoCd === "ROLE_USER4" || code.lwpoCd === "ROLE_USER5", + code.lwpoCd === "ROLE_USER04" || code.lwpoCd === "ROLE_USER05", ) ?? [] ); return []; }, [authSeCd, watchOgdpSeCd]); const laeSeCdSelectData = useMemo(() => { - if (watchDtlInstCd === "ROLE_USER1") + if (watchDtlInstCd === "ROLE_USER01") return laeSeCd?.filter((code) => code.lwpoCd === "G102") ?? []; - if (watchDtlInstCd === "ROLE_USER2") + if (watchDtlInstCd === "ROLE_USER02") return laeSeCd?.filter((code) => code.lwpoCd === "G101") ?? []; - if (watchDtlInstCd === "ROLE_USER3") + if (watchDtlInstCd === "ROLE_USER03") return laeSeCd?.filter((code) => code.lwpoCd.startsWith("G2")) ?? []; - if (watchDtlInstCd === "ROLE_USER4") + if (watchDtlInstCd === "ROLE_USER04") return ( laeSeCd?.filter( (code) => code.lwpoCd.startsWith("G3") && code.lwpoCd.length === 4, ) ?? [] ); - if (watchDtlInstCd === "ROLE_USER5") + if (watchDtlInstCd === "ROLE_USER05") return ( laeSeCd?.filter( (code) => code.lwpoCd.startsWith("G3") && code.lwpoCd.length === 7, @@ -622,8 +622,9 @@ function UsersForm({ onValueChange={field.onChange} disabled={ !( - watchDtlInstCd === "ROLE_USER4" || - watchDtlInstCd === "ROLE_USER5" + watchDtlInstCd === "ROLE_USER03" || + watchDtlInstCd === "ROLE_USER04" || + watchDtlInstCd === "ROLE_USER05" ) } > diff --git a/apps/cs/src/pages/users/ui/users-form.tsx b/apps/cs/src/pages/users/ui/users-form.tsx index 7920ce758..963e0f87e 100644 --- a/apps/cs/src/pages/users/ui/users-form.tsx +++ b/apps/cs/src/pages/users/ui/users-form.tsx @@ -102,29 +102,29 @@ function UsersForm({ return ( authSeCd?.filter( (code) => - code.lwpoCd === "ROLE_USER1" || - code.lwpoCd === "ROLE_USER2" || - code.lwpoCd === "ROLE_USER3", + code.lwpoCd === "ROLE_USER01" || + code.lwpoCd === "ROLE_USER02" || + code.lwpoCd === "ROLE_USER03", ) ?? [] ); if (watchOgdpSeCd === "3" || watchOgdpSeCd === "4") return ( authSeCd?.filter( (code) => - code.lwpoCd === "ROLE_USER4" || code.lwpoCd === "ROLE_USER5", + code.lwpoCd === "ROLE_USER04" || code.lwpoCd === "ROLE_USER05", ) ?? [] ); return []; }, [authSeCd, watchOgdpSeCd]); const laeSeCdSelectData = useMemo(() => { - if (watchDtlInstCd === "ROLE_USER1") + if (watchDtlInstCd === "ROLE_USER01") return laeSeCd?.filter((code) => code.lwpoCd === "G102") ?? []; - if (watchDtlInstCd === "ROLE_USER2") + if (watchDtlInstCd === "ROLE_USER02") return laeSeCd?.filter((code) => code.lwpoCd === "G101") ?? []; - if (watchDtlInstCd === "ROLE_USER3") + if (watchDtlInstCd === "ROLE_USER03") return laeSeCd?.filter((code) => code.lwpoCd.startsWith("G2")) ?? []; - if (watchDtlInstCd === "ROLE_USER4") + if (watchDtlInstCd === "ROLE_USER04") return ( laeSeCd?.filter( (code) => code.lwpoCd.startsWith("G3") && code.lwpoCd.length === 4,