提交 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;
dispatch({ this.setState({
type: 'DataColumn/showModal', modalInit: data,
payload: { isShowModal: x }, }, () => {
callback: () => { dispatch({
this.setState({ type: 'DataColumn/showModal',
modalInit: data, payload: { isShowModal: x },
modalTitle: title, callback: () => {
modalCode: fk, this.setState({
modalProps: modalProps, modalTitle: title,
}); modalCode: fk,
}, modalProps: modalProps,
}); });
},
});
})
}; };
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论