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

修复表格服务端分页导出数据不全问题 #2093

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

nick2wang
Copy link
Collaborator

fix #2092
bootstrap-table-export在使用server端分页时不能自定义导出当前页面全部数据

修改前:
if ("all" === r.exportDataType && r.pagination) {
	var l = "server" === r.sidePagination ? "post-body.bs.table" : "post-change.bs.table",
		u = this.options.virtualScroll;
	this.$el.one(l, (function() {
		setTimeout((function() {
			c((function() {
				e.options.virtualScroll = u, e.togglePagination()
			}))
		}), 0)
	})), this.options.virtualScroll = !1, this.togglePagination(), this.trigger("export-saved", this.getData())
}
修改后:
if ("all" === r.exportDataType && r.pagination) {
	var u = this.options.virtualScroll;
	this.$el.one("post-change.bs.table", (function() {
		setTimeout((function() {
			c((function() {
				e.options.virtualScroll = u, e.togglePagination()
			}))
		}), 0)
	})), this.options.virtualScroll = !1, this.togglePagination(), this.trigger("export-saved", this.getData())
}

@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c873c38) 75.51% compared to head (1e2e622) 75.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2093   +/-   ##
=======================================
  Coverage   75.51%   75.51%           
=======================================
  Files         102      102           
  Lines       14906    14906           
=======================================
  Hits        11257    11257           
  Misses       3649     3649           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@LeoQuote
Copy link
Collaborator

给这个项目也提个 pr 吧

@nick2wang
Copy link
Collaborator Author

给这个项目也提个 pr 吧

那边策略应该是限制服务端分页下载,我们这边用得少就直接改了

@nick2wang nick2wang merged commit 17bca47 into hhyo:master Mar 27, 2023
@nick2wang nick2wang deleted the fix-export-bug branch March 31, 2023 06:38
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

Successfully merging this pull request may close these issues.

导出top表空间数据不全
2 participants