| | |
| | | |
| | | return statuses; |
| | | })(), |
| | | levels : (function () { |
| | | levelIds : (function () { |
| | | var levels = []; |
| | | |
| | | angular.forEach($scope.vm.search.levels, function (level) { |
| | |
| | | |
| | | return levels; |
| | | })(), |
| | | departments : (function () { |
| | | departmentIds : (function () { |
| | | var departments = []; |
| | | |
| | | angular.forEach($scope.vm.search.departments, function (department) { |
| | |
| | | |
| | | var idx = 0; |
| | | angular.forEach($scope.vm.responseData.data, function (data) { |
| | | data.levelId = 3; /*$scope.vm.levels[idx].id;*/ |
| | | // data.levelId = $scope.vm.levels[idx].fieldKey; |
| | | data.levels = []; |
| | | data.levels = $scope.vm.levels.slice(); |
| | | idx++; |
| | |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.search.levels = result.data.data; |
| | | angular.forEach(result.data.data, function (level) { |
| | | $scope.vm.levels.push({ |
| | | fieldKey : level.id, |