king
2022-04-26 5046d0d13dc6a8563b8e54e31913bc44cfa1072f
src/views/login/loginform.jsx
@@ -2,6 +2,7 @@
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'
@@ -43,6 +44,9 @@
    let _url = window.location.href.split('#')[0]
    
    if (localStorage.getItem(_url + 'remember') === 'false') {
      remember = false
    }
    if (!window.GLOB.keepKey) {
      remember = false
    }
@@ -308,7 +312,7 @@
              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"
              />,
@@ -363,16 +367,6 @@
              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']}