提交 3face9ee authored 作者: tb53863844's avatar tb53863844

1111

上级 07282336
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
namespace: 'DataColumn', namespace: 'DataColumn',
state: { state: {
isShowModal:false, isShowModal:{},
list: [], list: [],
refs: [], refs: [],
......
...@@ -151,20 +151,24 @@ export default class tableCom extends Component { ...@@ -151,20 +151,24 @@ export default class tableCom extends Component {
}, },
}; };
excludeKeys = ['defaultValues', '']; excludeKeys = ['defaultValues', ''];
closeModal = callback => { closeModal = (fk,callback) => {
const { dispatch } = this.props; const { dispatch } = this.props;
const x = this.props.DataColumn.isShowModal
x[fk]=false
dispatch({ dispatch({
type: 'DataColumn/showModal', type: 'DataColumn/showModal',
payload: { isShowModal: false }, payload: { isShowModal:x },
callback: callback, callback: callback,
}); });
}; };
showModal = (fk, title, data, modalProps) => { showModal = (fk, title, data, modalProps) => {
const { dispatch } = this.props; const { dispatch } = this.props;
const x = this.props.DataColumn.isShowModal
x[fk]=true
dispatch({ dispatch({
type: 'DataColumn/showModal', type: 'DataColumn/showModal',
payload: { isShowModal: true }, payload: { isShowModal:x},
callback: () => { callback: () => {
this.setState({ this.setState({
modalInit: data, modalInit: data,
...@@ -2935,7 +2939,7 @@ export default class tableCom extends Component { ...@@ -2935,7 +2939,7 @@ export default class tableCom extends Component {
? json.vlds ? json.vlds
: [{ required: required, message: '请输入' + title }], : [{ required: required, message: '请输入' + title }],
})( })(
<CronEditor/> <CronEditor style={{width:600}}/>
); );
break; break;
case 'LocationCom': case 'LocationCom':
...@@ -3116,8 +3120,8 @@ export default class tableCom extends Component { ...@@ -3116,8 +3120,8 @@ export default class tableCom extends Component {
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
visible={this.props.DataColumn.isShowModal} visible={this.props.DataColumn.isShowModal[modalCode]}
handleCancel={this.closeModal} handleCancel={this.closeModal.bind(this,modalCode)}
title={modalTitle} title={modalTitle}
> >
<ZdyTable <ZdyTable
...@@ -3197,8 +3201,8 @@ export default class tableCom extends Component { ...@@ -3197,8 +3201,8 @@ export default class tableCom extends Component {
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
visible={this.props.DataColumn.isShowModal} visible={this.props.DataColumn.isShowModal[modalCode]}
handleCancel={this.closeModal} handleCancel={this.closeModal.bind(this,modalCode)}
title={modalTitle} title={modalTitle}
> >
<ZdyTable <ZdyTable
...@@ -3233,8 +3237,8 @@ export default class tableCom extends Component { ...@@ -3233,8 +3237,8 @@ export default class tableCom extends Component {
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
visible={this.props.DataColumn.isShowModal} visible={this.props.DataColumn.isShowModal[modalCode]}
handleCancel={this.closeModal} handleCancel={this.closeModal.bind(this,modalCode)}
title={modalTitle} title={modalTitle}
> >
<ZdyTable <ZdyTable
...@@ -3276,8 +3280,8 @@ export default class tableCom extends Component { ...@@ -3276,8 +3280,8 @@ export default class tableCom extends Component {
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
visible={this.props.DataColumn.isShowModal} visible={this.props.DataColumn.isShowModal[modalCode]}
handleCancel={this.closeModal} handleCancel={this.closeModal.bind(this,modalCode)}
title={modalTitle} title={modalTitle}
> >
<ZdyTable <ZdyTable
...@@ -3313,8 +3317,8 @@ export default class tableCom extends Component { ...@@ -3313,8 +3317,8 @@ export default class tableCom extends Component {
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
visible={this.props.DataColumn.isShowModal} visible={this.props.DataColumn.isShowModal[modalCode]}
handleCancel={this.closeModal} handleCancel={this.closeModal.bind(this,modalCode)}
title={modalTitle} title={modalTitle}
> >
<ZdyTable <ZdyTable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论