From bda8393f2797eba03b0036653b94d037ccdb63ea Mon Sep 17 00:00:00 2001
From: ysl <904079904@qq.com>
Date: Fri, 21 Jun 2019 17:21:11 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/login/Trialapplication.js | 6 +++---
public/react/src/modules/tpm/NewHeader.js | 2 --
public/react/src/modules/tpm/TPMIndexHOC.js | 21 ++++++++++++-------
3 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js
index d98228856..d2b942ce7 100644
--- a/public/react/src/modules/login/Trialapplication.js
+++ b/public/react/src/modules/login/Trialapplication.js
@@ -79,10 +79,10 @@ class Trialapplication extends Component {
});
console.log("89");
try {
- if (this.state.props.user !== undefined) {
- console.log(this.state.props.user && this.state.props.user.user_phone_binded);
+ if (this.state.props.user_phone_binded !== undefined) {
+ console.log(this.state.props.user_phone_binded);
this.setState({
- user_phone_binded: this.state.props.user.user_phone_binded,
+ user_phone_binded: this.state.props.user_phone_binded,
})
}
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 3d3e83d36..955ae593f 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -171,7 +171,6 @@ class NewHeader extends Component {
isRender:false,
isRenders:false,
showTrial:false,
- user:undefined,
}
console.log("176")
console.log(props);
@@ -583,7 +582,6 @@ submittojoinclass=(value)=>{
/>
{/* :""*/}
{/*}*/}
-
- {order==="updated_at"?"更新时间":order==="work_score"?"最终成绩":order==="student_id"?"学生学号":""}排序
+ {this.props.isAdmin()?{taskslistdata&&taskslistdata.work_count}个检索结果({taskslistdata&&taskslistdata.work_count} 学生) :""} + {this.props.isAdmin()? +