diff --git a/src/app/pages/oil-station-info/oil-station-info.component.ts b/src/app/pages/oil-station-info/oil-station-info.component.ts index ee86eb7..6c5eaa9 100644 --- a/src/app/pages/oil-station-info/oil-station-info.component.ts +++ b/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();