|
@ -97,20 +97,16 @@ export default { |
|
|
// 昨天 |
|
|
// 昨天 |
|
|
setYesterday(open) { |
|
|
setYesterday(open) { |
|
|
const day = this.$moment(new Date().getTime() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD'); |
|
|
const day = this.$moment(new Date().getTime() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD'); |
|
|
// this.startValue = day; |
|
|
this.startValue = day; |
|
|
// this.endValue = day; |
|
|
this.endValue = day; |
|
|
this.setStartTime(this.$moment(`${day} 00:00`).format('x') - 0); |
|
|
|
|
|
this.setEndTime(this.$moment(`${day} 23:59`).format('x') - 0); |
|
|
|
|
|
this[open] = false; |
|
|
this[open] = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 今天 |
|
|
// 今天 |
|
|
setToday(open) { |
|
|
setToday(open) { |
|
|
const today = this.$moment(new Date()).format('YYYY-MM-DD'); |
|
|
const today = this.$moment(new Date()).format('YYYY-MM-DD'); |
|
|
// this.startValue = today; |
|
|
this.startValue = today; |
|
|
// this.endValue = today; |
|
|
this.endValue = today; |
|
|
this.setStartTime(this.$moment(`${today} 00:00`).format('x') - 0); |
|
|
|
|
|
this.setEndTime(this.$moment(`${today} 23:59`).format('x') - 0); |
|
|
|
|
|
this[open] = false; |
|
|
this[open] = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|