|
@@ -37,10 +37,16 @@ export class WorkerStatisticsDetailComponent implements OnInit {
|
37
|
37
|
this.groupId = this.route.snapshot.params.groupId;
|
38
|
38
|
this.getOrdersByPerson(this.hosId, this.currentPersonId);
|
39
|
39
|
}
|
|
40
|
+ resetPageSize(hosId, currentPersonId){
|
|
41
|
+ this.pageIndex = 1;
|
|
42
|
+ this.getOrdersByPerson(hosId, currentPersonId);
|
|
43
|
+ }
|
40
|
44
|
// 是否剖执行时长五分钟以内工单
|
41
|
45
|
changeIsFiveOrder(e: boolean) {
|
|
46
|
+ this.isFiveOrder = e;
|
|
47
|
+ this.pageIndex = 1;
|
42
|
48
|
if (e) {
|
43
|
|
- this.getOrdersByPerson(this.hosId, this.currentPersonId, e);
|
|
49
|
+ this.getOrdersByPerson(this.hosId, this.currentPersonId);
|
44
|
50
|
} else {
|
45
|
51
|
this.getOrdersByPerson(this.hosId, this.currentPersonId);
|
46
|
52
|
}
|
|
@@ -49,7 +55,6 @@ export class WorkerStatisticsDetailComponent implements OnInit {
|
49
|
55
|
getOrdersByPerson(
|
50
|
56
|
hosId: number,
|
51
|
57
|
currentPersonId: number,
|
52
|
|
- isFiveOrder: boolean = false
|
53
|
58
|
) {
|
54
|
59
|
this.loading1 = true;
|
55
|
60
|
let postData:any = {
|
|
@@ -61,7 +66,7 @@ export class WorkerStatisticsDetailComponent implements OnInit {
|
61
|
66
|
groupId: this.groupId == "null" ? "" : this.groupId,
|
62
|
67
|
worker: currentPersonId,
|
63
|
68
|
};
|
64
|
|
- if(isFiveOrder){
|
|
69
|
+ if(this.isFiveOrder){
|
65
|
70
|
postData.difLong = true;
|
66
|
71
|
}
|
67
|
72
|
this.mainService.postCustom("report", "userDetails", postData).subscribe(
|