Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excel下载只能下载一页的数据 #2623

Closed
plsof opened this issue Oct 4, 2019 · 2 comments
Closed

excel下载只能下载一页的数据 #2623

plsof opened this issue Oct 4, 2019 · 2 comments

Comments

@plsof
Copy link

plsof commented Oct 4, 2019

如果数据超过了一页,excel只能下载一页的数据

@mayunhai
Copy link
Contributor

mayunhai commented Oct 8, 2019

那你可以让服务端 提供单独接口一次性把所有数据传入生成

@PanJiaChen
Copy link
Owner

我目前项目做法会去拉一遍全数据,例如

 const query = Object.assign({}, this.listQuery, {
          page: 1,
          limit: 100000
        })
        creativeData(query).then((res) => {
          const { data: { cost_info }} = res
          resolve(converter(cost_info))
        }).catch(() => {
          reject()
        })

当数据再大时,会生成多个excel,每个excel上限20000,单独请求数据。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants