//设置上月最后一天
var date1 =new Date();
date1.setDate(1); //first day;
date1.setMonth(date1.getMonth()); //month-1 ;lastmonth;
date1.setDate(date1.getDate()-1);
date1.setHours(8,0,0,0)
this.options.form.getWidgetByName("startTime").setValue(date1); //设置当月最后一天
var date2 =new Date();
date2.setDate(1); //first day;
date2.setMonth(date1.getMonth()+1); //month-1 ;lastmonth;
date2.setDate(date1.getDate()-1);
date2.setHours(7,59,59,59);
this.options.form.getWidgetByName("endTime").setValue(date2);