Skip to content

Improve database checkbox field sorting #11016

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

Closed
TCOTC opened this issue Apr 13, 2024 · 5 comments
Closed

Improve database checkbox field sorting #11016

TCOTC opened this issue Apr 13, 2024 · 5 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Apr 13, 2024

数据库新增条目没有参与勾选列排序

勾选

Version environment

- Version: v3.0.10-dev3
- Operating System: Win10
- Browser (if used):
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 13, 2024

发现数据库里根本没有,所以才不参与排序:

image

@TCOTC TCOTC changed the title 数据库勾选列排序异常 数据库新增条目没有参与勾选列排序 Apr 13, 2024
@88250
Copy link
Member

88250 commented Apr 13, 2024

新增行后未编辑过的列都不参与排序的;json 里面只记录编辑过的值。

勾选有点特殊,得考虑一下是不是默认就算编辑过?

@88250 88250 self-assigned this Apr 15, 2024
@88250 88250 changed the title 数据库新增条目没有参与勾选列排序 Improve database checkbox field sorting Apr 15, 2024
@88250 88250 added this to the 3.0.10 milestone Apr 15, 2024
@88250 88250 removed the Enhancement label Apr 15, 2024
@88250 88250 removed this from the 3.0.10 milestone Apr 15, 2024
@88250
Copy link
Member

88250 commented Apr 15, 2024

尝试了下,如果勾选框默认算作不为空参与排序的话会有其他问题,比如新增行以后会跳动,因为和新行不参与排序的规则冲突了。

所以目前还是保持现有设计,如果要参与排序的话得勾选再取消勾选,这一点 v3.0.10 改进。

@88250 88250 closed this as completed Apr 15, 2024
@88250 88250 reopened this Apr 15, 2024
@88250 88250 added this to the 3.0.10 milestone Apr 15, 2024
@88250 88250 closed this as completed Apr 15, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 15, 2024

尝试了下,如果勾选框默认算作不为空参与排序的话会有其他问题,比如新增行以后会跳动,因为和新行不参与排序的规则冲突了。

那刚刚新增的条目默认不参与排序,在这个条目被编辑过之后(比如添加了主键)就参与排序怎么样?

「勾选再取消勾选」还是很奇怪,因为勾选之后就参与排序了,还要找到排序后的位置再取消勾选,比较麻烦

@88250
Copy link
Member

88250 commented Apr 15, 2024

有道理,稍后调整一下,勾选框优先按照主键是否编辑过来决定是否参与排序。

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

No branches or pull requests

2 participants