zuiidea / antd-admin

An excellent front-end solution for enterprise applications built upon Ant Design and UmiJS

Home Page:https://antd-admin.zuiidea.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

多条件查询

sunshinefull opened this issue · comments

commented

如果url地址是http://localhost:8000/test?field=name&field1=address&keyword=6&keyword1=2
如何实现多条件查询onSearch (fieldsValue) {
fieldsValue.keyword.length ? dispatch(routerRedux.push({
pathname: '/users',
query: {
field: fieldsValue.field,
keyword: fieldsValue.keyword
}
})) : dispatch(routerRedux.push({
pathname: '/users'
}))