하석형 하석형 06-25
250625 하석형 사용자 휴대폰 하이픈 입력폼 수정
@2a70d603e817884d85314d6a614181602ed0c119
client/views/component/userInfo/UserInfoInsert.vue
--- client/views/component/userInfo/UserInfoInsert.vue
+++ client/views/component/userInfo/UserInfoInsert.vue
@@ -350,7 +350,7 @@
         this.mbrVO.mblTelno = input;
       } else if (input.length <= 6) {
         this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3);
-      } else if (input.length === 10) {
+      } else if (input.length <= 10) {
         // 10자리는 3-3-4
         this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3, 6) + '-' + input.slice(6);
       } else {
@@ -496,8 +496,10 @@
     // 유효성검사
     validation() {
       // 아이디
-      if (!this.validateId(this.mbrVO.lgnId)) {
-        return false;
+      if(this.mbrVO.mbrType == null || this.mbrVO.mbrType == 'S') {
+        if (!this.validateId(this.mbrVO.lgnId)) {
+          return false;
+        }
       }
       // 이름
       if (!this.validateNm(this.mbrVO.mbrNm)) {
client/views/pages/login/SignUp.vue
--- client/views/pages/login/SignUp.vue
+++ client/views/pages/login/SignUp.vue
@@ -196,29 +196,8 @@
 		};
 	},
 	created() {
-		// this.fnMbrViewDetail();
 	},
 	methods: {
-		// axios: 사용자 정보 상세 조회
-		async fnMbrViewDetail() {
-			console.log("fnMbrViewDetail: ", this.pageId);
-			// 데이터 세팅
-			const data = { mbrId: this.pageId };
-			// 실행
-			try {
-				const response = await mbrDetailProc(data);
-				this.mbrVO = response.data.data;
-				console.log("mbrVO: ", this.mbrVO);
-			} catch (error) {
-				const errorData = error.response.data;
-				if (errorData.message != null && errorData.message != "") {
-					alert(error.response.data.message);
-				} else {
-					alert("에러가 발생했습니다.\n관리자에게 문의해주세요.");
-				}
-			}
-		},
-
 		// axios: 사용자 정보 상세 조회
 		async fnInsert() {
 			// 유효성검사
@@ -234,11 +213,7 @@
 				const response = await mbrInsertProc(data);
 				alert(response.data.message);
 				this.$router.push({
-					path: this.$filters.ctxPath("/"),
-					query: {
-						pageId:
-							this.pageId == null ? response.data.data.mbrId : this.pageId,
-					},
+					path: this.$filters.ctxPath("/login.page")
 				});
 			} catch (error) {
 				const errorData = error.response.data;
@@ -306,7 +281,7 @@
 				this.mbrVO.mblTelno = input;
 			} else if (input.length <= 6) {
 				this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3);
-			} else if (input.length === 10) {
+			} else if (input.length <= 10) {
 				// 10자리는 3-3-4
 				this.mbrVO.mblTelno = input.slice(0, 3) + '-' + input.slice(3, 6) + '-' + input.slice(6);
 			} else {
@@ -493,17 +468,11 @@
 
 		// 취소
 		fnCancel() {
-			const isCheck = confirm("작성을 취소하시겠습니까?");
+			const isCheck = confirm("회원가입을 취소하시겠습니까?");
 			if (isCheck) {
-				if (this.pageRole != "adm") {
-					this.$router.push({
-						path: this.routerPaths.view,
-					});
-				} else {
-					this.$router.push({
-						path: this.routerPaths.list,
-					});
-				}
+				this.$router.push({
+					path: this.$filters.ctxPath("/login.page"),
+				});
 			}
 		},
 	},
Add a comment
List