| | |
| | | import options from '@/store/options.js' |
| | | import Utils from '@/utils/utils.js' |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | import asyncLoadComponent from '@/utils/asyncLoadComponent' |
| | | import logourl from '@/assets/img/login-logo.png' |
| | | import loginbg from '@/assets/img/loginbg.jpg' |
| | | import './index.scss' |
| | | |
| | | const LoginForm = asyncComponent(() => import('./loginform')) |
| | | const LoginForm = asyncLoadComponent(() => import('./loginform')) |
| | | const Action = asyncComponent(() => import('@/tabviews/zshare/actionList')) |
| | | const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN' |
| | | |
| | | class Login extends Component { |
| | |
| | | ICP: window.GLOB.icp || 'ICP备案: 京ICP备12007830号', |
| | | bgColor: window.GLOB.bgColor || '#000000', |
| | | lineColor: window.GLOB.lineColor || '#1890ff', |
| | | website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com') |
| | | website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com'), |
| | | loaded: false |
| | | } |
| | | |
| | | changelang (item) { |
| | |
| | | sessionStorage.setItem('SessionUid', Utils.getuuid()) |
| | | sessionStorage.setItem('LoginUID', res.LoginUID) |
| | | sessionStorage.setItem('User_Name', res.UserName) |
| | | sessionStorage.setItem('Full_Name', res.FullName) |
| | | sessionStorage.setItem('avatar', res.icon || '') |
| | | |
| | | localStorage.setItem('lang', param.lang) |
| | |
| | | isDisabled={this.state.isDisabled} |
| | | changelang={(value) => this.changelang(value)} |
| | | handleSubmit={() => this.handleSubmit()} |
| | | handleloaded={() => {this.setState({loaded: true})}} |
| | | wrappedComponentRef={(inst) => this.loginformRef = inst} |
| | | /> |
| | | </div> |
| | |
| | | } |
| | | <p dangerouslySetInnerHTML={{ __html: this.state.ICP.replace(/\s/ig, ' ') }}></p> |
| | | </div> |
| | | {this.state.loaded ? <div style={{position: 'fixed', bottom: '-300px'}}> |
| | | <Action |
| | | BID="" |
| | | type="" |
| | | menuType="" |
| | | setting={{}} |
| | | actions={[]} |
| | | triggerBtn={{}} |
| | | dict={{}} |
| | | MenuID="" |
| | | permRoles={{}} |
| | | logcolumns={[]} |
| | | ContainerId="" |
| | | refreshdata={() => {}} |
| | | triggerPopview={() => {}} |
| | | getexceloutparam={() => {}} |
| | | gettableselected={() => {}} |
| | | /> |
| | | </div> : null} |
| | | </div> |
| | | ) |
| | | } |