| | |
| | | reservationNotifyTime : "", // 이메일 알림 시간 |
| | | realtimeNotify : "", // 이메일 실시간 |
| | | profileImage : null, // 업로드하는 프로필 |
| | | profileImageName : null // 프로필 명 |
| | | profileImageName : null, // 프로필 명 |
| | | projectManagerYN : false |
| | | } |
| | | }; |
| | | |
| | |
| | | $scope.vm.form.name = result.data.data.name; |
| | | $scope.vm.form.account = result.data.data.account; |
| | | $scope.vm.form.phone = result.data.data.phone; |
| | | $scope.vm.form.projectManagerYN = result.data.data.projectManagerYN; |
| | | if(result.data.data.reservationNotifyTime === "realTime"){ |
| | | $scope.vm.form.realtimeNotify = true; |
| | | }else{ |
| | | $scope.vm.form.reservationNotifyTime = result.data.data.reservationNotifyTime; |
| | | $scope.vm.form.reservationNotifyTime = ""; |
| | | } |
| | | } |
| | | else { |
| | |
| | | if (result.message.status === "success") { |
| | | if (result.data != null) { |
| | | $rootScope.user = result.data; // 전역으로 사용하는 로그인 사용자 정보. |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | $scope.vm.phone = $rootScope.user.phone; |
| | | let hyphen = $scope.vm.phone.trim(); |
| | | let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); |
| | | $rootScope.user.phone = phone; |
| | | } |
| | | else { |
| | | throw {message: $filter("translate")("users.notExistUserSession")}; // "사용자 세션이 존재하지 않습니다." |