| | |
| | | import Settings from '../../../config/defaultSettings'; |
| | | import EditPwd from './editPwd.jsx'; |
| | | import { updatePwd } from './service.js'; |
| | | import bgImg from '../../../public/loginBg.png'; |
| | | import './style.less'; |
| | | |
| | | const Lang = () => { |
| | |
| | | return { |
| | | height: '100vh', |
| | | overflow: 'auto', |
| | | backgroundImage: `url(${bgImg})`, |
| | | backgroundSize: 'cover', |
| | | backgroundPosition: 'center', |
| | | }; |
| | | }); |
| | | |
| | |
| | | id: 'pages.login.success', |
| | | defaultMessage: '登录成功!', |
| | | }); |
| | | const userInfo = { userName: data.name,...data }; |
| | | const userInfo = { userName: data.name, ...data }; |
| | | localStorage.setItem('userInfo', JSON.stringify(userInfo)); |
| | | let permissionList: any[] = [ |
| | | "/work_order_transaction_management/work_order_item_configuration", |
| | |
| | | setInitialState((s: any) => ({ |
| | | ...s, |
| | | token: data.token, |
| | | userName:data.name, |
| | | userName: data.name, |
| | | permission: accessObj, |
| | | currentUser: userInfo, |
| | | settings: Settings, |
| | |
| | | top: '50%', |
| | | left: '50%', |
| | | transform: 'translate(-50%,-50%)', |
| | | display: 'flex', |
| | | alignItems: 'center', |
| | | }} |
| | | > |
| | | <div style={{ width: '787px', fontSize: '26px', textAlign: 'center' }}> |
| | | <h1> |
| | | “三个身边”群众工作机制 |
| | | </h1> |
| | | <h1>平台</h1> |
| | | <div className='sysName'> |
| | | <div>“三个身边”</div> |
| | | <div>群众工作机制</div> |
| | | </div> |
| | | <LoginForm |
| | | contentStyle={{ |
| | |
| | | await handleSubmit(values as API.LoginParams); |
| | | }} |
| | | > |
| | | <h1 style={{ fontSize: '26px', textAlign: 'center', marginBottom: '20px' }}>登录</h1> |
| | | <div style={{ fontSize: '23px', lineHeight: '32px', textAlign: 'center', marginBottom: '45px', fontWeight: 'bold' }}>登录</div> |
| | | {status === 'error' && loginType === 'username' && ( |
| | | <LoginMessage |
| | | content={intl.formatMessage({ |
| | |
| | | name="phone" |
| | | fieldProps={{ |
| | | size: 'large', |
| | | prefix: <UserOutlined />, |
| | | prefix: <img src={require('../../../public/account.png')} style={{ width: 18, height: 18 }} />, |
| | | }} |
| | | placeholder="请输入账号" |
| | | rules={[ |
| | |
| | | name="password" |
| | | fieldProps={{ |
| | | size: 'large', |
| | | prefix: <LockOutlined />, |
| | | prefix: <img src={require('../../../public/password.png')} style={{ width: 18, height: 18 }} />, |
| | | }} |
| | | placeholder="请输入密码" |
| | | rules={[ |
| | |
| | | }, |
| | | ]} |
| | | /> |
| | | <Space> |
| | | <div className='codeBox'> |
| | | <ProFormText |
| | | name="code" |
| | | fieldProps={{ |
| | | size: 'large', |
| | | prefix: <SafetyOutlined />, |
| | | prefix: <img src={require('../../../public/code.png')} style={{ width: 18, height: 18 }} />, |
| | | }} |
| | | placeholder="请输入验证码" |
| | | rules={[ |
| | |
| | | }, |
| | | ]} |
| | | /> |
| | | <div style={{ marginBottom: '24px' }}> |
| | | <Captcha onChange={handleClick} ref={captchaRef} bgColor="#fff" /> |
| | | <div> |
| | | <Captcha onChange={handleClick} ref={captchaRef} bgColor="#fff" height={52} /> |
| | | </div> |
| | | </Space> |
| | | </div> |
| | | </> |
| | | )} |
| | | {status === 'error' && loginType === 'mobile' && <LoginMessage content="验证码错误" />} |