|
@@ -104,15 +104,17 @@ export class InspectActiveComponent implements OnInit {
|
104
|
104
|
// 导出
|
105
|
105
|
loading2 = false;
|
106
|
106
|
export() {
|
107
|
|
- let that = this;
|
108
|
|
- let postData = {
|
109
|
|
- hosId: that.hospital,
|
|
107
|
+ let postData: any = {
|
|
108
|
+ type: "total",
|
|
109
|
+ hosId: this.hospital,
|
110
|
110
|
startTime: this.startDate + " " + "00:00:00",
|
111
|
111
|
endTime: this.endDate + " " + "23:59:59",
|
112
|
|
- groupId: that.dept || "",
|
113
|
112
|
};
|
|
113
|
+ if (this.dept !== 0) {
|
|
114
|
+ postData.deptId = this.dept;
|
|
115
|
+ }
|
114
|
116
|
this.loading2 = true;
|
115
|
|
- that.mainService.exportReport("user", postData).subscribe(
|
|
117
|
+ this.mainService.exportReport("deptInspect", postData).subscribe(
|
116
|
118
|
(data) => {
|
117
|
119
|
this.loading2 = false;
|
118
|
120
|
this.showPromptModal("导出", true, "");
|
|
@@ -124,7 +126,7 @@ export class InspectActiveComponent implements OnInit {
|
124
|
126
|
var a = document.createElement("a");
|
125
|
127
|
a.href = fileURL;
|
126
|
128
|
a.target = "_blank";
|
127
|
|
- a.download = "支助人员统计.xls";
|
|
129
|
+ a.download = "人员检查主动服务统计.xls";
|
128
|
130
|
document.body.appendChild(a);
|
129
|
131
|
a.click();
|
130
|
132
|
},
|