| | |
| | | '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', 'CustomField', '$q', '$filter', 'parameter', |
| | | function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, SweetAlert, $timeout, IssueTableConfig, CustomField, $q, $filter, parameter) { |
| | | |
| | | // 함수 모음 |
| | | $scope.fn = { |
| | |
| | | position : 6, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("issue.issueStatus"), // 이슈 상태 |
| | | key : "ISSUE_DOWN_STATUS_TYPE", |
| | | width : "width-100-p", |
| | | position : 7, |
| | | display : false |
| | | },{ |
| | | }] |
| | | }; |
| | | |
| | |
| | | $rootScope.spinner = true; |
| | | |
| | | var content = { |
| | | issueId : $rootScope.currentDetailIssueId, |
| | | issueTypeId : $rootScope.getCurrentIssueTypeId(), |
| | | issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) |
| | | }; |
| | | |
| | |
| | | // 이슈 목록 테이블 설정 정보를 가져온다. |
| | | function getDownIssueTableConfigs() { |
| | | var deferred = $q.defer(); |
| | | |
| | | var content = { |
| | | issueId : $rootScope.currentDetailIssueId, |
| | | delValue : $scope.vm.issueDownTableConfigs.splice(6,1), |
| | | delValue : $scope.vm.issueDownTableConfigs.splice(7,1), |
| | | issueTypeId : $rootScope.getCurrentIssueTypeId(), |
| | | issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) |
| | | }; |
| | | |
| | | // angular.forEach($scope.vm.issueDownTableConfigs, function (delVaue) { |
| | | // if ($scope.vm.issueDownTableConfigs.indexOf(delVaue.name) === "") { |
| | | // $scope.vm.issueDownTableConfigs.splice(delVaue,1); |
| | | // } |
| | | // |
| | | // }) |
| | | |
| | | // for (var i = 0; i < $scope.vm.issueDownTableConfigs; i++) { |
| | | // if ($scope.vm.issueDownTableConfigs == "") { |
| | | // $scope.vm.issueDownTableConfigs.splice(i,1); |
| | | // i--; |
| | | // } |
| | | // } |
| | | IssueTableConfig.downDetail($resourceProvider.getContent(content, |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | | if (result.data.message.status !== "success") { |