
--- client/views/component/userInfo/UserInfoInsert.vue
+++ client/views/component/userInfo/UserInfoInsert.vue
... | ... | @@ -350,7 +350,7 @@ |
350 | 350 |
this.mbrVO.mblTelno = input; |
351 | 351 |
} else if (input.length <= 6) { |
352 | 352 |
this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3); |
353 |
- } else if (input.length === 10) { |
|
353 |
+ } else if (input.length <= 10) { |
|
354 | 354 |
// 10자리는 3-3-4 |
355 | 355 |
this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3, 6) + '-' + input.slice(6); |
356 | 356 |
} else { |
... | ... | @@ -496,8 +496,10 @@ |
496 | 496 |
// 유효성검사 |
497 | 497 |
validation() { |
498 | 498 |
// 아이디 |
499 |
- if (!this.validateId(this.mbrVO.lgnId)) { |
|
500 |
- return false; |
|
499 |
+ if(this.mbrVO.mbrType == null || this.mbrVO.mbrType == 'S') { |
|
500 |
+ if (!this.validateId(this.mbrVO.lgnId)) { |
|
501 |
+ return false; |
|
502 |
+ } |
|
501 | 503 |
} |
502 | 504 |
// 이름 |
503 | 505 |
if (!this.validateNm(this.mbrVO.mbrNm)) { |
--- client/views/pages/login/SignUp.vue
+++ client/views/pages/login/SignUp.vue
... | ... | @@ -196,29 +196,8 @@ |
196 | 196 |
}; |
197 | 197 |
}, |
198 | 198 |
created() { |
199 |
- // this.fnMbrViewDetail(); |
|
200 | 199 |
}, |
201 | 200 |
methods: { |
202 |
- // axios: 사용자 정보 상세 조회 |
|
203 |
- async fnMbrViewDetail() { |
|
204 |
- console.log("fnMbrViewDetail: ", this.pageId); |
|
205 |
- // 데이터 세팅 |
|
206 |
- const data = { mbrId: this.pageId }; |
|
207 |
- // 실행 |
|
208 |
- try { |
|
209 |
- const response = await mbrDetailProc(data); |
|
210 |
- this.mbrVO = response.data.data; |
|
211 |
- console.log("mbrVO: ", this.mbrVO); |
|
212 |
- } catch (error) { |
|
213 |
- const errorData = error.response.data; |
|
214 |
- if (errorData.message != null && errorData.message != "") { |
|
215 |
- alert(error.response.data.message); |
|
216 |
- } else { |
|
217 |
- alert("에러가 발생했습니다.\n관리자에게 문의해주세요."); |
|
218 |
- } |
|
219 |
- } |
|
220 |
- }, |
|
221 |
- |
|
222 | 201 |
// axios: 사용자 정보 상세 조회 |
223 | 202 |
async fnInsert() { |
224 | 203 |
// 유효성검사 |
... | ... | @@ -234,11 +213,7 @@ |
234 | 213 |
const response = await mbrInsertProc(data); |
235 | 214 |
alert(response.data.message); |
236 | 215 |
this.$router.push({ |
237 |
- path: this.$filters.ctxPath("/"), |
|
238 |
- query: { |
|
239 |
- pageId: |
|
240 |
- this.pageId == null ? response.data.data.mbrId : this.pageId, |
|
241 |
- }, |
|
216 |
+ path: this.$filters.ctxPath("/login.page") |
|
242 | 217 |
}); |
243 | 218 |
} catch (error) { |
244 | 219 |
const errorData = error.response.data; |
... | ... | @@ -306,7 +281,7 @@ |
306 | 281 |
this.mbrVO.mblTelno = input; |
307 | 282 |
} else if (input.length <= 6) { |
308 | 283 |
this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3); |
309 |
- } else if (input.length === 10) { |
|
284 |
+ } else if (input.length <= 10) { |
|
310 | 285 |
// 10자리는 3-3-4 |
311 | 286 |
this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3, 6) + '-' + input.slice(6); |
312 | 287 |
} else { |
... | ... | @@ -493,17 +468,11 @@ |
493 | 468 |
|
494 | 469 |
// 취소 |
495 | 470 |
fnCancel() { |
496 |
- const isCheck = confirm("작성을 취소하시겠습니까?"); |
|
471 |
+ const isCheck = confirm("회원가입을 취소하시겠습니까?"); |
|
497 | 472 |
if (isCheck) { |
498 |
- if (this.pageRole != "adm") { |
|
499 |
- this.$router.push({ |
|
500 |
- path: this.routerPaths.view, |
|
501 |
- }); |
|
502 |
- } else { |
|
503 |
- this.$router.push({ |
|
504 |
- path: this.routerPaths.list, |
|
505 |
- }); |
|
506 |
- } |
|
473 |
+ this.$router.push({ |
|
474 |
+ path: this.$filters.ctxPath("/login.page"), |
|
475 |
+ }); |
|
507 | 476 |
} |
508 | 477 |
}, |
509 | 478 |
}, |
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?