提交 23dfee2c authored 作者: 钟是志's avatar 钟是志

弹窗组件先赋值 再显示弹窗

上级 90c2e373
...@@ -162,18 +162,22 @@ export default class TableCom extends Component { ...@@ -162,18 +162,22 @@ export default class TableCom extends Component {
const { dispatch } = this.props; const { dispatch } = this.props;
const x = this.props.DataColumn.isShowModal; const x = this.props.DataColumn.isShowModal;
x[fk] = true; x[fk] = true;
this.setState({
modalInit: data,
}, () => {
dispatch({ dispatch({
type: 'DataColumn/showModal', type: 'DataColumn/showModal',
payload: { isShowModal: x }, payload: { isShowModal: x },
callback: () => { callback: () => {
this.setState({ this.setState({
modalInit: data,
modalTitle: title, modalTitle: title,
modalCode: fk, modalCode: fk,
modalProps: modalProps, modalProps: modalProps,
}); });
}, },
}); });
})
}; };
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论