| | |
| | | $scope.fn.setDownTableConfigs = setDownTableConfigs; |
| | | $scope.fn.containsPartner = containsPartner; |
| | | $scope.fn.onActivate = onActivate; |
| | | $scope.fn.issueBack = issueBack; |
| | | $scope.fn.goParentIssue = goParentIssue; |
| | | $scope.fn.removeRelationIssue = removeRelationIssue; |
| | | $scope.fn.removeDownIssue = removeDownIssue; |
| | | $scope.fn.changeDetailPageRowCount = changeDetailPageRowCount; // 페이지 변경 |
| | |
| | | } |
| | | |
| | | // 상위 이슈 클릭시 상위 이슈로 이동 |
| | | function issueBack() { |
| | | function goParentIssue() { |
| | | var index = $scope.$parent.vm.issueIds.length -2; |
| | | if (index > -1) { |
| | | var preIssueId = $scope.$parent.vm.issueIds[index]; |
| | |
| | | } |
| | | |
| | | function getParametersAll() { |
| | | var params = $scope.fn.getParameters(null, $scope.vm.viewer.issueCompanyVos); |
| | | params = $scope.fn.getParameters(params, $scope.vm.viewer.issueIspVos); |
| | | params = $scope.fn.getParameters(params, $scope.vm.viewer.issueHostingVos); |
| | | |
| | | if (params != null && params.length > 0) { |
| | | for (let i = 0; i < params.length; i++) { |
| | | params[i].id = i; |
| | | var params = []; |
| | | if ($scope.vm.viewer.issueCompanyVos != null && $scope.vm.viewer.issueCompanyVos.length > 0) { |
| | | var issueCompany = $scope.fn.getParameters(params, $scope.vm.viewer.issueCompanyVos); |
| | | if (issueCompany != null && issueCompany.length > 0) { |
| | | angular.forEach(issueCompany, function (data) { |
| | | params.push(data); |
| | | }); |
| | | } |
| | | } |
| | | return params; |
| | | if ($scope.vm.viewer.issueIspVos != null && $scope.vm.viewer.issueIspVos.length > 0) { |
| | | var issueIsp = $scope.fn.getParameters(params, $scope.vm.viewer.issueIspVos) |
| | | if (issueIsp != null && issueIsp.length > 0) { |
| | | angular.forEach(issueIsp, function (data) { |
| | | params.push(data); |
| | | }); |
| | | } |
| | | } |
| | | if ($scope.vm.viewer.issueHostingVos != null && $scope.vm.viewer.issueHostingVos.length > 0) { |
| | | var issueHosting = $scope.fn.getParameters(params, $scope.vm.viewer.issueHostingVos); |
| | | if (issueHosting != null && issueHosting.length > 0) { |
| | | angular.forEach(issueHosting, function (data) { |
| | | params.push(data); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | if (params != null && params.length > 0) { |
| | | var filterData = params.filter(function(item, idx){ |
| | | return params.findIndex(function(item2, idx2){ |
| | | return item.email === item2.email |
| | | }) == idx; |
| | | }); |
| | | for (let i = 0; i < filterData.length; i++) { |
| | | filterData[i].id = i; |
| | | } |
| | | } |
| | | return filterData; |
| | | } |
| | | |
| | | function getParameters(sourceArr, partnerVos) { |