From 616834a1946ccd5b9d72d6327d5ca0a8589bec75 Mon Sep 17 00:00:00 2001 From: dulingling Date: Fri, 6 Nov 2020 13:51:43 +0800 Subject: [PATCH] =?UTF-8?q?Upd:=E5=9F=8E=E5=B8=82=E5=90=88=E4=BC=99?= =?UTF-8?q?=E4=BA=BA=E6=9F=A5=E8=AF=A2=E5=B9=B4=E4=BB=BD=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E7=94=B12017=E5=B9=B4=E8=87=B3=E5=BD=93=E5=89=8D=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/ui/static/config/orgcommission/orgcommission.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 +});