From 4efc13e80be250bff650a4ffe44f66cf16a3acf6 Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 화, 07 12월 2021 10:36:52 +0900 Subject: [PATCH] 이슈 추가, 수정 연관 구분 select창 추가 --- src/main/webapp/scripts/app/issue/issueModify.controller.js | 35 ++++++++++++++++++++++++++++------- 1 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/scripts/app/issue/issueModify.controller.js b/src/main/webapp/scripts/app/issue/issueModify.controller.js index f4b3e35..8c15c9c 100644 --- a/src/main/webapp/scripts/app/issue/issueModify.controller.js +++ b/src/main/webapp/scripts/app/issue/issueModify.controller.js @@ -72,7 +72,6 @@ departmentName : "", // 遺��꽌紐� 寃��깋 companyId : -1, companyName : "", // �뾽泥대챸 寃��깋 - companyCode : "", // �뾽泥� 肄붾뱶 companyManager : "", // �뾽泥� �떞�떦�옄 companyTel : "", // �뾽泥� �쟾�솕踰덊샇 companyEmail : "", // �뾽泥� �씠硫붿씪 @@ -87,6 +86,7 @@ hostingId : -1, hostingName : "", // �샇�뒪�똿紐� 寃��깋 hostingManager : "", // �샇�뒪�똿 �떞�떦�옄 + hostingCode : "", // �샇�뒪�똿 肄붾뱶 hostingTel : "", // �샇�뒪�똿 �쟾�솕踰덊샇 hostingEmail : "", // �샇�뒪�똿 �씠硫붿씪 hostingMemo : "", // �샇�뒪�똿 鍮꾧퀬 @@ -126,6 +126,18 @@ fileTableConfigs : [], // �뙆�씪 �뾽濡쒕뱶 �젙蹂� �뀒�씠釉� }; + // �뿰愿� �씪媛� 愿��젴 + $scope.vm.relationIssueTypes = + [ + { id: 0, name: $filter("translate")("issue.relationIssueType1") }, + { id: 1, name: $filter("translate")("issue.relationIssueType2") }, + { id: 2, name: $filter("translate")("issue.relationIssueType3") }, + { id: 3, name: $filter("translate")("issue.relationIssueType4") }, + { id: 4, name: $filter("translate")("issue.relationIssueType5") }, + { id: 5, name: $filter("translate")("issue.relationIssueType6") } + ]; + $scope.vm.relationIssueType = $scope.vm.relationIssueTypes[0]; + angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); // �봽濡쒖젥�듃媛� 蹂�寃쎈릺硫� �떞�떦遺��꽌 珥덇린�솕 @@ -144,7 +156,7 @@ }); $scope.$watch("vm.form.issueTypeId", function (newValue, oldValue) { - $scope.vm.partnerVos = $scope.fn.getPartners(); + $scope.vm.partnerVos = $scope.fn.getPartners(); }); @@ -169,9 +181,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 +749,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,8 +914,11 @@ } function getPartners() { + if($scope.vm.form.issueTypeId === ""){ + $scope.vm.form.issueTypeId = $rootScope.issueTypeMenu.id + } var content = { - issueTypeId : $scope.vm.form.issueTypeId + issueTypeId : $scope.vm.form.issueTypeId, }; Issue.findPartners($resourceProvider.getContent( content, @@ -927,4 +948,4 @@ $scope.fn.startExecute(); }]); - }); + }); \ No newline at end of file -- Gitblit v1.8.0