From d8b90cea2b95f8aedd7a213e71908b44c1df6728 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 월, 29 11월 2021 14:37:02 +0900
Subject: [PATCH] - api 기본값 설정 기능 완료 - api 중복 필드 설정 기능 완료

---
 src/main/webapp/scripts/app/issue/issueDetail.controller.js |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/scripts/app/issue/issueDetail.controller.js b/src/main/webapp/scripts/app/issue/issueDetail.controller.js
index 0c579e4..d2837a2 100644
--- a/src/main/webapp/scripts/app/issue/issueDetail.controller.js
+++ b/src/main/webapp/scripts/app/issue/issueDetail.controller.js
@@ -41,6 +41,7 @@
                 $scope.fn.addDownIssueTableConfig = addDownIssueTableConfig;      // �븯�쐞 �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙
                 $scope.fn.getRelTableConfigs = getRelTableConfigs;
                 $scope.fn.getDownTableConfigs = getDownTableConfigs;
+                $scope.fn.containsPartner = containsPartner;
 
                 //  �씠�뒋 紐⑸줉 而⑦듃濡ㅻ윭 vm, fn �긽�냽 以�
                 $scope.vm.viewer = {};
@@ -462,7 +463,8 @@
                 // �뿰愿� �씠�뒋 �긽�꽭 議고쉶
                 function getRelTableConfigs() {
                     var content = {
-                        issueId : $scope.vm.viewer.id
+                        issueId : $scope.vm.viewer.id,
+                        issueTypeId : $rootScope.getCurrentIssueTypeId()
                     };
 
                     IssueTableConfig.relationDetail($resourceProvider.getContent(
@@ -526,7 +528,8 @@
                 // �븯�쐞 �씠�뒋 �긽�꽭 議고쉶
                 function getDownTableConfigs() {
                     var content = {
-                        issueId : $scope.vm.viewer.id
+                        issueId : $scope.vm.viewer.id,
+                        issueTypeId : $rootScope.getCurrentIssueTypeId()
                     };
 
                     IssueTableConfig.downDetail($resourceProvider.getContent(
@@ -653,9 +656,9 @@
                     $scope.vm.editor.issueStatus = false;
                     $scope.vm.issueForm.issueStatusList = [];
                     $scope.vm.issueForm.issueStatusId = "";
-                    if ($scope.$root.$$phase !== '$apply' && $scope.$root.$$phase !== '$digest') {
+                    /*if ($scope.$root.$$phase !== '$apply' && $scope.$root.$$phase !== '$digest') {
                         $scope.$apply();
-                    }
+                    }*/
                 }
 
                 //  �씠�뒋 �긽�깭 蹂�寃�
@@ -727,6 +730,7 @@
                             parameter : function () {
                                 return {
                                     issueTypeId : $scope.vm.viewer.issueTypeVo.id
+
                                 };
                             }
                         }
@@ -745,6 +749,7 @@
                                 return {
                                     issueTypeId : $scope.vm.viewer.issueTypeVo.id
                                 };
+
                             }
                         }
                     });
@@ -776,6 +781,21 @@
                             SweetAlert.swal($filter("translate")("issue.errorRemovableIssueStatusList"), result.data.message.message, "error"); // "�씠�룞 媛��뒫�븳 �씠�뒋 �긽�깭 紐⑸줉 議고쉶 �삤瑜�"
                         }
                     });
+                }
+
+                // �뾽泥�/ISP/�샇�뒪�똿 �씠由꾩씠 �룷�븿 �뿬遺� �솗�씤
+                function containsPartner(name) {
+                    var result = false;
+
+                    if ($scope.vm.viewer.usePartnerVos != null) {
+                        $scope.vm.viewer.usePartnerVos.forEach(function (partnerVo) {
+                            if (name === partnerVo.name) {
+                                result = true;
+                            }
+                        });
+                    }
+                    return result;
+
                 }
 
                 //  �씠�뒋 �긽�꽭 �젙蹂� 議고쉶
@@ -1063,7 +1083,6 @@
                         }
                     });
                 }
-
             }
         ]);
     }

--
Gitblit v1.8.0