Explorar o código

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

sunny hai 3 semanas
pai
achega
b16c47413b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
     }
   },