From 72511c30cb09e11dda16b65dffaa903e3b5efc70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 25 Sep 2019 17:51:26 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../exercise/Studentshavecompletedthelist.js | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
index 6fdde6aeb..aef18ef5d 100644
--- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
+++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
@@ -1278,19 +1278,19 @@ class Studentshavecompletedthelist extends Component {
}catch (e) {
}
- try {
- if(this.props.Commonheadofthetestpaper.exercise_status !== undefined){
- this.setState({
- exercise_status:this.props.Commonheadofthetestpaper.exercise_status,
- })
- }else{
- this.setState({
- exercise_status:0,
- })
- }
- }catch (e) {
-
- }
+ // try {
+ // if(this.props.Commonheadofthetestpaper.exercise_status !== undefined){
+ // this.setState({
+ // exercise_status:this.props.Commonheadofthetestpaper.exercise_status,
+ // })
+ // }else{
+ // this.setState({
+ // exercise_status:0,
+ // })
+ // }
+ // }catch (e) {
+ //
+ // }
}
@@ -2499,7 +2499,7 @@ class Studentshavecompletedthelist extends Component {
}}>
{/*老师*/}
{
- exercise_status===0 || exercise_status===1 ?
+ this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status===0 || this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status===1 ?
@@ -2716,7 +2716,7 @@ class Studentshavecompletedthelist extends Component {
{
- exercise_status === 0 || exercise_status === 1 ?
+ this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status === 0 || this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status === 1 ?
@@ -2797,7 +2797,7 @@ class Studentshavecompletedthelist extends Component {
" min-width": " 1200px"
}}>
{
- exercise_status === 0 || exercise_status === 1 ?
+ this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status === 0 || this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status === 1 ?
From 896485b41aea6f000b6011da2645ef1658ebbb02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 25 Sep 2019 17:52:19 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../exercise/Studentshavecompletedthelist.js | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
index aef18ef5d..610ac5793 100644
--- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
+++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
@@ -1278,20 +1278,6 @@ class Studentshavecompletedthelist extends Component {
}catch (e) {
}
- // try {
- // if(this.props.Commonheadofthetestpaper.exercise_status !== undefined){
- // this.setState({
- // exercise_status:this.props.Commonheadofthetestpaper.exercise_status,
- // })
- // }else{
- // this.setState({
- // exercise_status:0,
- // })
- // }
- // }catch (e) {
- //
- // }
-
}
componentWillReceiveProps = (nextProps) => {