From 836153c85c1134081e599fbdf5f17a3152d56341 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 월, 29 11월 2021 16:31:16 +0900
Subject: [PATCH] 사용자정의 필드 수정

---
 src/main/webapp/scripts/app/customField/customFieldModify.controller.js |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/scripts/app/customField/customFieldModify.controller.js b/src/main/webapp/scripts/app/customField/customFieldModify.controller.js
index 04f2a7d..3eef946 100644
--- a/src/main/webapp/scripts/app/customField/customFieldModify.controller.js
+++ b/src/main/webapp/scripts/app/customField/customFieldModify.controller.js
@@ -30,11 +30,16 @@
                     form : {
                         id : parameter.id,
                         name : "",
-                        customFieldType : "",    //  �궗�슜�옄 �젙�쓽 �븘�뱶 �쑀�삎
+                        customFieldType : "INPUT",    //  �궗�슜�옄 �젙�쓽 �븘�뱶 �쑀�삎
                         defaultValue : "",  //  湲곕낯 媛�
                         options : [],  //  �샃�뀡
                         optionText : "",   //  �샃�뀡 媛�
-                        useCustomFieldValue : false //  �씠�뒋�뿉�꽌 �궗�슜�릺怨� �엳�뒗吏� �뿬遺� �솗�씤
+                        useCustomFieldValue : false, //  �씠�뒋�뿉�꽌 �궗�슜�릺怨� �엳�뒗吏� �뿬遺� �솗�씤
+                        numberType : "",
+                        ipAdress : "",
+                        email : "",
+                        site : "",
+                        tel : ""
                     },
                     origin : {
                         options : []    //  �샃�뀡 媛� 蹂�寃� �뿬遺� �솗�씤�쓣 �쐞�빐 �꽌踰꾩뿉�꽌 �궡�젮�삱 �븣 �썝蹂� 媛믪쓣 �뵲濡� 愿�由ы븳�떎.
@@ -137,7 +142,7 @@
                     }
 
                     //  �떎以�, �떒�씪 �꽑�깮�씪 寃쎌슦�뿉
-                    if ($scope.vm.form.customFieldType !== "INPUT") {
+                    if ($scope.vm.form.customFieldType === "MULTI_SELECT" || $scope.vm.form.customFieldType === "SINGLE_SELECT") {
                         //  �샃�뀡�씠 1媛� �씠�븯�씪 寃쎌슦�뿉�뒗 ���젆�듃 �깭洹몃�� 留뚮뱾 �닔 �뾾�떎.
                         if ($scope.vm.form.options.length < 1) {
                             return true;
@@ -151,10 +156,15 @@
                 function formSubmit() {
                     $rootScope.spinner = true;
 
-                    var content = angular.copy($scope.vm.form);
-                    content.name = $rootScope.preventXss(content.name);
+                     var content = angular.copy($scope.vm.form);
+                     content.name = $rootScope.preventXss(content.name);
+                     content.numberType =$scope.vm.form.numberType;
+                     content.ipAdress = $scope.vm.form.ipAdress;
+                     content.email = $scope.vm.form.email;
+                     content.site = $scope.vm.form.site;
+                     content.tel =$scope.vm.form.tel;
 
-                    if ($scope.vm.form.customFieldType !== 'INPUT') {
+                    if ($scope.vm.form.customFieldType === 'MULTI_SELECT'|| $scope.vm.form.customFieldType === "SINGLE_SELECT") {
                         var convertDefaultValues = "";
 
                         angular.forEach(content.defaultValue.split("#"), function (value) {

--
Gitblit v1.8.0