From 916a3cbabe4e50062fce61ff6f2f5d46c05dfbd1 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 목, 17 3월 2022 17:47:45 +0900 Subject: [PATCH] - api로 이슈 추가 시 url/ip로 업체 찾는 코드 수정 --- src/main/webapp/scripts/app/customField/customFieldAdd.controller.js | 80 +++++++++------------------------------ 1 files changed, 19 insertions(+), 61 deletions(-) diff --git a/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js b/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js index 563582d..b1ce6f2 100644 --- a/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js +++ b/src/main/webapp/scripts/app/customField/customFieldAdd.controller.js @@ -24,13 +24,20 @@ name : "", // �궗�슜�옄 �젙�쓽 �븘�뱶 紐� customFieldType : "INPUT", // �궗�슜�옄 �젙�쓽 �븘�뱶 �쑀�삎 defaultValue : "", // 湲곕낯 媛� + defaultNumValue : "", // 湲곕낯 媛� + defaultDateValue : "", // 湲곕낯 媛� + defaultIpValue : "", // 湲곕낯 媛� + defaultEmailValue : "", // 湲곕낯 媛� + defaultTelValue : "", // 湲곕낯 媛� + defaultSiteValue : "", // 湲곕낯 媛� options : [], // �샃�뀡 optionText : "", // �샃�뀡 媛� numberType : "", - ipAdress : "", + ipAddress : "", email : "", site : "", - tel : "" + tel : "", + requiredData : false } }; @@ -41,12 +48,18 @@ // �븘�뱶 �쑀�삎�쓣 蹂�寃� �뻽�쓣 �븣 臾몄옄�뿴 �븘�뱶�씪 寃쎌슦�뿉�뒗 �샃�뀡 媛믪쓣 珥덇린�솕�빐以��떎. function changeFieldType() { - if ($scope.vm.form.customFieldType === "INPUT") { - $scope.vm.form.options = []; - $scope.vm.form.optionText = ""; - } + // if ($scope.vm.form.customFieldType === "INPUT") { + // $scope.vm.form.name = ""; + $scope.vm.form.options = []; + $scope.vm.form.optionText = ""; $scope.vm.form.defaultValue = ""; + $scope.vm.form.defaultNumValue = ""; + $scope.vm.form.defaultDateValue = ""; + $scope.vm.form.defaultIpValue = ""; + $scope.vm.form.defaultEmailValue = ""; + $scope.vm.form.defaultTelValue = ""; + $scope.vm.form.defaultSiteValue = ""; } @@ -93,55 +106,6 @@ } } - // function chkPhoneType(type) { - // var input = $scope.vm.form.tel - // - // //focus out�씤 寃쎌슦 - // //input type�쓣 text濡� 諛붽씀怨� '-'異붽� - // if(type == 'blur'){ - // $scope.vm.form.tel; - // var phone = chkItemPhone(input); - // } - // - // //focus�씤 寃쎌슦 - // //input type�쓣 number濡� 諛붽씀怨� '-' �젣嫄� - // if(type == 'focus'){ - // var phone = input.replace( /-/gi, ''); - // $scope.vm.form.tel('type', 'number'); - // } - // - // $scope.vm.form.tel(phone); - // } - // - // function chkItemPhone(temp) { - // var number = temp.replace(/[^0-9]/g, ""); - // var phone = ""; - // - // if (number.length < 9) { - // return number; - // } else if (number.length < 10) { - // phone += number.substr(0, 2); - // phone += "-"; - // phone += number.substr(2, 3); - // phone += "-"; - // phone += number.substr(5); - // } else if (number.length < 11) { - // phone += number.substr(0, 3); - // phone += "-"; - // phone += number.substr(3, 3); - // phone += "-"; - // phone += number.substr(6); - // } else { - // phone += number.substr(0, 3); - // phone += "-"; - // phone += number.substr(3, 4); - // phone += "-"; - // phone += number.substr(7); - // } - // - // return phone; - // } - // �뤌 泥댄겕 function formCheck(formInvalid) { if (formInvalid) { @@ -155,7 +119,6 @@ return true; } } - return false; } @@ -165,11 +128,6 @@ var content = angular.copy($scope.vm.form); content.name = $rootScope.preventXss(content.name); - content.numberType = $rootScope.preventXss(content.numberType); - content.ipAdress = $rootScope.preventXss(content.ipAdress); - content.email = $rootScope.preventXss(content.email); - content.site = $rootScope.preventXss(content.site); - content.tel = $rootScope.preventXss(content.tel); if ($scope.vm.form.customFieldType === 'MULTI_SELECT'|| $scope.vm.form.customFieldType === "SINGLE_SELECT") { var convertDefaultValues = ""; -- Gitblit v1.8.0