From 12b63b4ac35669da3855bef4d22e2df08cf956eb Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 월, 10 1월 2022 12:39:08 +0900 Subject: [PATCH] 하위,연관이슈 - 테이블표시설정에 프로젝트에서 설정한 사용자정의필드만 가져오기 --- src/main/webapp/scripts/app/issue/issueAddDownTableConfig.controller.js | 75 ++++++++++++++++++++++--------------- 1 files changed, 45 insertions(+), 30 deletions(-) diff --git a/src/main/webapp/scripts/app/issue/issueAddDownTableConfig.controller.js b/src/main/webapp/scripts/app/issue/issueAddDownTableConfig.controller.js index e391679..2f6f35f 100644 --- a/src/main/webapp/scripts/app/issue/issueAddDownTableConfig.controller.js +++ b/src/main/webapp/scripts/app/issue/issueAddDownTableConfig.controller.js @@ -8,8 +8,8 @@ 'angular' ], function (app, angular) { - app.controller('issueAddDownTableConfigController', ['$scope', '$rootScope', '$log', '$resourceProvider', '$uibModalInstance', 'SweetAlert', '$timeout', 'IssueTableConfig', 'CustomField', '$q', '$filter', - function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, SweetAlert, $timeout, IssueTableConfig, CustomField, $q, $filter) { + app.controller('issueAddDownTableConfigController', ['$scope', '$rootScope', '$log', '$resourceProvider', '$uibModalInstance', 'SweetAlert', '$timeout', 'IssueTableConfig', 'IssueTypeCustomField', '$q', '$filter', 'parameter', + function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, SweetAlert, $timeout, IssueTableConfig, IssueTypeCustomField, $q, $filter, parameter) { // �븿�닔 紐⑥쓬 $scope.fn = { @@ -24,48 +24,61 @@ $scope.vm = { issueId : "", issueDownTableConfigs : [{ - name : $filter("translate")("common.priority"), // �슦�꽑�닚�쐞 - key : "PRIORITY", + name : $filter("translate")("issue.downIssueTitle"), // �븯�쐞 �씠�뒋 �젣紐� + key : "DOWN_ISSUE_TITLE", width : "width-80-p", + position : 0, + display : true, + checkboxShow : false + }, { + name : $filter("translate")("issue.issueStatus"), // �씠�뒋 �긽�깭 + key : "ISSUE_DOWN_STATUS_TYPE", + width : "width-50-p", position : 1, - display : true + display : false, + checkboxShow : true + }, { + name : $filter("translate")("common.priority"), // �슦�꽑�닚�쐞 + key : "DOWN_PRIORITY", + width : "width-50-p", + position : 2, + display : false, + checkboxShow : true }, { name : $filter("translate")("common.importance"), // 以묒슂�룄 - key : "SEVERITY", - width : "width-80-p", - position : 2, - display : true - }, { - name : $filter("translate")("issue.issueType"), // �씠�뒋 ���엯 - key : "ISSUE_TYPE", - width : "width-140-p", + key : "DOWN_SEVERITY", + width : "width-50-p", position : 3, - display : true + display : false, + checkboxShow : true }, { name : $filter("translate")("common.assigneeTeam"), // �떞�떦遺��꽌 - key : "ASSIGNEE_TEAM", - width : "width-100-p", + key : "DOWN_ASSIGNEE_TEAM", + width : "width-50-p", position : 4, - display : true + display : false, + checkboxShow : true }, { name : $filter("translate")("common.register"), // �벑濡앹옄 - key : "REGISTER", - width : "width-100-p", + key : "DOWN_REGISTER", + width : "width-50-p", position : 5, - display : false + display : false, + checkboxShow : true }, { name : $filter("translate")("common.period"), // 湲곌컙 - key : "PERIOD", - width : "width-140-p", + key : "DOWN_PERIOD", + width : "width-100-p", position : 6, - display : false + display : false, + checkboxShow : true }, { name : $filter("translate")("common.lastChangeDate"), // 理쒓렐 蹂�寃쎌씪 - key : "MODIFY_DATE", + key : "DOWN_MODIFY_DATE", width : "width-100-p", position : 7, - display : false - }, { + display : false, + checkboxShow : true }] }; @@ -84,7 +97,7 @@ $rootScope.spinner = true; var content = { - issueId : $rootScope.currentDetailIssueId, + issueTypeId : $rootScope.getCurrentIssueTypeId(), issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) }; @@ -102,8 +115,6 @@ else { SweetAlert.error($filter("translate")("issue.failedToSaveIssueTableSetting"), result.data.message.message); // �씠�뒋 �뀒�씠釉� �꽕�젙 ���옣 �떎�뙣 } - - $rootScope.spinner = false; }); } @@ -119,7 +130,7 @@ function getCustomFields() { var deferred = $q.defer(); - CustomField.find($resourceProvider.getContent({}, + IssueTypeCustomField.findByIssueType($resourceProvider.getContent({issueTypeId : $rootScope.getCurrentIssueTypeId()}, $resourceProvider.getPageContent(0, 1000))).then(function (result) { if (result.data.message.status !== "success") { SweetAlert.error($filter("translate")("issue.failedToUserDefinedFieldListLookup"), result.data.message.message); // �궗�슜�옄 �젙�쓽 �븘�뱶 紐⑸줉 議고쉶 �떎�뙣 @@ -134,8 +145,11 @@ // �씠�뒋 紐⑸줉 �뀒�씠釉� �꽕�젙 �젙蹂대�� 媛��졇�삩�떎. function getDownIssueTableConfigs() { var deferred = $q.defer(); + var content = { issueId : $rootScope.currentDetailIssueId, + //delValue : $scope.vm.issueDownTableConfigs.splice(8,1), + issueTypeId : $rootScope.getCurrentIssueTypeId(), issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) }; @@ -160,6 +174,7 @@ key : "CUSTOM_FIELD_" + customField.id, width : "width-100-p", display : false, + checkboxShow : true, position : count }); -- Gitblit v1.8.0