| | |
| | | import './index.scss' |
| | | |
| | | const LoginForm = asyncComponent(() => import('./loginform')) |
| | | const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList')) |
| | | // const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList')) |
| | | const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN' |
| | | |
| | | class Login extends Component { |
| | |
| | | |
| | | async loginsubmit (param) { |
| | | // 登录提交 |
| | | // let password = this.md5Password(param.password) |
| | | // let result = await Api.loginsystem(param.username, param.password) |
| | | // if (!result.IsError) { |
| | | let res = await Api.getusermsg(param.username, param.password) |
| | | if (res.status) { |
| | | sessionStorage.setItem('UserID', res.UserID) |
| | |
| | | isDisabled: false |
| | | }) |
| | | } |
| | | // } else { |
| | | // message.warning(result.Message) |
| | | // this.setState({ |
| | | // isDisabled: false |
| | | // }) |
| | | // } |
| | | } |
| | | |
| | | componentDidMount () { |
| | |
| | | } |
| | | <p dangerouslySetInnerHTML={{ __html: this.state.ICP.replace(/\s/ig, ' ') }}></p> |
| | | </div> |
| | | {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null } |
| | | {/* {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null } */} |
| | | </div> |
| | | ) |
| | | } |