Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa
| | |
| | | "send": "보내기", |
| | | "emailExplain": "받는 사람의 이메일 형식을 입력하셔야 합니다.", |
| | | "sendToPerson" : "다른 사용자에게 메일을 보냅니다.", |
| | | "least10CharactersPhone" : "핸드폰 번호 형식이 맞지 않습니다.(10자리 이상)", |
| | | "least9CharactersTel" : "전화번호 형식이 맞지 않습니다.(9자리 이상)", |
| | | "selected": "선택됨", |
| | | "selectable": "선택 가능", |
| | | "password": "비밀번호", |
| | |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | getIssueIspFieldListCallBack : getIssueIspFieldListCallBack, |
| | | getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack, |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | $scope.vm.form.hostingId = result[0].id; |
| | | }); |
| | | |
| | | // 연락처 입력시 하이픈 자동 입력 |
| | | function autoHyphenPhone() { |
| | | let phone = $scope.vm.form.tel |
| | | let seoul = $scope.vm.form.tel |
| | | |
| | | // 핸드폰 및 지방 지역번호 조건 |
| | | phone.replace(/^[0-9]/g, ''); |
| | | // 서울 지역번호 조건 |
| | | seoul.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 9) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 10) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | // 폼 전송 |
| | | function formSubmit(condition) { |
| | | $rootScope.spinner = true; |
| | | $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,''); // 전화번호를 보낼땐 하이픈을 제거해서 DB에 저장 |
| | | |
| | | var content = { |
| | | name : $rootScope.preventXss($scope.vm.form.name), // 업체명 |
| | |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | getIssueIspFieldListCallBack : getIssueIspFieldListCallBack, |
| | | getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack, |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | getIssueHostingFieldListCallBack : getIssueHostingFieldListCallBack |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | // 호스팅정보 autocomplete page 업데이트 |
| | | function getIssueHostingFieldListCallBack(result) { |
| | | $scope.vm.autoCompletePage.hostingField.totalPage = result.data.page.totalPage; |
| | | } |
| | | |
| | | // 연락처 입력시 - 자동 입력 |
| | | function autoHyphenPhone() { |
| | | let phone = $scope.vm.form.tel |
| | | let seoul = $scope.vm.form.tel |
| | | |
| | | // 핸드폰 및 지방 지역번호 조건 |
| | | phone.replace(/^[0-9]/g, ''); |
| | | // 서울 지역번호 조건 |
| | | seoul.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 9) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 10) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | // 폼 체크 |
| | |
| | | $scope.vm.form.name = result.data.content.name; |
| | | $scope.vm.form.manager = result.data.content.manager; |
| | | $scope.vm.form.email = result.data.content.email; |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | let hyphen = result.data.content.tel.trim(); |
| | | let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); |
| | | result.data.content.tel = phone; |
| | | $scope.vm.form.tel = result.data.content.tel; |
| | | $scope.vm.form.url = result.data.content.url; |
| | | $scope.vm.form.memo = result.data.content.memo; |
| | |
| | | $scope.fn = { |
| | | cancel : cancel, // 팝업 창 닫기 |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | formCheck : formCheck // 폼 체크 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | } |
| | | }; |
| | | |
| | | function autoHyphenPhone() { |
| | | let phone = $scope.vm.form.tel; |
| | | let seoul = $scope.vm.form.tel; |
| | | |
| | | phone.replace(/^[0-9]/g, ''); |
| | | seoul.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 9) { |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 10) { |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | // 폼 체크 |
| | | function formCheck(formInvalid) { |
| | | if (formInvalid) { |
| | |
| | | // 폼 전송 |
| | | function formSubmit(condition) { |
| | | $rootScope.spinner = true; |
| | | $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,''); |
| | | |
| | | var content = { |
| | | code : $rootScope.preventXss($scope.vm.form.code), //코드 |
| | |
| | | detail : detail, // 상세 조회 |
| | | cancel : cancel, // 팝업 창 닫기 |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | formCheck : formCheck // 폼 체크 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | } |
| | | }; |
| | | |
| | | function autoHyphenPhone () { |
| | | let phone = $scope.vm.form.tel; |
| | | let seoul = $scope.vm.form.tel; |
| | | |
| | | // 핸드폰 및 지방 지역번호 조건 |
| | | phone.replace(/^[0-9]/g,''); |
| | | // 서울 지역번호 조건 |
| | | seoul.replace(/^[0-9]/g,''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3) |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 9) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 10) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | // 폼 체크 |
| | | function formCheck(formInvalid) { |
| | | if (formInvalid) { |
| | |
| | | // 폼 전송 |
| | | function formSubmit() { |
| | | $rootScope.spinner = true; |
| | | $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,''); // 전화번호를 보낼땐 하이픈을 제거해서 DB에 저장 |
| | | |
| | | var content = { |
| | | id : parameter.id, |
| | |
| | | $scope.vm.form.name = result.data.content.name; |
| | | $scope.vm.form.manager = result.data.content.manager; |
| | | $scope.vm.form.email = result.data.content.email; |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | let hyphen = result.data.content.tel.trim(); |
| | | let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); |
| | | result.data.content.tel = phone; |
| | | $scope.vm.form.tel = result.data.content.tel; |
| | | $scope.vm.form.url = result.data.content.url; |
| | | $scope.vm.form.memo = result.data.content.memo; |
| | |
| | | $scope.fn = { |
| | | cancel : cancel, // 팝업 창 닫기 |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | formCheck : formCheck // 폼 체크 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | return false; |
| | | } |
| | | |
| | | // 연락처 입력시 하이픈 자동 입력 |
| | | function autoHyphenPhone() { |
| | | let phone = $scope.vm.form.tel |
| | | let seoul = $scope.vm.form.tel |
| | | |
| | | // 핸드폰 및 지방 지역번호 조건 |
| | | phone.replace(/^[0-9]/g, ''); |
| | | // 서울 지역번호 조건 |
| | | seoul.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 9) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) === "02" && seoul.length === 10) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | // 폼 전송 |
| | | function formSubmit(condition) { |
| | | $rootScope.spinner = true; |
| | | $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,''); // 전화번호를 보낼땐 하이픈을 제거해서 DB에 저장 |
| | | |
| | | var content = { |
| | | code : $rootScope.preventXss($scope.vm.form.code), //코드 |
| | |
| | | detail : detail, // 상세 조회 |
| | | cancel : cancel, // 팝업 창 닫기 |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | formCheck : formCheck // 폼 체크 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | } |
| | | }; |
| | | |
| | | // 연락처 입력시 하이픈 자동 입력 |
| | | function autoHyphenPhone() { |
| | | let phone = $scope.vm.form.tel |
| | | let seoul = $scope.vm.form.tel |
| | | |
| | | // 핸드폰 및 지방 지역번호 조건 |
| | | phone.replace(/^[0-9]/g, ''); |
| | | // 서울 지역번호 조건 |
| | | seoul.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (phone.length < 4) { |
| | | return phone; |
| | | } else if (phone.length < 7) { |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 9) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 5); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(5); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (seoul.substring(0, 2) == "02" && seoul.length == 10) { // 서울 지역번호 조건 |
| | | tmp += seoul.substring(0, 2); |
| | | tmp += '-'; |
| | | tmp += seoul.substring(2, 6); |
| | | tmp += '-'; |
| | | tmp += seoul.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else if (phone.length < 11) { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(6); |
| | | $scope.vm.form.tel = tmp; |
| | | } else { // 핸드폰 및 지방 지역번호 조건 |
| | | tmp += phone.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += phone.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += phone.substr(7); |
| | | $scope.vm.form.tel = tmp; |
| | | } |
| | | return phone; |
| | | } |
| | | |
| | | function formCheck(formInvalid) { |
| | | if (formInvalid) { |
| | | return true; |
| | |
| | | // 폼 전송 |
| | | function formSubmit() { |
| | | $rootScope.spinner = true; |
| | | $scope.vm.form.tel = $scope.vm.form.tel.replace(/\-/g,''); // 전화번호를 보낼땐 하이픈을 제거해서 DB에 저장 |
| | | |
| | | var content = { |
| | | id : parameter.id, |
| | |
| | | $scope.vm.form.name = result.data.content.name; |
| | | $scope.vm.form.manager = result.data.content.manager; |
| | | $scope.vm.form.email = result.data.content.email; |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | let hyphen = result.data.content.tel.trim(); |
| | | let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); |
| | | result.data.content.tel = phone; |
| | | $scope.vm.form.tel = result.data.content.tel; |
| | | $scope.vm.form.url = result.data.content.url; |
| | | $scope.vm.form.memo = result.data.content.memo; |
| | |
| | | $scope.fn = { |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | onFileSelect : onFileSelect, // 프로필 업로드 |
| | | autoHyphenPhone : autoHyphenPhone // 연락처 입력시 하이픈 자동 입력 |
| | | onFileSelect : onFileSelect // 프로필 업로드 |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | else { |
| | | $scope.vm.form.profileImageName = ""; |
| | | } |
| | | } |
| | | |
| | | // 연락처 입력시 하이픈 자동 입력 |
| | | function autoHyphenPhone() { |
| | | // 핸드폰 번호 조건 |
| | | var str = $scope.vm.form.phone |
| | | str.replace(/^[0-9]/g, ''); |
| | | var tmp = ''; |
| | | |
| | | if (str.length < 4) { |
| | | return str; |
| | | } else if (str.length < 7) { |
| | | tmp += str.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += str.substr(3); |
| | | $scope.vm.form.phone = tmp; |
| | | } else if (str.length < 11) { |
| | | tmp += str.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += str.substr(3, 3); |
| | | tmp += '-'; |
| | | tmp += str.substr(6); |
| | | $scope.vm.form.phone = tmp; |
| | | } else { |
| | | tmp += str.substr(0, 3); |
| | | tmp += '-'; |
| | | tmp += str.substr(3, 4); |
| | | tmp += '-'; |
| | | tmp += str.substr(7); |
| | | $scope.vm.form.phone = tmp; |
| | | } |
| | | return str |
| | | } |
| | | |
| | | // 폼 체크 |
| | |
| | | content.workspaceName = $rootScope.preventXss(content.workspaceName); |
| | | content.password = CryptoJS.SHA512(content.password).toString(); |
| | | content.language = $rootScope.language; // 기본 언어 |
| | | content.phone = content.phone.replace(/\-/g,''); // 전화번호를 보낼땐 하이픈을 제거해서 DB에 저장 |
| | | |
| | | User.add({ |
| | | method : "POST", |
| | |
| | | issueHistoryVos : [], // 이슈 기록 정보 |
| | | issueHistoryDates : [], // 이슈 기록 정보 날짜 |
| | | myLevel : "", |
| | | myDepartments : [] |
| | | myDepartments : [], |
| | | phone : "" |
| | | }; |
| | | |
| | | // 직접 입력에서 날짜 선택시 이슈 기록 정보 조회 |
| | |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.myLevel = result.data.data.levelName; |
| | | $scope.vm.myDepartments = result.data.data.departmentName; |
| | | // 전화번호 하이픈 추가하여 조회 |
| | | $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 { |
| | | SweetAlert.swal($filter("translate")("users.failedToRetrieveIssueHistory"), result.data.message.message, "error"); // "이슈 기록 정보 조회 실패" |
| | |
| | | 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")}; // "사용자 세션이 존재하지 않습니다." |
| | |
| | | </div> |
| | | <div> |
| | | <div class="form-group"> |
| | | <label for="companyFieldAddForm7" class="issue-label"> |
| | | <span translate="companyField.tel">전화번호</span> |
| | | </label> |
| | | <label for="companyFieldAddForm7" class="issue-label"><span translate="companyField.tel">전화번호</span></label> |
| | | <input id="companyFieldAddForm7" |
| | | name="tel" |
| | | type="text" |
| | |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.tel" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="companyFieldAddForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="companyFieldAddForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.tel" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="companyFieldModifyForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="companyFieldModifyForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-model="vm.form.tel" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="hostingFieldAddForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="hostingFieldAddForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | class="form-control" |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | ng-pattern="/^\d{2,3}-\d{3,4}-\d{4}$/" |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.tel" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="hostingFieldModifyForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="hostingFieldModifyForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.tel" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="ispFieldAddForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="ispFieldAddForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.tel" |
| | | maxlength="30"> |
| | | maxlength="11" |
| | | minlength="9"> |
| | | <div ng-show="ispFieldModifyForm.tel.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상) |
| | | </div> |
| | | <!-- <div ng-show="ispFieldModifyForm.tel.$error.pattern" class="help-block form-text text-danger"--> |
| | | <!-- translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.--> |
| | | <!-- </div>--> |
| | |
| | | ng-model="vm.form.workspaceName" |
| | | kr-input |
| | | autocomplete="off" |
| | | maxLength="20" |
| | | > |
| | | maxLength="20"> |
| | | <small class="fc-grey" translate="users.enterTheNameInWorkspace">사용하고 싶은 업무공간의 이름을 입력하세요. |
| | | </small> |
| | | </div> |
| | |
| | | <label for="userAddForm6"><span translate="users.phoneNumber">연락처</span> </label> |
| | | <input id="userAddForm6" |
| | | type="text" |
| | | maxlength="30" |
| | | name="phone" |
| | | maxlength="11" |
| | | minlength="10" |
| | | class="form-control" |
| | | input-regex="[^0-9]" |
| | | kr-input |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.phone"> |
| | | <small class="fc-grey"><span translate="users.contactedEnterPhone">연락가능한 핸드폰 번호를 입력하세요.</span> |
| | | </small> |
| | | <small class="fc-grey"><span translate="users.contactedEnterPhone">연락가능한 핸드폰 번호를 입력하세요.</span></small> |
| | | <div ng-show="userAddForm.phone.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least10CharactersPhone">핸드폰 번호 형식이 맞지 않습니다.(10자리 이상) |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <label for="userAddForm6"><span translate="users.phoneNumber">연락처</span> </label> |
| | | <input id="userAddForm6" |
| | | type="text" |
| | | maxlength="30" |
| | | name="phone" |
| | | maxlength="11" |
| | | minlength="10" |
| | | class="form-control" |
| | | input-regex="[^0-9]" |
| | | kr-input |
| | | autocomplete="off" |
| | | ng-keyup="fn.autoHyphenPhone()" |
| | | ng-model="vm.form.phone"> |
| | | <small class="fc-grey"><span translate="users.contactedEnterPhone">연락가능한 핸드폰 번호를 입력하세요.</span> |
| | | </small> |
| | | <small class="fc-grey"><span translate="users.contactedEnterPhone">연락가능한 핸드폰 번호를 입력하세요.</span></small> |
| | | <div ng-show="userAddForm.phone.$error.minlength" class="help-block form-text text-danger" |
| | | translate="common.least10CharactersPhone">핸드폰 번호 형식이 맞지 않습니다.(10자리 이상) |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input class="form-control" |
| | | type="text" |
| | | id="userModifyForm4" |
| | | maxLength="20" |
| | | maxLength="11" |
| | | kr-input |
| | | input-regex="[^0-9]" |
| | | autocomplete="off" |
| | | ng-model="vm.form.phone"> |
| | | <small class="fc-grey" translate="users.contactedEnterPhone">연락가능한 핸드폰 번호를 입력하세요.</small> |
| | | </div> |
| | | </div> |
| | | </div> |