|
|
|
@ -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(); |
|
|
|
|