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字段过滤功能增强,支持filter_form_data属性,允许配置顶部展开的过滤条件表单初始表单值 #7128

Open
yinlianghui opened this issue Feb 14, 2025 · 1 comment
Assignees
Labels
done 开发已完成 new feature

Comments

@yinlianghui
Copy link
Contributor

Summary 摘要

  • lookup字段弹出的列表crud过滤条件要初始带上filters_form_data属性中配置的条件
  • 允许用户操作界面变更filters_form_data中指定的字段值(比如下面截图所示的公开小组字段)
  • 区别lookup字段上配置的filters属性,filters属性是直接配置弹出的crud中的base filters,不受用户在展开的过滤条件表单操作影响

Image

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

项目中需求

@yinlianghui yinlianghui self-assigned this Feb 14, 2025
yinlianghui added a commit to steedos/steedos-widgets that referenced this issue Feb 18, 2025
yinlianghui added a commit to steedos/steedos-widgets that referenced this issue Feb 18, 2025
@yinlianghui yinlianghui added the done 开发已完成 label Feb 18, 2025
@yinlianghui yinlianghui changed the title [Feature]: steedos-filed lookup字段过滤功能增强,支持filters_form_data属性,允许配置顶部展开的过滤条件表单初始表单值 [Feature]: steedos-filed lookup字段过滤功能增强,支持filter_form_data属性,允许配置顶部展开的过滤条件表单初始表单值 Feb 18, 2025
@yinlianghui
Copy link
Contributor Author

给lookup字段配置filter_form_data时可以配置为amis变量,也可以配置为事态key-value键值对象值:

"filter_form_data": "${selectedPublicGroupFilterFormData|toJson}"

or

"filter_form_data": {
    "public_group_ids": [
        "67addbef39f9a4503789b38d"
    ]
}

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