|
@@ -91,7 +91,7 @@ class buildingDetailStats extends React.Component {
|
91
|
91
|
|
92
|
92
|
//导出
|
93
|
93
|
exportBuildingStats = () => {
|
94
|
|
- request({ ...apis.stats.buildingExport, params: { startDate: this.state.startDate, endDate: this.state.endDate, buildingId: this.state.buildingId } })
|
|
94
|
+ request({ ...apis.stats.buildingTimeExport, params: { startDate: this.state.startDate, endDate: this.state.endDate, buildingId: this.state.buildingId } })
|
95
|
95
|
.then(data => {
|
96
|
96
|
if (!data) {
|
97
|
97
|
return
|
|
@@ -100,7 +100,7 @@ class buildingDetailStats extends React.Component {
|
100
|
100
|
const link = document.createElement('a')
|
101
|
101
|
link.style.display = 'none'
|
102
|
102
|
link.href = url
|
103
|
|
- link.setAttribute('download', '项目统计.xlsx')
|
|
103
|
+ link.setAttribute('download', '项目详情统计.xlsx')
|
104
|
104
|
document.body.append(link)
|
105
|
105
|
link.click()
|
106
|
106
|
}).catch(() => {
|