提交 a3b18b9d authored 作者: tb53863844's avatar tb53863844

开发

上级 2db7c039
...@@ -649,6 +649,7 @@ class FormList extends React.Component { ...@@ -649,6 +649,7 @@ class FormList extends React.Component {
}; };
sqlBs16 = Base16Encode(this.props.sql); sqlBs16 = Base16Encode(this.props.sql);
getPage = (params, values, callPage) => { getPage = (params, values, callPage) => {
if (this.columns == null || this.columns.length == 0) { if (this.columns == null || this.columns.length == 0) {
return; return;
} }
...@@ -656,11 +657,15 @@ class FormList extends React.Component { ...@@ -656,11 +657,15 @@ class FormList extends React.Component {
const pagination = this.state.data.pagination; const pagination = this.state.data.pagination;
if (params == null) { if (params == null) {
params = { params = {
pageNo: pagination.current ? pagination.current : 1, pageNo: pagination.current ? pagination.current : 1,
pageSize: pagination.pageSize ? pagination.pageSize : this.props.pageSize || 10, pageSize: pagination.pageSize ? pagination.pageSize : this.props.pageSize || 10,
query: JSON.stringify(values != null ? values : this.state.formValues), query: JSON.stringify(values != null ? values : this.state.formValues),
}; };
}else{
if(params.pageNo==null) return;
} }
if (this.props.objCode && (this.props.objCode == '1' || this.props.objCode == 1)) { if (this.props.objCode && (this.props.objCode == '1' || this.props.objCode == 1)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论