Browse Source

feature_20251111_计划内页面日期筛选组件maxData

sunny 3 weeks ago
parent
commit
b16c47413b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/deviceWithin/index.vue

+ 2 - 2
src/views/deviceWithin/index.vue

@@ -548,13 +548,13 @@ export default {
   },
   computed: {
     /**
-     * 计算最大可选日期:当前日期往后推7
+     * 计算最大可选日期:当前日期往后推30
      */
     maxDate() {
       const today = new Date();
       const maxYear = today.getFullYear();
       const maxMonth = today.getMonth();
-      const maxDay = today.getDate() + 7;
+      const maxDay = today.getDate() + 30;
       return new Date(maxYear, maxMonth, maxDay);
     }
   },