| | |
| | | import { is, fromJS } from 'immutable' |
| | | import { Button, Modal, notification } from 'antd' |
| | | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | import SettingForm from './settingform' |
| | | import Api from '@/api' |
| | | |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | visible: false, |
| | | loading: false, |
| | | translist: [] |
| | |
| | | } |
| | | |
| | | render () { |
| | | const { visible, dict, loading, translist } = this.state |
| | | const { visible, loading, translist } = this.state |
| | | |
| | | return ( |
| | | <div className="transfer-wrap"> |
| | |
| | | visible={visible} |
| | | width={500} |
| | | maskClosable={false} |
| | | okText={dict['model.submit']} |
| | | okText="提交" |
| | | onOk={this.verifySubmit} |
| | | onCancel={() => { this.setState({ visible: false }) }} |
| | | confirmLoading={loading} |
| | | destroyOnClose |
| | | > |
| | | <SettingForm |
| | | dict={dict} |
| | | translist={translist} |
| | | wrappedComponentRef={(inst) => this.verifyRef = inst} |
| | | /> |