Browse Source

更改网站点评的时间选择器时间限制

hyx 2 years ago
parent
commit
d6860cc9ab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      nngkxxdp/src/main/resources/static/wzkp/wzkp.html

+ 3 - 3
nngkxxdp/src/main/resources/static/wzkp/wzkp.html

@@ -2013,7 +2013,7 @@
     function getYearMonthDay() {
         let date = new Date();
         date.setDate(0);
-        return date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate();
+        return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
     }
 
     //是否展示时间选择器
@@ -2202,7 +2202,7 @@
             elem: '#monInput1',
             type: 'month',
             max: getYearMonthDay(),
-            min: '2000-01-01',
+            min: '2020-01-01',
             value: getYearMonth(),
             done: function (value, date, endDate) {
                 dateDone(value, hasDept, type);
@@ -2212,7 +2212,7 @@
             elem: '#monInput0',
             type: 'month',
             max: getYearMonthDay(),
-            min: '2000-01-01',
+            min: '2020-01-01',
             value: getYearMonth(),
             done: function (value, date, endDate) {
                 dateDone(value, hasDept, type);