提交 cf1db6ab authored 作者: 徐立's avatar 徐立

修复bug

上级 087cd718
......@@ -295,6 +295,7 @@ class FormList extends React.Component {
type: 'DataRight/getUserColumnRight',
payload: { objId: this.state.objId },
callback: data => {
this.setState({ columnRights: data });
this.initColumn();
}
......@@ -503,7 +504,6 @@ class FormList extends React.Component {
if(this.props.objCode&&(this.props.objCode=="1"||this.props.objCode==1)){
if(callPage){
callPage(params,(data)=>{
if(!this.state.isReady){
this.setState({data,isReady:true})
}else{
......@@ -857,8 +857,6 @@ class FormList extends React.Component {
render() {
const { modalVisible, selectedRows, querys,tableWidth,rights ,data,isReady} = this.state;
console.log(this.state,this.props,isReady,this.columns)
if(!isReady){
return <div style={{width:20,margin:"auto"}}><Spin/></div>
}
......@@ -883,7 +881,8 @@ class FormList extends React.Component {
}
let showDiv = document.querySelector('#mobelDiv')?
document.querySelector('#mobelDiv').clientWidth
:1100
:'100%'
const parentMethods = {
handleAdd: this.handleAdd,
handleModalVisible: this.handleModalVisible,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论