From 9a0925c3102ff9e18637271ecdab6bf56ca149dc Mon Sep 17 00:00:00 2001
From: guoshipeng <3194674006@qq.com>
Date: Tue, 21 Mar 2023 13:22:12 +0800
Subject: [PATCH] 1、时间控件修改
---
src/components/Form/HourPicker1.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/Form/HourPicker1.vue b/src/components/Form/HourPicker1.vue
index db98682..68181c0 100644
--- a/src/components/Form/HourPicker1.vue
+++ b/src/components/Form/HourPicker1.vue
@@ -39,12 +39,13 @@
// ������������ ������������
this.timeOne = minDate.getTime() // ��������������������� ������������������
// // ������������������������������������������������������������
-
+ ��if (maxDate) this.timeOne = ''
+
},
disabledDate: time => {
if (this.timeOne) {
- const WEEK = 7 * 24 * 3600 * 1000 -1 // ������������6��������� ������7���������
- const minTime = this.timeOne // ������������
+ const WEEK = 7 * 24 * 3600 * 1000 - 1 // ������������6��������� ������7���������
+ const minTime = this.timeOne // ������������
const maxTime = this.timeOne + WEEK // ������������
return time.getTime() < minTime || time.getTime() > maxTime || time.getTime() > new Date()
} else {
--
Gitblit v1.8.0