|
@@ -120,13 +120,24 @@ export class WorkerStatisticsComponent implements OnInit {
|
120
|
120
|
groupId: this.group || "",
|
121
|
121
|
};
|
122
|
122
|
if (obj.isGroup) {
|
123
|
|
- postData.byGroup = true;
|
|
123
|
+ postData.byGroup = "true";
|
|
124
|
+ }
|
|
125
|
+ switch (obj.isNumOrIntegral) {
|
|
126
|
+ case "byOrderNum":
|
|
127
|
+ //按工单数量排序
|
|
128
|
+ postData.byOrderNum = "true";
|
|
129
|
+ break;
|
|
130
|
+ case "byIntegral":
|
|
131
|
+ //按积分排序
|
|
132
|
+ postData.byIntegral = "true";
|
|
133
|
+ break;
|
124
|
134
|
}
|
125
|
135
|
this.loading2 = true;
|
126
|
136
|
this.mainService.exportReport("user", postData).subscribe(
|
127
|
137
|
(data) => {
|
128
|
138
|
this.loading2 = false;
|
129
|
139
|
this.showPromptModal("导出", true, "");
|
|
140
|
+ this.isShow = false;
|
130
|
141
|
var file = new Blob([data], {
|
131
|
142
|
type: "application/vnd.ms-excel",
|
132
|
143
|
});
|