-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
【影响大】查询条件带默认值,清除默认值后查询后查询又带到后端 #7774
Labels
bug
Something isn't working
Comments
@zhangdaiscott |
前端版本号:3.7.0 |
sq |
你好,是在查询条件有默认值的场景才会有问题 |
上述示例中,姓名张三就是设置的默认值,删除后,点查询,点分页都不会有问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:"@jeecg/online": "3.7.0-beta",
问题描述:查询条件带默认值,清除默认值时查询后,点击分页数字查询时,清除的条件又带了回来,导致查询有误
项目代码如下:
export const searchFormSchema: FormSchemaItem[] = [
{
field: 'status',
component: 'SearchModal',
defaultValue: defaultStatus,
componentProps: {
type: CodeTableType.STATUS,
defaultValue: defaultAssetStatus,
},
},
]
组件有问题的代码如下:
useDataSource.ts文件的async function fetch(opt?: FetchParams)方法
...(useSearchForm ? await validate() : {}), 执行到validate()时把清空的默认条件又带了回来导致的问题
错误截图:
清空的查询条件又传到了后端
The text was updated successfully, but these errors were encountered: