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?) {