提交 b3827e7e authored 作者: chscls@163.com's avatar chscls@163.com

修复bug

上级 689af3ed
......@@ -41,6 +41,7 @@ export default class TableList extends React.Component {
}
render() {
console.log(this.state)
const {isTree,json} = this.props
return isTree?
<TreeList
......
......@@ -379,11 +379,13 @@ class FormList extends React.Component {
componentWillReceiveProps(nextProps){
const b = nextProps.value||{}
const a = this.props.value||{}
if(JSON.stringify(a)!=JSON.stringify(b)){
const jsonb=JSON.stringify(b)
const jsona=JSON.stringify(a)
this.custom=Base16Encode(jsonb)
if(jsona!=jsonb){
const params = {
pageNo: 1,
pageSize: this.props.pageSize||10,
......@@ -393,7 +395,7 @@ class FormList extends React.Component {
this.columns=nextProps.value.columns
}
this.custom=Base16Encode(JSON.stringify(b))
if( nextProps.value.getPage){
this.getPage(params,null,nextProps.value.getPage);
}else{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论