|
@ -167,9 +167,9 @@ |
|
|
result?.map(item => { |
|
|
result?.map(item => { |
|
|
if (moment(item.time).isAfter(nearlyWeekS)) { |
|
|
if (moment(item.time).isAfter(nearlyWeekS)) { |
|
|
nearlyWeek.unshift(item); |
|
|
nearlyWeek.unshift(item); |
|
|
} else if (moment(item.time).isAfter(nearlyWeekS)) { |
|
|
} else if (moment(item.time).isAfter(nearlyMonthS)) { |
|
|
nearlyMonth = [...nearlyWeek]; |
|
|
nearlyMonth = [...nearlyWeek]; |
|
|
nearlyWeek.unshift(item); |
|
|
nearlyMonth.unshift(item); |
|
|
} if (moment(item.time).isAfter(lastThreeMonthsS)) { |
|
|
} if (moment(item.time).isAfter(lastThreeMonthsS)) { |
|
|
lastThreeMonths = [...nearlyWeekS] |
|
|
lastThreeMonths = [...nearlyWeekS] |
|
|
lastThreeMonths.unshift(item); |
|
|
lastThreeMonths.unshift(item); |
|
|