Alteração no dasboard para exibir atendimentos ABERTOS/FECHADOS de todo periodo

pull/20/head
adriano 2022-08-15 10:03:45 -03:00
parent d8509c5b16
commit 579cb680fb
1 changed files with 13 additions and 0 deletions

View File

@ -298,6 +298,19 @@ const Dashboard = () => {
const _pending = await api.get("/tickets/count", { const _pending = await api.get("/tickets/count", {
params: { status: "pending", date: dateToday }, params: { status: "pending", date: dateToday },
}); });
const _openAll = await api.get("/tickets/count", {
params: { status: "open" },
});
const _pendingAll = await api.get("/tickets/count", {
params: { status: "pending"},
});
console.log('EM ATENDIMENTO TOTAL _openAll: ',_openAll.data)
console.log('AGUARDANDO TOTAL _pendingAll: ',_pendingAll.data)
setOpen(_open.data.count); setOpen(_open.data.count);
setClosed(_closed.data.count); setClosed(_closed.data.count);