Browse Source

[完善]完善导出表格名称

dev
邵佳豪 3 years ago
parent
commit
f320c436c1
  1. 2
      src/app/pages/oil-station-info/oil-station-info.component.ts

2
src/app/pages/oil-station-info/oil-station-info.component.ts

@ -144,7 +144,7 @@ export class OilStationInfoComponent implements OnInit {
const link = document.createElement('a');
const blob = new Blob([data], { type: 'application/vnd.ms-excel' });
link.setAttribute('href', window.URL.createObjectURL(blob));
link.setAttribute('download', '统计信息' + '.xls');
link.setAttribute('download', this.httpBody.stationName + '基本信息' + '.xls');
link.style.visibility = 'hidden';
document.body.appendChild(link);
link.click();

Loading…
Cancel
Save