
250407 하석형 공통코드 코드 영문(대소문자)과 언더바 유효성 검사, 하위메뉴 없는 상위메뉴 알림 표기
@37f1cabfd69a80a9ee2f3331c9afcda456773588
--- client/views/layout/AdminMenu.vue
+++ client/views/layout/AdminMenu.vue
... | ... | @@ -114,6 +114,11 @@ |
114 | 114 |
// 부모 메뉴 클릭 시 펼치기만 함 |
115 | 115 |
menu.isOpen = !menu.isOpen; |
116 | 116 |
} else { |
117 |
+ if(menu.routerUrl === "") { |
|
118 |
+ // 하위메뉴가 없는 상위메뉴일 시 알림 출력 |
|
119 |
+ alert("하위 메뉴가 존재하지 않습니다."); |
|
120 |
+ return; |
|
121 |
+ } |
|
117 | 122 |
// 2뎁스 또는 3뎁스 선택 시 menuClick 실행 |
118 | 123 |
this.menuClick(menu); |
119 | 124 |
} |
--- client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
+++ client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
... | ... | @@ -233,9 +233,9 @@ |
233 | 233 |
alert("코드를 입력해주세요."); |
234 | 234 |
return false; |
235 | 235 |
} |
236 |
- const alpha = /^[A-Z_]*$/; |
|
236 |
+ const alpha = /^[a-zA-Z_]*$/; |
|
237 | 237 |
if (!alpha.test(this.viewCode.cd)) { |
238 |
- alert("코드는 영문(대문자)과 언더바(_)만 사용하여 작성해주세요."); |
|
238 |
+ alert("코드는 영문과 언더바(_)만 사용하여 작성해주세요."); |
|
239 | 239 |
return false; |
240 | 240 |
} |
241 | 241 |
if ( |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?