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 [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);

View File

@ -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 }"
>
<template #top-left>
<QBtn