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