|
|
@ -142,8 +142,11 @@ define(['angular', 'decimal', 'uiRouter', 'angularEcharts', '../../analysis/repo
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
app.controller('platformRevenueRootCtrl', ['$scope', '$http', '$filter', 'chartParser', function ($scope, $http, $filter, chartParser) {
|
|
|
|
app.controller('platformRevenueRootCtrl', ['$scope', '$http', '$filter', 'chartParser', function ($scope, $http, $filter, chartParser) {
|
|
|
|
$scope.params = {year: new Date().getFullYear()};
|
|
|
|
$scope.params = {year: new Date().getFullYear()};
|
|
|
|
|
|
|
|
$scope.availableYears = [];
|
|
|
|
$scope.availableYears = [new Date().getFullYear() - 1, new Date().getFullYear()];
|
|
|
|
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.initMonth = function (year) {
|
|
|
|
$scope.months = [];
|
|
|
|
$scope.months = [];
|
|
|
|
for (var i = 1; i < 13; i++) {
|
|
|
|
for (var i = 1; i < 13; i++) {
|
|
|
|