From 92c6bf687b5fae38d56cff15be405cfc204e437d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 3 Nov 2022 10:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E5=AE=A4=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9=E5=99=A8=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index b89224a6..29e63c13 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -73,6 +73,7 @@ v-model:value="roomCerateDate" placeholder="开始日期" value-format="YYYY-MM-DD" + :disabled-date="disabledDate" /> @@ -1260,6 +1262,11 @@ chengguoSearch() } // 时间选择器限制----可用时间查询 + //获取不可选择的日期 + const disabledDate = (current) => { + const time = moment().endOf('day').subtract(1, 'days') + return current && current < time + } //获取不可选择的小时 const disabledStartHours = () => { if (roomEndTime.value) {