0
0
Fork 0

feat: refs #8232 change default scopeDays

This commit is contained in:
Jorge Penadés 2024-11-26 10:16:53 +01:00
parent 7feea110a6
commit 84adc40c18
2 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@ const groupedStates = ref();
const handleScopeDays = (params, days, callback) => { const handleScopeDays = (params, days, callback) => {
const [from, to] = dateRange(Date.vnNew()); const [from, to] = dateRange(Date.vnNew());
if (!days) { if (!days) {
Object.assign(params, { from, to, scopeDays: 1 }); Object.assign(params, { from, to, scopeDays: 0 });
} else { } else {
params.from = from; params.from = from;
to.setDate(to.getDate() + days); to.setDate(to.getDate() + days);

View File

@ -27,8 +27,7 @@ const visibleColumns = ref([]);
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
const from = Date.vnNew(); const from = Date.vnNew();
from.setHours(0, 0, 0, 0); from.setHours(0, 0, 0, 0);
const to = new Date(from.getTime()); const to = Date.vnNew();
to.setDate(to.getDate() + 1);
to.setHours(23, 59, 59, 999); to.setHours(23, 59, 59, 999);
function exprBuilder(param, value) { function exprBuilder(param, value) {
@ -342,7 +341,7 @@ const openTab = (id) =>
auto-load auto-load
:row-click="({ id }) => openTab(id)" :row-click="({ id }) => openTab(id)"
:disable-option="{ card: true }" :disable-option="{ card: true }"
:user-params="{ from, to, scopeDays: 1 }" :user-params="{ from, to, scopeDays: 0 }"
> >
<template #top-left> <template #top-left>
<QBtn <QBtn