|
@@ -269,8 +269,7 @@
|
|
|
ri = "0" + ri
|
|
|
}
|
|
|
this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
|
|
|
- this.endDate = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
|
|
|
- .getMonth()) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
|
|
|
+ this.endDate = date.getFullYear() + "-" + (Number(date.getMonth() + 1) < 10 ? "0" + (Number(date.getMonth() + 1)) : Number(date.getMonth() + 1)) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
|
|
|
this.value1.push(this.startDate)
|
|
|
this.value1.push(this.endDate)
|
|
|
this.getList();
|