修改bug
parent
f03bf754fa
commit
1decf667ab
|
|
@ -195,10 +195,10 @@ function generateTimeArrayWithLastPeriod() {
|
||||||
case '上周':
|
case '上周':
|
||||||
lastPeriodTimeRanges['上周'] = {
|
lastPeriodTimeRanges['上周'] = {
|
||||||
startDate: dayjs(timeRange.current.startDate)
|
startDate: dayjs(timeRange.current.startDate)
|
||||||
.subtract(2, 'week')
|
.subtract(1, 'week')
|
||||||
.toDate(),
|
.toDate(),
|
||||||
endDate: dayjs(timeRange.current.endDate)
|
endDate: dayjs(timeRange.current.endDate)
|
||||||
.subtract(2, 'week')
|
.subtract(1, 'week')
|
||||||
.toDate(),
|
.toDate(),
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
@ -215,10 +215,10 @@ function generateTimeArrayWithLastPeriod() {
|
||||||
case '上月':
|
case '上月':
|
||||||
lastPeriodTimeRanges['上月'] = {
|
lastPeriodTimeRanges['上月'] = {
|
||||||
startDate: dayjs(timeRange.current.startDate)
|
startDate: dayjs(timeRange.current.startDate)
|
||||||
.subtract(2, 'month')
|
.subtract(1, 'month')
|
||||||
.toDate(),
|
.toDate(),
|
||||||
endDate: dayjs(timeRange.current.endDate)
|
endDate: dayjs(timeRange.current.endDate)
|
||||||
.subtract(2, 'month')
|
.subtract(1, 'month')
|
||||||
.toDate(),
|
.toDate(),
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue