feat: 全部列表页支持服务端列头排序#466
Open
TomyJan wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为全部 14 个服务端分页列表页添加列头点击排序功能,利用 Bootstrap Table 原生排序机制,
通过
onSort回调实现三态循环排序交互。排序交互
点击列头三态循环:默认(ID降序) → 该列降序 → 该列升序 → 恢复默认
排序参数通过 URL 传递(
?sortName=字段&sortOrder=asc|desc),支持分享排序后的列表链接。涉及页面(14 个)
排除的列/页面
域名数量、绑定域名、CNAME记录值等运行时计算字段不可排序后端安全措施
所有排序字段使用白名单校验,防止 SQL 注入