From a19b20afeacf84c1c743c76b5018bcfbddac2270 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 15 Nov 2024 09:10:12 +0800
Subject: [PATCH] fix: 国控站

---
 src/components/Form/HourPicker.vue |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/components/Form/HourPicker.vue b/src/components/Form/HourPicker.vue
index e35e5d9..fd045f6 100644
--- a/src/components/Form/HourPicker.vue
+++ b/src/components/Form/HourPicker.vue
@@ -32,24 +32,10 @@
     return {
       // newValue1: ''
       value1: '',
-      timeOne: '',
       pickerOptions: {
-        onPick: ({ maxDate, minDate }) => {
-          // ������������  ������������
-          this.timeOne = minDate.getTime() // ��������������������� ������������������
-          // // ������������������������������������������������������������
-          if (maxDate) this.timeOne = ''
+        disabledDate: (time) => {
+          return time.getTime() > new Date()
         },
-        disabledDate: time => {
-          if (this.timeOne) {
-            const WEEK = 6 * 24 * 3600 * 1000 // ������������6��������� ������7���������
-            const minTime = this.timeOne  // ������������
-            const maxTime = this.timeOne + WEEK // ������������
-            return time.getTime() < minTime || time.getTime() > maxTime || time.getTime() > new Date()
-          } else {
-            return time.getTime() > new Date()
-          }
-        }
       },
     }
   },

--
Gitblit v1.8.0