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

[Feature]: steedos-filed lookup字段过滤功能增强,允许配置显示左侧过滤开关及过滤字段等 #7119

Open
3 of 4 tasks
yinlianghui opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
done 开发已完成 new feature
Milestone

Comments

@yinlianghui
Copy link
Contributor

yinlianghui commented Jan 14, 2025

Summary 摘要

  • 左侧增加开关,是否显示左侧过滤器,最好可以配置左侧过滤器形式
  • 顶部搜索表单可配置显示的过滤字段,如果没配置就显示对象上配置的
  • 可配置是否默认展开顶部搜索表单
  • 展开顶部搜索表单时,左侧过滤界面顶部空白,样式问题【不好处理,先放放】

Why should this be worked on? 此需求的应用场景?

项目中有时人员字段需要以上配置功能
image

@yinlianghui yinlianghui self-assigned this Jan 14, 2025
@yinlianghui yinlianghui added this to the 2.7 milestone Jan 14, 2025
@yinlianghui yinlianghui changed the title [Feature]: lookup字段过滤功能增强 [Feature]: steedos fileds字段过滤功能增强 Jan 14, 2025
@yinlianghui yinlianghui changed the title [Feature]: steedos fileds字段过滤功能增强 [Feature]: steedos-filed字段过滤功能增强 Jan 14, 2025
@yinlianghui yinlianghui changed the title [Feature]: steedos-filed字段过滤功能增强 [Feature]: steedos-filed lookup字段过滤功能增强,允许配置显示左侧过滤开关及过滤字段等 Jan 14, 2025
@yinlianghui yinlianghui added done 开发已完成 and removed done 开发已完成 labels Jan 14, 2025
@yinlianghui
Copy link
Contributor Author

yinlianghui commented Jan 14, 2025

已为steedos-fields lookup字段config属性增加对应可配置项:

  • searchable_fields:顶部搜索表单显示的过滤字段,如果没配置就按原规则显示,比如显示对象列表视图上配置的过滤字段,格式与之前对象列表视图配置规则一样。
  • auto_open_filter:是否自动展开顶部搜索表单,默认为false
  • show_left_filter:是否显示左侧过滤器(如果有的话),默认为true,目前只有lookup选人字段有左侧树过滤器

示例:

{
    "type": "steedos-field",
    "config": {
        "type": "lookup",
        "label": "填报人",
        "object": "b6_tables",
        "name": "informants",
        "multiple": true,
        "reference_to": "users",
        "inlineHelpText": "",
        "searchable_fields": [
            {
                "field": "name"
            }
        ],
        "auto_open_filter": true,
        "show_left_filter": false
    },
    "id": "u:93a716384a93"
}

@yinlianghui yinlianghui added the done 开发已完成 label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 开发已完成 new feature
Projects
None yet
Development

No branches or pull requests

1 participant