From c957fcc8797c0db991a38e7067760da5beedf2ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Tue, 12 Nov 2019 13:15:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CompetitionContentspdfpeopledata.js | 23 ++++++++++---------
.../user/modal/RealNameCertificationModal.js | 4 ++--
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
index 8adc731ec..00dcef637 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js
@@ -34,7 +34,7 @@ class CompetitionContentspdfpeopledata extends Component {
window.document.title = '竞赛';
console.log("获取用户信息");
console.log(this.props);
- this.getdata();
+
this.GetawardinformationAPI();
let query=this.props.location&&this.props.location.search;
const types = query.split('user_id=')
@@ -44,6 +44,7 @@ class CompetitionContentspdfpeopledata extends Component {
}else{
userid=types[1];
}
+ this.getdata(userid);
this.GetuseridApi(userid);
}
@@ -133,7 +134,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.setState({
phonebool: false
})
- this.getdata();
+ this.getdata(this.state.userdata.id);
}
}).catch((error) => {
console.log(error);
@@ -161,7 +162,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.setState({
emailbool: false
})
- this.getdata();
+ this.getdata(this.state.userdata.id);
}
}).catch((error) => {
console.log(error);
@@ -313,7 +314,7 @@ class CompetitionContentspdfpeopledata extends Component {
if (result.data.status == 0) {
// console.log(JSON.stringify(result));
this.props.showNotification(`提交成功成功`);
- this.getdata();
+ this.getdata(this.state.userdata.id);
this.GetawardinformationAPI();
}
} catch (e) {
@@ -330,7 +331,7 @@ class CompetitionContentspdfpeopledata extends Component {
//取消认证弹框
onCancel = () => {
- this.getdata();
+ this.getdata(this.state.userdata.id);
}
@@ -352,7 +353,7 @@ class CompetitionContentspdfpeopledata extends Component {
} else if (index === 2) {
this.props.showNotification('撤销职业认证成功')
}
- this.getdata();
+ this.getdata(this.state.userdata.id);
}
} catch (e) {
@@ -380,7 +381,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.realNameCertificationModal1 = form}
certification={certification}
- Getdata={() => this.getdata()}
+ Getdata={(id) => this.getdata(id)}
onCancel={() => this.onCancel()}
>
@@ -391,7 +392,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.realNameCertificationModal2 = form}
certification={certification}
- Getdata={() => this.getdata()}
+ Getdata={(id) => this.getdata(id)}
onCancel={() => this.onCancel()}
> : ""}
@@ -505,7 +506,7 @@ class CompetitionContentspdfpeopledata extends Component {
phonebool === true &&userdata ?
this.hideUpdating(i)}
- getdata={() => this.getdata()}>
+ getdata={(id) => this.getdata(id)}>
: ""
}
@@ -522,7 +523,7 @@ class CompetitionContentspdfpeopledata extends Component {
userdata?
this.hideUpdating(i)}
- getdata={() => this.getdata()}>
+ getdata={(id) => this.getdata(id)}>
:""
)
}
@@ -533,7 +534,7 @@ class CompetitionContentspdfpeopledata extends Component {
bank_account_editable === true ?
this.hideUpdating(i)}
- getdata={() => this.getdata()}
+ getdata={(id) => this.getdata(id)}
GetawardinformationAPI={() => this.GetawardinformationAPI()}
bank_account={this.state.bank_account}
>
diff --git a/public/react/src/modules/user/modal/RealNameCertificationModal.js b/public/react/src/modules/user/modal/RealNameCertificationModal.js
index 3826405d6..2154f1eca 100644
--- a/public/react/src/modules/user/modal/RealNameCertificationModal.js
+++ b/public/react/src/modules/user/modal/RealNameCertificationModal.js
@@ -288,7 +288,7 @@ class RealNameCertificationModal extends Component{
} catch (e) {
}
try {
- this.props.Getdata();
+ this.props.Getdata(this.props.userdata.id);
} catch (e) {
}
@@ -321,7 +321,7 @@ class RealNameCertificationModal extends Component{
}
try {
- this.props.Getdata();
+ this.props.Getdata(this.props.userdata.id);
} catch (e) {
}