
250411 하석형 트리관련 메뉴 데이터 변경 알림 추가, 회원 관리 아이디 유효성 영문 대소문자 -> 소문자, 페이징 알림 주석처리
@c092cdade61512db2544c2a9da142b9b020927ba
--- client/resources/js/validateParams.js
+++ client/resources/js/validateParams.js
... | ... | @@ -28,6 +28,12 @@ |
28 | 28 |
return check.test(text); |
29 | 29 |
}, |
30 | 30 |
|
31 |
+ // 입력제한(소문자영어/숫자) |
|
32 |
+ checkLEN(text) { |
|
33 |
+ const check = /^[a-z0-9]+$/; |
|
34 |
+ return check.test(text); |
|
35 |
+ }, |
|
36 |
+ |
|
31 | 37 |
|
32 | 38 |
/* 사용자 정보 */ |
33 | 39 |
// 아이디 |
... | ... | @@ -47,8 +53,8 @@ |
47 | 53 |
this.$refs.lgnId.focus(); |
48 | 54 |
return false; |
49 | 55 |
} // 최대 길이 |
50 |
- if (!this.checkEN(key)) { |
|
51 |
- alert("아이디는 영어와 숫자만 사용하세요."); |
|
56 |
+ if (!this.checkLEN(key)) { |
|
57 |
+ alert("아이디는 영문 소문자와 숫자만 사용 가능합니다."); |
|
52 | 58 |
this.$refs.lgnId.focus(); |
53 | 59 |
return false; |
54 | 60 |
} // 입력 제한(영어/숫자) |
--- client/views/component/pagination/PaginationButton.vue
+++ client/views/component/pagination/PaginationButton.vue
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 |
return; |
61 | 61 |
} |
62 | 62 |
} else { |
63 |
- alert("이동할 페이지가 없습니다."); |
|
63 |
+ // alert("이동할 페이지가 없습니다."); |
|
64 | 64 |
} |
65 | 65 |
}, |
66 | 66 |
}, |
--- client/views/pages/adm/departmentManagement/DepartmentManagement.vue
+++ client/views/pages/adm/departmentManagement/DepartmentManagement.vue
... | ... | @@ -245,7 +245,7 @@ |
245 | 245 |
const res = await findAll(); |
246 | 246 |
if (res.status == 200) { |
247 | 247 |
this.deptList = res.data.data.hierachyList; // 부서 목록 |
248 |
- if(this.deptList.length > 0) { |
|
248 |
+ if(this.deptList.length > 0 && this.selectedDeptId == null) { |
|
249 | 249 |
this.fnViewDetail(this.deptList[0].id); // 부서 최상단 조회 |
250 | 250 |
} |
251 | 251 |
this.authList = res.data.data.authList; // 권한 목록 |
... | ... | @@ -296,7 +296,7 @@ |
296 | 296 |
alert(res.data.message); |
297 | 297 |
if (res.status == 200) { |
298 | 298 |
this.findAll(); |
299 |
- this.selectedDeptId = res.data.data.deptId; |
|
299 |
+ // this.selectedDeptId = res.data.data.deptId; |
|
300 | 300 |
} |
301 | 301 |
} catch (error) { |
302 | 302 |
alert(error.response.data.message); |
... | ... | @@ -343,17 +343,26 @@ |
343 | 343 |
}, |
344 | 344 |
// 최상위 신규 객체 생성 |
345 | 345 |
topAdd() { |
346 |
+ if (this.selectedDeptId != null) { |
|
347 |
+ if (!confirm("작성 중인 부서정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
|
348 |
+ return; |
|
349 |
+ } |
|
350 |
+ } |
|
346 | 351 |
this.fnReset(); // 초기화 |
347 | 352 |
this.submitStts = true; |
348 | 353 |
}, |
349 | 354 |
// 하위 신규 객체 생성 |
350 | 355 |
subAdd() { |
351 | 356 |
if ( |
352 |
- Object.keys(this.viewDept).length === 0 || |
|
357 |
+ // Object.keys(this.viewDept).length === 0 || |
|
353 | 358 |
this.selectedDeptId == null |
354 | 359 |
) { |
355 | 360 |
alert("상위 부서를 지정해주세요."); |
356 | 361 |
return; |
362 |
+ } else { |
|
363 |
+ if (!confirm("작성 중인 부서정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
|
364 |
+ return; |
|
365 |
+ } |
|
357 | 366 |
} |
358 | 367 |
const upDeptId = this.viewDept.deptId; // 상위 부서 아이디 |
359 | 368 |
const upDeptNm = this.viewDept.deptNm; // 상위 부서명 |
... | ... | @@ -482,10 +491,14 @@ |
482 | 491 |
// axios: 목록 수정 |
483 | 492 |
async fnListUpdate() { |
484 | 493 |
try { |
494 |
+ if (!confirm("부서 목록을 저장하시겠습니까?\n 작성 중인 부서정보는 저장되지 않습니다.")) { |
|
495 |
+ return; |
|
496 |
+ } |
|
485 | 497 |
const res = await updateListProc(this.deptList); |
486 | 498 |
alert(res.data.message); |
487 | 499 |
if (res.status == 200) { |
488 | 500 |
this.findAll(); |
501 |
+ this.findByDept(); |
|
489 | 502 |
} |
490 | 503 |
} catch (error) { |
491 | 504 |
alert(error.res.data.message); |
--- client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
+++ client/views/pages/adm/preferences/commonCodeManagement/CommonCodeManagement.vue
... | ... | @@ -136,7 +136,7 @@ |
136 | 136 |
const res = await findAll(); |
137 | 137 |
if (res.status == 200) { |
138 | 138 |
this.codeList = res.data.data.hierachyList; |
139 |
- if(this.codeList.length > 0) { |
|
139 |
+ if(this.codeList.length > 0 && this.selectedCd == null) { |
|
140 | 140 |
this.fnViewDetail(this.codeList[0].id); |
141 | 141 |
} |
142 | 142 |
this.newCode = res.data.data.newCode; |
... | ... | @@ -179,6 +179,7 @@ |
179 | 179 |
alert(res.data.message); |
180 | 180 |
if (res.status == 200) { |
181 | 181 |
this.findAll(); |
182 |
+ // this.selectedCd = res.data.data.cd; |
|
182 | 183 |
} |
183 | 184 |
} catch (error) { |
184 | 185 |
alert(error.response.data.message); |
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?