2024-04-12 19:50:41 +00:00
|
|
|
export function getDateQBadgeColor(date) {
|
|
|
|
let today = Date.vnNew();
|
|
|
|
today.setHours(0, 0, 0, 0);
|
|
|
|
let timeTicket = new Date(date);
|
|
|
|
timeTicket.setHours(0, 0, 0, 0);
|
|
|
|
|
|
|
|
let comparation = today - timeTicket;
|
|
|
|
|
|
|
|
if (comparation == 0) return 'warning';
|
2024-08-30 07:52:43 +00:00
|
|
|
if (comparation < 0) return 'success';
|
2024-04-12 19:50:41 +00:00
|
|
|
}
|