From 71ae5976e7dddc5693801064e48bdd372c63f86b Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 월, 06 12월 2021 11:18:16 +0900
Subject: [PATCH] 연관 이슈 추가

---
 src/main/webapp/scripts/app/issue/issueModify.controller.js |   34 +++++++++++++++++++++++-----------
 1 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/scripts/app/issue/issueModify.controller.js b/src/main/webapp/scripts/app/issue/issueModify.controller.js
index 8d55538..b0c06ab 100644
--- a/src/main/webapp/scripts/app/issue/issueModify.controller.js
+++ b/src/main/webapp/scripts/app/issue/issueModify.controller.js
@@ -59,7 +59,7 @@
                         priorityId : "",    //  �슦�꽑�닚�쐞 �븘�씠�뵒
                         severityId : "",    //  以묒슂�룄 �븘�씠�뵒
                         issueStatusId : "", //  �씠�뒋 �긽�깭 �븘�씠�뵒
-                        users : [],     //  �떞�떦�옄
+                        // users : [],     //  �떞�떦�옄
                         departments : [], // �떞�떦遺��꽌
                         files : [], //  �뾽濡쒕뱶 �뙆�씪
                         attachedFiles : [], //  �꽟癒몃끂�듃濡� �뙆�씪 �뾽濡쒕뱶瑜� �븷 寃쎌슦 �꽌踰꾩뿉�꽌 pk瑜� �뵲怨� issue id�� �뿰�룞 �옉�뾽�씠 �븘�슂�븯�떎.
@@ -72,7 +72,6 @@
                     departmentName : "",  // 遺��꽌紐� 寃��깋
                     companyId : -1,
                     companyName : "",   // �뾽泥대챸 寃��깋
-                    companyCode : "",   // �뾽泥� 肄붾뱶
                     companyManager : "",   // �뾽泥� �떞�떦�옄
                     companyTel : "",  // �뾽泥� �쟾�솕踰덊샇
                     companyEmail : "",  // �뾽泥� �씠硫붿씪
@@ -87,6 +86,7 @@
                     hostingId : -1,
                     hostingName : "", // �샇�뒪�똿紐� 寃��깋
                     hostingManager : "", // �샇�뒪�똿 �떞�떦�옄
+                    hostingCode : "", // �샇�뒪�똿 肄붾뱶
                     hostingTel : "", // �샇�뒪�똿 �쟾�솕踰덊샇
                     hostingEmail : "", // �샇�뒪�똿 �씠硫붿씪
                     hostingMemo : "", // �샇�뒪�똿 鍮꾧퀬
@@ -144,7 +144,7 @@
                 });
 
                 $scope.$watch("vm.form.issueTypeId", function (newValue, oldValue) {
-                     $scope.vm.partnerVos = $scope.fn.getPartners();
+                    $scope.vm.partnerVos = $scope.fn.getPartners();
                 });
 
 
@@ -169,9 +169,9 @@
                 }
 
                 //  �떞�떦�옄 �궘�젣
-                 function removeManager(index) {
-                     $scope.vm.form.users.splice(index, 1);
-                 }
+                function removeManager(index) {
+                    $scope.vm.form.users.splice(index, 1);
+                }
 
                 // �떞�떦遺��꽌 �궘�젣
                 function removeDepartment(index) {
@@ -737,6 +737,12 @@
                         switch (issueTypeCustomField.customFieldVo.customFieldType) {
                             case "INPUT" :
                             case "SINGLE_SELECT" :
+                            case "NUMBER" :
+                            case "DATETIME" :
+                            case "IP_ADDRESS" :
+                            case "EMAIL" :
+                            case "SITE" :
+                            case "TEL" :
                                 issueTypeCustomField.useValues = "";
                                 break;
 
@@ -896,12 +902,17 @@
                 }
 
                 function getPartners() {
-
-                    HostingField.getPartnerList($resourceProvider.getContent(
-                        {},
+                    if($scope.vm.form.issueTypeId === ""){
+                        $scope.vm.form.issueTypeId = $rootScope.issueTypeMenu.id
+                    }
+                    var content = {
+                        issueTypeId : $scope.vm.form.issueTypeId,
+                    };
+                    Issue.findPartners($resourceProvider.getContent(
+                        content,
                         $resourceProvider.getPageContent(0, 1))).then(function (result) {
                         if (result.data.message.status === "success") {
-                            $scope.vm.partnerVos = result.data.data.usePartnerVos;
+                            $scope.vm.partnerVos = result.data.data;
                         }
                     });
 
@@ -913,6 +924,7 @@
                     var promises = {
                         detail : $scope.fn.detail(),
                         getIssueTypes : $scope.fn.getIssueTypes(),
+                        getPriorities : $scope.fn.getPriorities(),
                         getSeverities : $scope.fn.getSeverities(),
                         getPartners : $scope.fn.getPartners()
                     };
@@ -924,4 +936,4 @@
 
                 $scope.fn.startExecute();
             }]);
-    });
+    });
\ No newline at end of file

--
Gitblit v1.8.0