React Admin自定义数组查询字符串的过滤逻辑

问题描述

react-admin上,我正在使用magento rest endpoint,其中过滤器逻辑基于数组。

例如

GET <host>/rest/<store_code>/V1/invoices?
searchCriteria[filter_groups][0][filters][0][field]=created_at&
searchCriteria[filter_groups][0][filters][0][value]=2016-07-01 00:00:00&
searchCriteria[filter_groups][0][filters][0][condition_type]=gt

显然,响应管理员<Filter />组件不允许使用复杂的查询字符串,而只是将所有内容展平为普通对象。

关于如何陷入这种行为的任何想法?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)