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

列表默认按两个字段排序的问题 #4140

Closed
zhangdaiscott opened this issue Oct 27, 2022 · 3 comments
Closed

列表默认按两个字段排序的问题 #4140

zhangdaiscott opened this issue Oct 27, 2022 · 3 comments

Comments

@zhangdaiscott
Copy link
Member

版本号:3.1.0
前端版本:@vue/cli 3.2.1
问题描述:

jeect client端开发时遇到列表默认按两个字段排序的问题,用isorter怎么配置,第一个字段正向排序,第二个字段逆向排序

截图&代码:

/* 排序参数 */
isorter: {
column:'status, create_time',
order: 'asc, desc',
},

可以按两个字段排序,但只能正向排序 asc,desc不起作用

@LiangYongAI
Copy link

我也碰到同样的问题,有答案

@xiaolinVV
Copy link

要改后台查询构造器逻辑,目前的逻辑是判断有 ASC 就直接全部按照 asc 排了,没有 asc 的话,直接使用 desc .

image

@zhangdaiscott
Copy link
Member Author

目前不打算支持,针对个性化的排序,可以自定义查询那块

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