| | |
| | | } |
| | | |
| | | async resetPwdSubmitexec (param) { |
| | | // 登录提交 |
| | | // 重置密码提交,关闭模态框,清空表单数据 |
| | | let password = this.md5Password(param.originpwd) |
| | | let newpassword = this.md5Password(param.password) |
| | | let result = await Api.resetpassword(password, newpassword) |
| | |
| | | visible: false, |
| | | confirmLoading: false |
| | | }) |
| | | this.formRef.resetfrom() |
| | | message.success(this.state.dict['header.password.resetsuccess']) |
| | | } else { |
| | | message.warning(result.message) |
| | |
| | | } |
| | | |
| | | handleCancel = () => { |
| | | // 取消时关闭修改密码模态框 |
| | | // 取消时关闭修改密码模态框,清空表单数据 |
| | | this.setState({ |
| | | visible: false |
| | | }) |
| | | this.formRef.resetfrom() |
| | | } |
| | | |
| | | logout = () => { |
| | |
| | | confirmLoading={this.state.confirmLoading} |
| | | onCancel={this.handleCancel} |
| | | > |
| | | {this.state.visible && (<Resetpwd dict={this.state.dict} wrappedComponentRef={(inst) => this.formRef = inst} resetPwdSubmit={this.resetPwdSubmit}/>)} |
| | | <Resetpwd dict={this.state.dict} wrappedComponentRef={(inst) => this.formRef = inst} resetPwdSubmit={this.resetPwdSubmit}/> |
| | | </Modal> |
| | | </header> |
| | | ) |