fix lastMonth

master
luoyang 6 years ago
parent ffc9349ddf
commit 665a3f6f1a

@ -78,8 +78,8 @@ define(['angular', 'uiRouter', 'jstz', 'uiBootstrap', 'angularEcharts'], functio
var end = $filter('date')(date-oneDay, 'yyyyMMdd'); var end = $filter('date')(date-oneDay, 'yyyyMMdd');
var date2 = new Date(); var date2 = new Date();
date2.setDate(1);
date2.setMonth(date2.getMonth() - 1); date2.setMonth(date2.getMonth() - 1);
date2 = date2.setDate(1);
var begin = $filter('date')(date2, 'yyyyMMdd'); var begin = $filter('date')(date2, 'yyyyMMdd');
return { return {
begin: begin, begin: begin,

Loading…
Cancel
Save