fix 区域树
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { Component } from 'react'
|
||||
import { Form, Button, Table, Tooltip } from 'antd'
|
||||
import { AntIcon } from 'components'
|
||||
import { isEqual } from 'lodash'
|
||||
|
||||
const propsMap = ['columns', 'autoLoad', 'loadData', 'pageIndex', 'pageSize']
|
||||
|
||||
@@ -157,6 +158,10 @@ export default class QueryTable extends Component {
|
||||
onLoadData = async () => {
|
||||
this.onLoading()
|
||||
|
||||
if (isEqual(this.query, {})) {
|
||||
this.query = this.props.queryInitialValues
|
||||
}
|
||||
|
||||
const res = await this.loadData(
|
||||
{
|
||||
pageIndex: this.pagination.current,
|
||||
|
||||
Reference in New Issue
Block a user