|
|
|
@ -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++) {
|
|
|
|
|