From 0226e99645e4db850183fdfc330f11593ce74fcf Mon Sep 17 00:00:00 2001 From: dulingling Date: Tue, 21 Jul 2020 18:22:01 +0800 Subject: [PATCH] =?UTF-8?q?upd:=E5=B9=B3=E5=8F=B0=E6=94=B6=E6=94=AF?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=B9=B4=E4=BB=BD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/static/config/platformrevenue/platformrevenue.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/ui/static/config/platformrevenue/platformrevenue.js b/src/main/ui/static/config/platformrevenue/platformrevenue.js index 74fc5f5aa..425e36d39 100644 --- a/src/main/ui/static/config/platformrevenue/platformrevenue.js +++ b/src/main/ui/static/config/platformrevenue/platformrevenue.js @@ -142,8 +142,11 @@ define(['angular', 'decimal', 'uiRouter', 'angularEcharts', '../../analysis/repo }]); app.controller('platformRevenueRootCtrl', ['$scope', '$http', '$filter', 'chartParser', function ($scope, $http, $filter, chartParser) { $scope.params = {year: new Date().getFullYear()}; - - $scope.availableYears = [new Date().getFullYear() - 4 ,new Date().getFullYear() - 3, new Date().getFullYear() - 2, new Date().getFullYear() - 1 ,new Date().getFullYear()]; + $scope.availableYears = []; + var years = new Date().getFullYear() - 2016; + for( var i = years ; i>=0 ; i-- ){ + $scope.availableYears.push(new Date().getFullYear() - i) ; + } $scope.initMonth = function (year) { $scope.months = []; for (var i = 1; i < 13; i++) {