|
@@ -805,8 +805,12 @@
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
|
|
|
|
- this.nowTime = parseUnixTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
- this.thismonth= parseUnixTime(beforeTimeStamp(1, new Date()), '{y}-{m}')
|
|
|
|
|
|
+ this.nowTime = parseUnixTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
+ var currentDate = new Date();
|
|
|
|
+ var currentMonth=currentDate.getMonth();
|
|
|
|
+ var lastMonthDate = new Date(currentDate.setMonth(currentMonth - 1));
|
|
|
|
+
|
|
|
|
+ this.thismonth= parseUnixTime(lastMonthDate, '{y}-{m}')
|
|
this.endTime =parseUnixTime(new Date(), '{y}-{m}-{d} {h}:{i}:00')
|
|
this.endTime =parseUnixTime(new Date(), '{y}-{m}-{d} {h}:{i}:00')
|
|
this.getStationList()
|
|
this.getStationList()
|
|
},
|
|
},
|