OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-12-23 e7fafe05e4d394a9f1ed4554793689f1bf864ff2
src/main/webapp/scripts/app/customField/customFieldModify.controller.js
@@ -36,10 +36,11 @@
                        optionText : "",   //  옵션 값
                        useCustomFieldValue : false, //  이슈에서 사용되고 있는지 여부 확인
                        numberType : "",
                        ipAdress : "",
                        ipAddress : "",
                        email : "",
                        site : "",
                        tel : ""
                        tel : "",
                        requiredData: ""
                    },
                    origin : {
                        options : []    //  옵션 값 변경 여부 확인을 위해 서버에서 내려올 때 원본 값을 따로 관리한다.
@@ -163,7 +164,8 @@
                     content.ipAdress = $scope.vm.form.ipAdress;
                     content.email = $scope.vm.form.email;
                     content.site = $scope.vm.form.site;
                     content.tel =$scope.vm.form.tel;
                     content.tel = $scope.vm.form.tel;
                     content.requiredData = $scope.vm.form.requiredData;
                    if ($scope.vm.form.customFieldType === 'MULTI_SELECT'|| $scope.vm.form.customFieldType === "SINGLE_SELECT") {
                        var convertDefaultValues = "";
@@ -218,6 +220,12 @@
                                $scope.vm.form.defaultValue = result.data.data.defaultValue;
                                $scope.vm.form.useCustomFieldValue = result.data.data.useCustomFieldValue;
                                if(result.data.data.requiredData === "Y"){
                                    $scope.vm.form.requiredData = true;
                                } else {
                                    $scope.vm.form.requiredData = false;
                                }
                                angular.forEach(result.data.data.customFieldValueVos, function (customFieldValueVo) {
                                    $scope.vm.form.options.push(customFieldValueVo.value);
                                });