From f834905298caa537fd6c685fc41a07a586308cbf Mon Sep 17 00:00:00 2001 From: likunming Date: Tue, 29 Jul 2025 10:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E8=8C=83=E5=9B=B4=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=80=89=E5=BD=93=E5=A4=A9=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/components/date/WDateRange.vue | 20 +++++++++++-- .../components/utils/FormValidators.ts | 6 +++- .../src/views/likm/Form.vue | 29 +++++++++++++++++++ .../src/views/likm/Grid.vue | 27 +++++++++++++---- 4 files changed, 73 insertions(+), 9 deletions(-) diff --git a/io.sc.platform.core.frontend/src/platform/components/date/WDateRange.vue b/io.sc.platform.core.frontend/src/platform/components/date/WDateRange.vue index 0a575588..c6456623 100644 --- a/io.sc.platform.core.frontend/src/platform/components/date/WDateRange.vue +++ b/io.sc.platform.core.frontend/src/platform/components/date/WDateRange.vue @@ -15,7 +15,7 @@ if (dateRangeRef) { const toValue = dateRangeRef.getFieldValue('to'); if (!Tools.isEmpty(toValue)) { - return date < toValue.replace(/-/g, '/'); + return date <= toValue.replace(/-/g, '/'); } return true; } @@ -31,7 +31,7 @@ if (dateRangeRef) { const fromValue = dateRangeRef.getFieldValue('from'); if (!Tools.isEmpty(fromValue)) { - return date > fromValue.replace(/-/g, '/'); + return date >= fromValue.replace(/-/g, '/'); } return true; } @@ -39,6 +39,11 @@ }, }, ]" + @update-value=" + (args) => { + modelValue = args.value; + } + " > @@ -83,7 +88,7 @@