| | |
| | | import { is, fromJS } from 'immutable' |
| | | import { Modal } from 'antd' |
| | | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | import ModalForm from './modalform' |
| | | |
| | | class NormalFormComponent extends Component { |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | visible: false, |
| | | formlist: [] |
| | | } |
| | |
| | | |
| | | render () { |
| | | const { title, width, children, double } = this.props |
| | | const { visible, dict, formlist } = this.state |
| | | const { visible, formlist } = this.state |
| | | |
| | | return ( |
| | | <> |
| | |
| | | visible={visible} |
| | | width={width} |
| | | maskClosable={false} |
| | | okText={dict['model.confirm']} |
| | | okText="确定" |
| | | onOk={this.submit} |
| | | onCancel={this.cancel} |
| | | destroyOnClose |