From 7982c078cd51ec2baa5da16d0fdaacdf118c909c Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Mon, 5 Feb 2018 14:53:04 +0800 Subject: [PATCH] fix~ --- src/main/ui/static/config/platformrevenue/platformrevenue.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/ui/static/config/platformrevenue/platformrevenue.js b/src/main/ui/static/config/platformrevenue/platformrevenue.js index f1c28030f..9c2c3fe6b 100644 --- a/src/main/ui/static/config/platformrevenue/platformrevenue.js +++ b/src/main/ui/static/config/platformrevenue/platformrevenue.js @@ -78,6 +78,7 @@ 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() - 1, new Date().getFullYear()]; $scope.initMonth = function (year) { $scope.months = [];