|
@@ -60,7 +60,7 @@ class NormalLoginForm extends Component<iLoginProps, iState> {
|
|
|
name="code"
|
|
|
rules={[ { required: true, message: 'Please input your Project!' } ]}
|
|
|
>
|
|
|
- <Input placeholder="项目编号" onChange={this.handleProjectCode}/>
|
|
|
+ <Input placeholder="项目编号" onChange={this.handleProjectCode} autoFocus/>
|
|
|
</Form.Item>
|
|
|
<Form.Item
|
|
|
name="account"
|
|
@@ -72,15 +72,15 @@ class NormalLoginForm extends Component<iLoginProps, iState> {
|
|
|
name="password"
|
|
|
rules={[ { required: true, message: 'Please input your Password!' } ]}
|
|
|
>
|
|
|
- <Input.Password type="password" placeholder="密码"/>
|
|
|
+ <Input.Password type="password" placeholder="密码" />
|
|
|
</Form.Item>
|
|
|
|
|
|
<Form.Item>
|
|
|
<Button type="primary" htmlType="submit">登录</Button>
|
|
|
</Form.Item>
|
|
|
- <div className={styles.textRight}>
|
|
|
+ {/* <div className={styles.textRight}>
|
|
|
<span onClick={this.handleForgetPsw}>忘记密码?</span>
|
|
|
- </div>
|
|
|
+ </div> */}
|
|
|
<RetrieveForm visible={this.state.visible} setVisible={this.setVisible} />
|
|
|
</Form>
|
|
|
)
|
|
@@ -88,7 +88,7 @@ class NormalLoginForm extends Component<iLoginProps, iState> {
|
|
|
}
|
|
|
|
|
|
// 找回密码Form表单
|
|
|
-const RetrieveForm:React.FC<iRetrieveFormProps>= ({ visible, setVisible }) => {
|
|
|
+const RetrieveForm: React.FC<iRetrieveFormProps> = ({ visible, setVisible }) => {
|
|
|
const handleOk = () => {
|
|
|
console.log('ok')
|
|
|
|
|
@@ -99,14 +99,14 @@ const RetrieveForm:React.FC<iRetrieveFormProps>= ({ visible, setVisible }) => {
|
|
|
}
|
|
|
return (
|
|
|
<Modal
|
|
|
- title="找回密码"
|
|
|
- visible={visible}
|
|
|
- onOk={handleOk}
|
|
|
- onCancel={handleCancel}
|
|
|
- cancelText="取消"
|
|
|
- closable={false}
|
|
|
- okText="重置密码"
|
|
|
- />
|
|
|
+ title="找回密码"
|
|
|
+ visible={visible}
|
|
|
+ onOk={handleOk}
|
|
|
+ onCancel={handleCancel}
|
|
|
+ cancelText="取消"
|
|
|
+ closable={false}
|
|
|
+ okText="重置密码"
|
|
|
+ />
|
|
|
)
|
|
|
}
|
|
|
|