mo před 4 roky
rodič
revize
53b6984e6f
1 změnil soubory, kde provedl 3 přidání a 8 odebrání
  1. 3 8
      src/views/reportForm/index.vue

+ 3 - 8
src/views/reportForm/index.vue

@@ -770,10 +770,7 @@ export default {
       let endTime, startTime;
       if (this.AccountTimer && this.AccountTimer.length > 1) {
         startTime = this.AccountTimer[0];
-        let end = this.AccountTimer[1];
-        end = new Date(end);
-        end = new Date(end.getFullYear(), end.getMonth() + 1, 0);
-        endTime = dayjs(end).format("YYYY-MM-DD");
+        endTime = this.AccountTimer[1];
       }else{
         startTime=null;
         endTime=null;
@@ -793,10 +790,8 @@ export default {
       let endTime, startTime;
       if (this.AccountDetailTimer && this.AccountDetailTimer.length > 1) {
         startTime = this.AccountDetailTimer[0];
-        let end = this.AccountDetailTimer[1];
-        end = new Date(end);
-        end = new Date(end.getFullYear(), end.getMonth() + 1, 0);
-        endTime = dayjs(end).format("YYYY-MM-DD");
+        endTime = this.AccountDetailTimer[1];
+
       }else{
         startTime=null;
         endTime=null;