From 54eee826bbe9f980a7fb65dc5e9ff250eee890fb Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 금, 03 12월 2021 10:40:01 +0900 Subject: [PATCH] 이슈 만들기, 수정 페이지에서 이슈유형 타입 아이디 못 가져오는 오류 수정 --- src/main/webapp/scripts/app/issue/issueModify.controller.js | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 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..3b27aa5 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�� �뿰�룞 �옉�뾽�씠 �븘�슂�븯�떎. @@ -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