From c48b37699d138b542684885f111e3474d0b474d5 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, 11 Mar 2020 20:29:05 +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
---
.../exercise/Studentshavecompletedthelist.js | 48 ++++++++++++++++---
1 file changed, 42 insertions(+), 6 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
index 12e3f4235..755537798 100644
--- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
+++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
@@ -1177,9 +1177,26 @@ class Studentshavecompletedthelist extends Component {
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅
)
:record.submitstate === "已提交"?
- {record.finalscore}
+ (//是否助教
+ this.props.isAssistant()&&this.props.isAssistant()===true?
+ (//助教是否有权限
+ this.props.assistant_auth&&this.props.assistant_auth===true?
+ (//是否截止
+ this.props.Commonheadofthetestpaper && this.props.Commonheadofthetestpaper.exercise_status===3?
+ {record.finalscore}
+ :
+ --
+ )
+ :
+ --
+ )
+ :
+ {record.finalscore}
+ )
:
--
}
@@ -1411,9 +1428,28 @@ class Studentshavecompletedthelist extends Component {
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅
)
:record.submitstate === "已提交"?
- {record.finalscore}
+ (//是否助教
+ this.props.isAssistant()&&this.props.isAssistant()===true?
+ (//助教是否有权限
+ this.props.assistant_auth&&this.props.assistant_auth===true?
+ (//是否截止
+ this.props.Commonheadofthetestpaper && this.props.Commonheadofthetestpaper.exercise_status===3?
+ //是助教就是评阅
+ {record.finalscore}
+ :
+ --
+ )
+ :
+ --
+ )
+ :
+ //是老师就是评阅
+ {record.finalscore}
+ )
:
--
}