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

修复bug

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