upd:平台收支统计年份修复

master
dulingling 4 years ago
parent ab55a070b9
commit 8ff744f213

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

Loading…
Cancel
Save