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

弹出框属性设置

上级 ea471e45
......@@ -15,6 +15,8 @@ export default class FormModal extends React.Component {
destroyOnClose
title={this.props.title}
maskClosable={false}
width={this.props.width}
height={this.props.height}
visible={this.props.visible}
footer={null}
onCancel={this.props.handleCancel}
......
......@@ -137,7 +137,7 @@ export default class tableCom extends Component {
sqlModel: {},
columns: [],
sqlContent: null,
modalProps:{},
modalTitle: '',
modalInit: {},
modalCode: null,
......@@ -156,14 +156,14 @@ export default class tableCom extends Component {
callback: callback,
});
};
showModal = (fk, title, data) => {
showModal = (fk, title, data,modalProps) => {
const { dispatch } = this.props;
dispatch({
type: 'DataColumn/showModal',
payload: { isShowModal: true },
callback: () => {
this.setState({ modalInit: data, modalTitle: title, modalCode: fk });
this.setState({ modalInit: data, modalTitle: title, modalCode: fk,modalProps:modalProps });
},
});
};
......@@ -1432,7 +1432,7 @@ export default class tableCom extends Component {
isEdit,
datas,
} = this.props;
const { options, labels, selectDis, modalCode, modalTitle, modalInit } = this.state;
const { options, labels, selectDis, modalCode, modalTitle, modalInit,modalProps } = this.state;
const { getFieldDecorator, getFieldError, getFieldProps } = this.props.form;
const disabled = json != null ? json.disabled : false;
if (json == null) {
......@@ -2997,6 +2997,7 @@ export default class tableCom extends Component {
<Card style={{ margin: 5, border: '1px solid #ccc' }}>
{modalCode ? (
<FormModal
{...modalProps}
visible={this.props.DataColumn.isShowModal}
handleCancel={this.closeModal}
title={modalTitle}
......@@ -3078,6 +3079,7 @@ export default class tableCom extends Component {
</Col>
{modalCode ? (
<FormModal
{...modalProps}
visible={this.props.DataColumn.isShowModal}
handleCancel={this.closeModal}
title={modalTitle}
......@@ -3109,6 +3111,7 @@ export default class tableCom extends Component {
<>
{modalCode ? (
<FormModal
{...modalProps}
visible={this.props.DataColumn.isShowModal}
handleCancel={this.closeModal}
title={modalTitle}
......@@ -3148,6 +3151,7 @@ export default class tableCom extends Component {
<>
{modalCode ? (
<FormModal
{...modalProps}
visible={this.props.DataColumn.isShowModal}
handleCancel={this.closeModal}
title={modalTitle}
......@@ -3181,6 +3185,7 @@ export default class tableCom extends Component {
<>
{modalCode ? (
<FormModal
{...modalProps}
visible={this.props.DataColumn.isShowModal}
handleCancel={this.closeModal}
title={modalTitle}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论