|
@@ -161,12 +161,12 @@ export default {
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
async onExport() {
|
|
|
- const res = await dayExport(this.queryParams.reportDate);
|
|
|
+ const res = await dayExport(this.queryParams.reportDate,this.queryParams.reportDate);
|
|
|
if (res) {
|
|
|
const elink = document.createElement("a");
|
|
|
- elink.download = `日报-${this.queryParams.reportDate}.xls`;
|
|
|
+ elink.download = `衡阳公司配电专业安全管控专班日报-${this.queryParams.reportDate}.doc`;
|
|
|
elink.style.display = "none";
|
|
|
- const blob = new Blob([res], { type: "application/x-msdownload" });
|
|
|
+ const blob = new Blob([res], { type: "application/msword;charset=UTF-8" });
|
|
|
elink.href = URL.createObjectURL(blob);
|
|
|
document.body.appendChild(elink);
|
|
|
elink.click();
|