diff --git a/src/main/ui/static/config/orgcommission/orgcommission.js b/src/main/ui/static/config/orgcommission/orgcommission.js index c9225b69c..3e096d113 100644 --- a/src/main/ui/static/config/orgcommission/orgcommission.js +++ b/src/main/ui/static/config/orgcommission/orgcommission.js @@ -97,7 +97,11 @@ define(['angular','../../analysis/org/analysis-org'], function (angular) { }) }) }; - $scope.availableYears = [new Date().getFullYear() - 2,new Date().getFullYear() - 1, new Date().getFullYear()]; + $scope.availableYears = [new Date().getFullYear()]; + //当前年至2017年年份 + for (var i = 1; i < new Date().getFullYear()-2017+1; i++) { + $scope.availableYears.push(new Date().getFullYear() - i); + } $scope.params = {}; $scope.months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; $scope.loadAvailableMonths = function (year) { @@ -197,4 +201,4 @@ define(['angular','../../analysis/org/analysis-org'], function (angular) { -}); \ No newline at end of file +});