From 29d0819159ba4a474b7328ec3750b50176995935 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 04 九月 2025 16:06:00 +0800
Subject: [PATCH] 倍率报表页面增加日期禁选功能

---
 src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue b/src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue
index f41985d..595be3c 100644
--- a/src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue
+++ b/src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue
@@ -11,7 +11,8 @@
           </a-col>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <a-form-item label="鏃ユ湡">
-              <a-range-picker value-format="YYYY-MM-DD" v-model="queryParam.dates" @change="dateParamChange"/>
+              <a-range-picker value-format="YYYY-MM-DD" v-model="queryParam.dates" @change="dateParamChange"
+                              :disabled-date="disabledDate"/>
             </a-form-item>
           </a-col>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
@@ -155,6 +156,11 @@
         this.queryParam.endTime = dateArray[1]
       },
 
+      disabledDate(current) {
+        // Can not select days before today and today
+        return current > moment().subtract(1, 'day').endOf('day')
+      },
+
       /**
        * 褰撴祻瑙堝櫒鍙绐楀彛灏哄鍙戠敓鏀瑰彉鏃惰Е鍙�
        */

--
Gitblit v1.9.3