update query-table
This commit is contained in:
@@ -144,7 +144,9 @@ export default class QueryTable extends Component {
|
|||||||
*/
|
*/
|
||||||
onResetQuery() {
|
onResetQuery() {
|
||||||
this.form.current.resetFields()
|
this.form.current.resetFields()
|
||||||
this.query = {}
|
this.query = {
|
||||||
|
...this.props.queryInitialValues
|
||||||
|
}
|
||||||
this.onReloadData(true)
|
this.onReloadData(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,6 +193,7 @@ export default class QueryTable extends Component {
|
|||||||
layout="inline"
|
layout="inline"
|
||||||
ref={this.form}
|
ref={this.form}
|
||||||
onFinish={(value) => this.onQuery(value)}
|
onFinish={(value) => this.onQuery(value)}
|
||||||
|
initialValues={this.props.queryInitialValues}
|
||||||
>
|
>
|
||||||
{query}
|
{query}
|
||||||
<Form.Item>
|
<Form.Item>
|
||||||
@@ -221,7 +224,7 @@ export default class QueryTable extends Component {
|
|||||||
bordered: true,
|
bordered: true,
|
||||||
size: 'middle',
|
size: 'middle',
|
||||||
rowKey: record => record.id || Math.random().toString(16).slice(2),
|
rowKey: record => record.id || Math.random().toString(16).slice(2),
|
||||||
scroll: { x: 'max-content' }
|
...this.props
|
||||||
}
|
}
|
||||||
|
|
||||||
const on = {
|
const on = {
|
||||||
|
|||||||
Reference in New Issue
Block a user