zhongtianhaoyuan пре 2 година
родитељ
комит
7f34037cce

+ 1 - 1
src/views/administrationManagement/vehicleInformationReporting.vue

@@ -286,7 +286,7 @@
       }
       }
       this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
       this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
       this.endDate = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
       this.endDate = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
-        .getMonth()) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
+        .getMonth()+1) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
       this.value1.push(this.startDate)
       this.value1.push(this.startDate)
       this.value1.push(this.endDate)
       this.value1.push(this.endDate)
       this.getList();
       this.getList();

+ 1 - 1
src/views/parkReportManagement/vehicleInformationReporting.vue

@@ -280,7 +280,7 @@
       }
       }
       this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
       this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
       this.endDate = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
       this.endDate = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
-        .getMonth()) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
+        .getMonth()+1) + "-" + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) //當前時間
       this.value1.push(this.startDate)
       this.value1.push(this.startDate)
       this.value1.push(this.endDate)
       this.value1.push(this.endDate)
       this.getList();
       this.getList();