zhongtianhaoyuan 2 سال پیش
والد
کامیت
8905537734

+ 1 - 2
src/views/administrationManagement/driverInformationReporting.vue

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

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

@@ -271,7 +271,7 @@
       }
       this.startDate = nian + "-" + yue + "-" + ri //一年前的時間
       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.endDate)
       this.getList();