# 优化下载业务逻辑

This commit is contained in:
xianfuxing 2020-06-08 17:44:59 +08:00
parent b2ac5951f2
commit dd6032672e
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ export default {
return
}
this.downloadLoading = true
this.logsListQuery.limit = 10000
await this.getDeviceLogs(this.logsListQuery, 'export')
const exportQuery = Object.assign({}, this.logsListQuery)
exportQuery.limit = 5000
await this.getDeviceLogs(exportQuery, 'export')
this.filename = 'Device Log List ' + String(start).replace(/-/g, '') + '_' + String(end).replace(/-/g, '') + '.xlsx'
import('@/vendor/Export2Excel').then(excel => {