feature/2.19.1.2501.01-移动端查看工资单密码设置
This commit is contained in:
parent
b01d280644
commit
6b3e321846
|
|
@ -8,7 +8,6 @@
|
||||||
* @description:
|
* @description:
|
||||||
*/
|
*/
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import ReactDom from "react-dom";
|
|
||||||
import { WeaLocaleProvider } from "ecCom";
|
import { WeaLocaleProvider } from "ecCom";
|
||||||
import { WeaForm, WeaSwitch } from "comsMobx";
|
import { WeaForm, WeaSwitch } from "comsMobx";
|
||||||
import { message } from "antd";
|
import { message } from "antd";
|
||||||
|
|
@ -24,7 +23,7 @@ const getLabel = WeaLocaleProvider.getLabel;
|
||||||
class SecondaryVerify extends Component {
|
class SecondaryVerify extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = { notSetting: false };
|
this.state = { notSetting: false, visible: false };
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
@ -36,7 +35,7 @@ class SecondaryVerify extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
form.resetForm();
|
this.setState({ notSetting: false, visible: false }, () => form.resetForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
doSecondAuth = () => {
|
doSecondAuth = () => {
|
||||||
|
|
@ -57,12 +56,10 @@ class SecondaryVerify extends Component {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
handleSetSecondaryPassword = () => {
|
handleSetSecondaryPassword = () => this.setState({ visible: false });
|
||||||
ReactDom.render(<LoginVerify {...this.props} />, document.getElementById("container"));
|
|
||||||
};
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { notSetting } = this.state;
|
const { notSetting, visible } = this.state;
|
||||||
const itemRender = {
|
const itemRender = {
|
||||||
authCode: (field, textAreaProps, form, formParams) => {
|
authCode: (field, textAreaProps, form, formParams) => {
|
||||||
return (<React.Fragment>
|
return (<React.Fragment>
|
||||||
|
|
@ -80,6 +77,9 @@ class SecondaryVerify extends Component {
|
||||||
return (<MobileModal title={getLabel(111, "身份验证")} onConfirm={this.doSecondAuth}>
|
return (<MobileModal title={getLabel(111, "身份验证")} onConfirm={this.doSecondAuth}>
|
||||||
<FormInfo center={false} custLabelCol={9} itemRender={itemRender} form={form}
|
<FormInfo center={false} custLabelCol={9} itemRender={itemRender} form={form}
|
||||||
formFields={secondaryVerifyConditions}/>
|
formFields={secondaryVerifyConditions}/>
|
||||||
|
{
|
||||||
|
visible && <LoginVerify {...this.props} />
|
||||||
|
}
|
||||||
</MobileModal>);
|
</MobileModal>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue