| | |
| | | |
| | | function getIssueDepartmentList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | issueTypeId : $scope.vm.form.issueTypeId, |
| | | //issueTypeId : $scope.vm.form.issueTypeId, |
| | | issueTypeId : $rootScope.currentDetailIssueId, |
| | | departmentName : query, |
| | | userId : $rootScope.user.id, |
| | | projectId : (function () { |
| | |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | const departments = result.data.data; |
| | | if(departments != null && departments.length() > 0){ |
| | | if(departments != null){ |
| | | var filterDepartments = departments.filter(function(item, idx){ |
| | | return departments.findIndex(function(item2, idx2){ |
| | | return item.departmentName === item2.departmentName |