|
@@ -1,6 +1,6 @@
|
1
|
1
|
import { Component, OnInit } from "@angular/core";
|
2
|
2
|
import { ActivatedRoute, Router } from "@angular/router";
|
3
|
|
-import { differenceInCalendarDays, endOfMonth, endOfYear, format, startOfMonth, startOfYear } from "date-fns";
|
|
3
|
+import { differenceInCalendarDays, endOfMonth, endOfYear, format, startOfMonth, startOfYear, startOfDay, endOfDay } from "date-fns";
|
4
|
4
|
|
5
|
5
|
import { MainService } from "../../services/main.service";
|
6
|
6
|
import { DateService } from "../../services/date.service";
|
|
@@ -313,8 +313,8 @@ export class QuiltWashingHospitalStatisticsComponent implements OnInit {
|
313
|
313
|
this.startDate = this.endDate = "";
|
314
|
314
|
return;
|
315
|
315
|
}
|
316
|
|
- this.startDate = format(result[0], 'yyyy-MM-dd HH:mm:ss');
|
317
|
|
- this.endDate = format(result[1], 'yyyy-MM-dd HH:mm:ss');
|
|
316
|
+ this.startDate = format(startOfDay(result[0]), 'yyyy-MM-dd HH:mm:ss');
|
|
317
|
+ this.endDate = format(endOfDay(result[1]), 'yyyy-MM-dd HH:mm:ss');
|
318
|
318
|
}
|
319
|
319
|
|
320
|
320
|
// 月份选择
|
|
@@ -433,6 +433,13 @@ export class QuiltWashingHospitalStatisticsComponent implements OnInit {
|
433
|
433
|
}, 100);
|
434
|
434
|
}
|
435
|
435
|
|
|
436
|
+ // 跳转详情
|
|
437
|
+ toDetail(e, data){
|
|
438
|
+ e.stopPropagation();
|
|
439
|
+ console.log(data);
|
|
440
|
+ window.open(`${location.origin}/#/quiltWashingHospital/${data.date}/${this.dateType}`);
|
|
441
|
+ }
|
|
442
|
+
|
436
|
443
|
// 边输入边搜索节流阀
|
437
|
444
|
isLoading: boolean = false;
|
438
|
445
|
searchTimer(fun, e, those) {
|