From 84adc40c18fff9ab958876311827d5699f2c6183 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 26 Nov 2024 10:16:53 +0100 Subject: [PATCH] feat: refs #8232 change default scopeDays --- src/pages/Monitor/Ticket/MonitorTicketFilter.vue | 2 +- src/pages/Monitor/Ticket/MonitorTickets.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 }" >