diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index 57248d580..1ded8a8be 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -18,7 +18,7 @@ const groupedStates = ref(); const handleScopeDays = (params, days, callback) => { const [from, to] = dateRange(Date.vnNew()); if (!days) { - Object.assign(params, { from, to, scopeDays: 1 }); + Object.assign(params, { from, to, scopeDays: 0 }); } else { params.from = from; to.setDate(to.getDate() + days); diff --git a/src/pages/Monitor/Ticket/MonitorTickets.vue b/src/pages/Monitor/Ticket/MonitorTickets.vue index 5e17f2235..41d3070b7 100644 --- a/src/pages/Monitor/Ticket/MonitorTickets.vue +++ b/src/pages/Monitor/Ticket/MonitorTickets.vue @@ -27,8 +27,7 @@ const visibleColumns = ref([]); const { viewSummary } = useSummaryDialog(); const from = Date.vnNew(); from.setHours(0, 0, 0, 0); -const to = new Date(from.getTime()); -to.setDate(to.getDate() + 1); +const to = Date.vnNew(); to.setHours(23, 59, 59, 999); function exprBuilder(param, value) { @@ -342,7 +341,7 @@ const openTab = (id) => auto-load :row-click="({ id }) => openTab(id)" :disable-option="{ card: true }" - :user-params="{ from, to, scopeDays: 1 }" + :user-params="{ from, to, scopeDays: 0 }" >