| | |
| | | export default { |
| | | 'login.auth.tip': 'The system is not authorized, please contact the administrator.', |
| | | 'login.auth.ok': 'OK', |
| | | 'login.auth.cancel': 'Cancel', |
| | | 'login.ok': 'OK', |
| | | 'login.cancel': 'Cancel', |
| | | 'login.username': 'Username', |
| | | 'login.username.empty': 'Please input your username!', |
| | | 'login.phone': 'Mobile phone no', |
| | |
| | | export default { |
| | | 'login.auth.tip': '系统未授权,请联系管理员。', |
| | | 'login.auth.ok': '确定', |
| | | 'login.auth.cancel': '取消', |
| | | 'login.ok': '确定', |
| | | 'login.cancel': '取消', |
| | | 'login.username': '用户名', |
| | | 'login.username.empty': '请输入用户名!', |
| | | 'login.phone': '手机号', |
| | |
| | | dict: iszhCN ? zhCN : enUS, |
| | | isDisabled: false, |
| | | auth: false, |
| | | authError: '', |
| | | loginlogo: window.GLOB.loginlogo || '', |
| | | bgImage: window.GLOB.bgImage || '', |
| | | platName: window.GLOB.platName || '', |
| | |
| | | } else if (res.ErrCode === 'N') { |
| | | localStorage.removeItem(_authUrl) |
| | | this.setState({ |
| | | auth: false |
| | | auth: false, |
| | | authError: res.message |
| | | }) |
| | | } |
| | | }) |
| | |
| | | platName={this.state.platName} |
| | | dict={this.state.dict} |
| | | auth={this.state.auth} |
| | | authError={this.state.authError} |
| | | touristLogin={touristLogin} |
| | | loginWays={loginWays} |
| | | lang={this.state.selectedlang} |
| | |
| | | {/* 编辑状态登录 */} |
| | | <Modal |
| | | title={this.state.dict['login.sync.cloud']} |
| | | okText={this.state.dict['login.auth.ok']} |
| | | cancelText={this.state.dict['login.auth.cancel']} |
| | | okText={this.state.dict['login.ok']} |
| | | cancelText={this.state.dict['login.cancel']} |
| | | visible={this.state.syncApp} |
| | | onOk={this.syncSubmit} |
| | | maskClosable={false} |
| | |
| | | handleSubmit: PropTypes.func, |
| | | dict: PropTypes.object, |
| | | auth: PropTypes.bool, |
| | | authError: PropTypes.string, |
| | | touristLogin: PropTypes.bool, |
| | | lang: PropTypes.string, |
| | | langList: PropTypes.array, |
| | |
| | | e.preventDefault() |
| | | if (!this.props.auth) { |
| | | warning({ |
| | | title: this.props.dict['login.auth.tip'], |
| | | okText: this.props.dict['login.auth.ok'], |
| | | cancelText: this.props.dict['login.auth.cancel'], |
| | | title: this.props.authError || this.props.dict['login.auth.tip'], |
| | | okText: this.props.dict['login.ok'], |
| | | cancelText: this.props.dict['login.cancel'], |
| | | onOk() {}, |
| | | onCancel() {} |
| | | }) |