
Merge branch 'master' of http://210.180.118.83/jhpark/cms_frontend
@a8d70c2be0063c58b14ad950c72d730cefc81c0e
--- 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
... | ... | @@ -247,7 +247,7 @@ |
247 | 247 |
const res = await findAll(); |
248 | 248 |
if (res.status == 200) { |
249 | 249 |
this.deptList = res.data.data.hierachyList; // 부서 목록 |
250 |
- if(this.deptList.length > 0) { |
|
250 |
+ if(this.deptList.length > 0 && this.selectedDeptId == null) { |
|
251 | 251 |
this.fnViewDetail(this.deptList[0].id); // 부서 최상단 조회 |
252 | 252 |
} |
253 | 253 |
this.authList = res.data.data.authList; // 권한 목록 |
... | ... | @@ -298,7 +298,7 @@ |
298 | 298 |
alert(res.data.message); |
299 | 299 |
if (res.status == 200) { |
300 | 300 |
this.findAll(); |
301 |
- this.selectedDeptId = res.data.data.deptId; |
|
301 |
+ // this.selectedDeptId = res.data.data.deptId; |
|
302 | 302 |
} |
303 | 303 |
} catch (error) { |
304 | 304 |
alert(error.response.data.message); |
... | ... | @@ -345,17 +345,26 @@ |
345 | 345 |
}, |
346 | 346 |
// 최상위 신규 객체 생성 |
347 | 347 |
topAdd() { |
348 |
+ if (this.selectedDeptId != null) { |
|
349 |
+ if (!confirm("작성 중인 부서정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
|
350 |
+ return; |
|
351 |
+ } |
|
352 |
+ } |
|
348 | 353 |
this.fnReset(); // 초기화 |
349 | 354 |
this.submitStts = true; |
350 | 355 |
}, |
351 | 356 |
// 하위 신규 객체 생성 |
352 | 357 |
subAdd() { |
353 | 358 |
if ( |
354 |
- Object.keys(this.viewDept).length === 0 || |
|
359 |
+ // Object.keys(this.viewDept).length === 0 || |
|
355 | 360 |
this.selectedDeptId == null |
356 | 361 |
) { |
357 | 362 |
alert("상위 부서를 지정해주세요."); |
358 | 363 |
return; |
364 |
+ } else { |
|
365 |
+ if (!confirm("작성 중인 부서정보는 저장되지 않습니다.\n계속 하시겠습니까?")) { |
|
366 |
+ return; |
|
367 |
+ } |
|
359 | 368 |
} |
360 | 369 |
const upDeptId = this.viewDept.deptId; // 상위 부서 아이디 |
361 | 370 |
const upDeptNm = this.viewDept.deptNm; // 상위 부서명 |
... | ... | @@ -484,10 +493,14 @@ |
484 | 493 |
// axios: 목록 수정 |
485 | 494 |
async fnListUpdate() { |
486 | 495 |
try { |
496 |
+ if (!confirm("부서 목록을 저장하시겠습니까?\n 작성 중인 부서정보는 저장되지 않습니다.")) { |
|
497 |
+ return; |
|
498 |
+ } |
|
487 | 499 |
const res = await updateListProc(this.deptList); |
488 | 500 |
alert(res.data.message); |
489 | 501 |
if (res.status == 200) { |
490 | 502 |
this.findAll(); |
503 |
+ this.findByDept(); |
|
491 | 504 |
} |
492 | 505 |
} catch (error) { |
493 | 506 |
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?