seimin 2 년 전
부모
커밋
0a3aff897f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/app/views/order-source-statistics/order-source-statistics.component.ts

+ 1 - 1
src/app/views/order-source-statistics/order-source-statistics.component.ts

@@ -344,7 +344,7 @@ export class OrderSourceStatisticsComponent implements OnInit {
344 344
       return;
345 345
     }
346 346
     // this.startDate = result.getFullYear() + '-' + (result.getMonth() + 1) + '-01';
347
-    this.endDate = result.getFullYear() + "-" + (result.getMonth() + 1) + "-31";
347
+    this.endDate = endOfMonth(result).getFullYear() + "-" + (endOfMonth(result).getMonth() + 1) + "-" + endOfMonth(result).getDate();
348 348
   }
349 349
   // 年份选择
350 350
   changeYearStart(result?) {