From 4a3c9311bf41699c09c60a9aaa3a6ebc0030ab20 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Thu, 18 Dec 2025 14:15:03 +0800
Subject: [PATCH] =?UTF-8?q?release/3.0.1.2504.01-=E5=90=88=E5=B9=B6?=
=?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/captchaModal/index.js | 19 +++++++++++--------
.../standingBookDetail/components/normal.js | 16 +++++++++++-----
.../components/regression.js | 10 ++++++++--
3 files changed, 30 insertions(+), 15 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/captchaModal/index.js b/pc4mobx/hrmSalary/components/captchaModal/index.js
index 87da6745..b7e3bdd7 100644
--- a/pc4mobx/hrmSalary/components/captchaModal/index.js
+++ b/pc4mobx/hrmSalary/components/captchaModal/index.js
@@ -21,7 +21,7 @@ const { getLabel } = WeaLocaleProvider;
class Index extends Component {
constructor(props) {
super(props);
- this.state = { captcha: "", time: 60 };
+ this.state = { captcha: "", time: 60, loading: false };
this.timeRef = null;
}
@@ -31,10 +31,11 @@ class Index extends Component {
componentWillUnmount() {
clearInterval(this.timeRef);
- this.setState({ captcha: "", time: 60 });
+ this.setState({ captcha: "", time: 60, loading: false });
}
handleSendCaptcha = () => {
+ this.setState({ loading: true });
sendMobileCode({ id: this.props.id }).then(({ status, data }) => {
if (status) {
this.timeRef = setInterval(() => {
@@ -42,12 +43,14 @@ class Index extends Component {
this.setState({ time: time - 1 }, () => {
if (this.state.time === -1) {
clearInterval(this.timeRef);
- this.setState({ time: 60 });
+ this.setState({ time: 60, loading: false });
}
});
}, 1000);
+ } else {
+ this.setState({ loading: false });
}
- });
+ }).catch(() => this.setState({ loading: false }));
};
handleConfirm = async () => {
const type = getQueryString("type"), f = await form.validateForm();
@@ -69,13 +72,13 @@ class Index extends Component {
};
render() {
- const { captcha, time } = this.state, type = getQueryString("type");
+ const { captcha, time, loading } = this.state, type = getQueryString("type");
const itemRender = {
mobileCode: (field, textAreaProps, form, formParams) => {
return (
this.setState({ captcha: form.getFormParams().mobileCode })}/>
-