# 优化下载业务逻辑
This commit is contained in:
parent
b2ac5951f2
commit
dd6032672e
|
@ -173,8 +173,9 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.downloadLoading = true
|
this.downloadLoading = true
|
||||||
this.logsListQuery.limit = 10000
|
const exportQuery = Object.assign({}, this.logsListQuery)
|
||||||
await this.getDeviceLogs(this.logsListQuery, 'export')
|
exportQuery.limit = 5000
|
||||||
|
await this.getDeviceLogs(exportQuery, 'export')
|
||||||
this.filename = 'Device Log List ' + String(start).replace(/-/g, '') + '_' + String(end).replace(/-/g, '') + '.xlsx'
|
this.filename = 'Device Log List ' + String(start).replace(/-/g, '') + '_' + String(end).replace(/-/g, '') + '.xlsx'
|
||||||
|
|
||||||
import('@/vendor/Export2Excel').then(excel => {
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
|
|
Loading…
Reference in New Issue