| | |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Form, Icon, Input, Button, Modal, message } from 'antd' |
| | | import { UserOutlined } from '@ant-design/icons' |
| | | import md5 from 'md5' |
| | | import moment from 'moment' |
| | | |
| | |
| | | let _url = window.location.href.split('#')[0] |
| | | |
| | | if (localStorage.getItem(_url + 'remember') === 'false') { |
| | | remember = false |
| | | } |
| | | if (!window.GLOB.keepKey) { |
| | | remember = false |
| | | } |
| | | |
| | |
| | | initialValue: this.state.username || '', |
| | | })( |
| | | <Input |
| | | prefix={<Icon type="user" style={{ color: 'rgba(0,0,0,.25)' }} />} |
| | | prefix={<UserOutlined style={{ color: 'rgba(0,0,0,.25)' }} />} |
| | | placeholder={this.props.dict['login.username']} |
| | | autoComplete="off" |
| | | />, |
| | |
| | | initialValue: remember, |
| | | })(<Checkbox onChange={this.rememberChange}>{this.props.dict['login.remember']}</Checkbox>)} |
| | | </Form.Item> : null} */} |
| | | {/* <Form.Item className="minline right"> |
| | | {getFieldDecorator('system', { |
| | | initialValue: localStorage.getItem('bmsSystem') === 'new' ? 'new' : 'old', |
| | | })( |
| | | <Select getPopupContainer={() => document.getElementById('login-form')}> |
| | | <Select.Option key="old" value="old">原系统</Select.Option> |
| | | <Select.Option key="new" value="new">新系统</Select.Option> |
| | | </Select> |
| | | )} |
| | | </Form.Item> */} |
| | | {['uname_pwd', 'sms_vcode'].includes(activeKey) ? <Form.Item className="btn-login"> |
| | | <Button type="primary" htmlType="submit" className="login-form-button" disabled={this.props.isDisabled} loading={this.props.isDisabled}> |
| | | {this.props.dict['login.submit']} |