|
@ -137,18 +137,20 @@ |
|
|
$('.filter-item').click(function () { |
|
|
$('.filter-item').click(function () { |
|
|
hideLoading(); |
|
|
hideLoading(); |
|
|
renderBillingDom([]) |
|
|
renderBillingDom([]) |
|
|
|
|
|
|
|
|
$('.loading').show(); |
|
|
$('.loading').show(); |
|
|
$('.filter-item').removeClass('active'); |
|
|
const timer = setTimeout(() => { |
|
|
const key = $(this).attr('data-query-key'); |
|
|
clearTimeout(timer) |
|
|
$(this).addClass('active') |
|
|
$('.filter-item').removeClass('active'); |
|
|
if (key === 'nearlyMonth') { |
|
|
const key = $(this).attr('data-query-key'); |
|
|
renderBillingDom(nearlyMonth) |
|
|
$(this).addClass('active') |
|
|
} else if (key === 'lastThreeMonths') { |
|
|
if (key === 'nearlyMonth') { |
|
|
renderBillingDom(lastThreeMonths) |
|
|
renderBillingDom(nearlyMonth) |
|
|
} else if (key === 'nearlyWeek') { |
|
|
} else if (key === 'lastThreeMonths') { |
|
|
renderBillingDom(nearlyWeek) |
|
|
renderBillingDom(lastThreeMonths) |
|
|
} |
|
|
} else if (key === 'nearlyWeek') { |
|
|
|
|
|
renderBillingDom(nearlyWeek) |
|
|
|
|
|
} |
|
|
|
|
|
}, 500) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
$('.account,.mx').on('click', () => { |
|
|
$('.account,.mx').on('click', () => { |
|
|