this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
- {} : () => this.onItemClick(item)}
- >{item.name}
-
+
+ {} : () => this.onItemClick(item)}
+ >{item.name}
+
{/* 只有非课堂成员且作业是私有的情况下才会为true */}
{
item.private_icon===true ?
- (
+ (
) : ""
}
@@ -182,7 +193,7 @@ class CommonWorkItem extends Component{
{item.uncommit_count===undefined?"":{item.uncommit_count} 未交}
{
item.status_time!="" &&
- {
- if(key===this.props.indexs){
- console.log(key)
- console.log(this.props.indexs)
- }
+
return(
{/*
*/}
diff --git a/public/react/src/modules/courses/exercise/ExerciseListItem.js b/public/react/src/modules/courses/exercise/ExerciseListItem.js
index 750b9eb19..e025456e2 100644
--- a/public/react/src/modules/courses/exercise/ExerciseListItem.js
+++ b/public/react/src/modules/courses/exercise/ExerciseListItem.js
@@ -51,6 +51,21 @@ class ExerciseListItem extends Component{
Loadtype:false
})
}
+
+ toDetailPage=(url)=>{
+
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
+ return
+ }
+
+ this.props.history.push(url);
+ }
render(){
let{item,checkBox,index}=this.props;
let {coursesId,Id}=this.props.match.params
@@ -96,20 +111,22 @@ class ExerciseListItem extends Component{
{/*{item.exercise_name}*/}
{
- this.props.isAdmin()? {item.exercise_name}:""
+ onClick={()=>this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:""
}
{
this.props.isStudent()?
- {item.exercise_name}:""
+ this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:""
}
{
this.props.isNotMember()? item.lock_status === 0 ?
- {item.exercise_name}
- : {item.exercise_name}:""
+
+ {item.exercise_name}
+
+ : this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:""
}
{
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
index 1a0952a95..fb43b412a 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
@@ -133,6 +133,21 @@ class GraduateTaskItem extends Component{
setupdate=()=>{
this.props.funlist
}
+
+ toDetailPage=(url)=>{
+
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
+ return
+ }
+
+ this.props.history.push(url);
+ }
render(){
let {
Modalstype,
@@ -215,20 +230,22 @@ class GraduateTaskItem extends Component{
{
- this.props.isAdmin?this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")}
title={discussMessage.name}
- className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
+ className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
{
- this.props.isStudent? this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")}
title={discussMessage.name}
- className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
+ className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
{
this.props.isNotMember===true?this.props.discussMessage.private_icon===true?
- {discussMessage.name}
- :
+ {discussMessage.name}
+
+ :
this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/"+taskid+"/list")}
title={discussMessage.name}
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
index bac04c699..cfb753501 100644
--- a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
+++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
@@ -15,6 +15,17 @@ class GraduateTopicItem extends Component{
this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/edit`);
}
toDetailPage=(topicId)=>{
+
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
+ return
+ }
+
let courseId=this.props.match.params.coursesId;
this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/detail`);
}
@@ -71,7 +82,9 @@ class GraduateTopicItem extends Component{
{
isNotMember?
- {discussMessage.name}:""
+
+ {discussMessage.name}
+ :""
}
{
diff --git a/public/react/src/modules/courses/poll/PollListItem.js b/public/react/src/modules/courses/poll/PollListItem.js
index 359ef872c..356b758c8 100644
--- a/public/react/src/modules/courses/poll/PollListItem.js
+++ b/public/react/src/modules/courses/poll/PollListItem.js
@@ -1,5 +1,5 @@
import React,{ Component } from "react";
-import Tooltip from 'material-ui/Tooltip';
+import {Tooltip} from 'antd';
import {Link} from 'react-router-dom';
import moment from 'moment';
import CoursesListType from '../coursesPublic/CoursesListType';
@@ -15,6 +15,20 @@ class PollListItem extends Component{
constructor(props){
super(props);
}
+ toDetailPage=(url)=>{
+
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
+ return
+ }
+
+ this.props.history.push(url);
+ }
render(){
let{item,checkBox,courseType,index}=this.props;
let {coursesId}=this.props.match.params;
@@ -37,12 +51,16 @@ class PollListItem extends Component{
}
- { canNotLink ? {item.polls_name} :
- {item.polls_name}
+ { canNotLink ?
+
+ {item.polls_name}
+
+ :
+ this.toDetailPage(`/courses/${coursesId}/polls/${item.id}/detail`)} className="fl font-16 font-bd mt2 color-grey-3 task-hide pointer" style={{"maxWidth":"600px"}} title={item.polls_name}>{item.polls_name}
}
{
item.lock_status === 0 ?
-
+
:""
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index b56993b08..b29ee6121 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -143,6 +143,22 @@ class ShixunhomeWorkItem extends Component{
ModalsRenametype:false,
})
}
+
+ hrefjumpskip=(url)=>{
+
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
+ return
+ }
+
+ this.props.history.push(url);
+
+ }
render(){
let {
Modalstype,
@@ -294,23 +310,25 @@ class ShixunhomeWorkItem extends Component{
{/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/}
{
- this.props.isAdmin?this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")}
title={discussMessage.name}
- className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
+ className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
{
- this.props.isStudent? this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)}
title={discussMessage.name}
- className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
+ className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
{
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?
- {discussMessage.name}
- :
+ {discussMessage.name}
+
+ : this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)}
title={discussMessage.name}
- className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
+ className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:""
}
diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js
index f4f8a3f1c..f46d549ed 100644
--- a/public/react/src/modules/login/LoginDialog.js
+++ b/public/react/src/modules/login/LoginDialog.js
@@ -400,7 +400,11 @@ class LoginDialog extends Component {
handleDialogClose = () => {
if(this.props.match===undefined){
- window.location.href="/";
+ // window.location.href="/";
+ this.setState({
+ isRender: false
+ })
+ this.props.Modifyloginvalue();
}else{
this.setState({
isRender: false
diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js
index bd42af623..be2a9908d 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCards.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCards.js
@@ -3,7 +3,6 @@ import {getImageUrl} from 'educoder';
import {Tooltip,Modal,Icon,Spin,message} from 'antd';
import DetailCardsEditAndAdd from './DetailCardsEditAndAdd';
import DetailCardsEditAndEdit from './DetailCardsEditAndEdit';
-import AccountProfile from"../../user/AccountProfile";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import axios from 'axios';
import { DragDropContext , Draggable, Droppable} from 'react-beautiful-dnd';
@@ -201,10 +200,8 @@ class DetailCards extends Component{
return
}
- if(this.props.current_user&&this.props.current_user.profile_completed===false){
- this.setState({
- AccountProfiletype:true
- })
+ if(this.props.checkIfProfileCompleted()===false){
+ this.props.showProfileCompleteDialog()
return
}
@@ -308,16 +305,11 @@ class DetailCards extends Component{
startshixunCombattype:false
})
}
- hideAccountProfile=()=>{
- this.setState({
- AccountProfiletype:false
- })
- }
+
render(){
let { pathCardsList,
dropid,
- AccountProfiletype,
idsum,
pathCardsedittype,
pathlistedit,
@@ -339,11 +331,7 @@ class DetailCards extends Component{
// console.log("zzz"+this.props.MenuItemsindextype)
return(
- {AccountProfiletype===true?
this.hideAccountProfile()}
- {...this.props}
- {...this.state}
- />:""}
+
{
- this.setState({
- AccountProfiletype:false
- })
- }
+
render(){
let{detailInfoList}=this.props;
- let{Modalstype,Modalstopval,cardsModalcancel,putappointmenttype,Modalsbottomval,cardsModalsavetype,loadtype,getappointmenttype,AccountProfiletype}=this.state;
+ let{Modalstype,Modalstopval,cardsModalcancel,putappointmenttype,Modalsbottomval,cardsModalsavetype,loadtype,getappointmenttype}=this.state;
const radioStyle = {
display: 'block',
height: '30px',
@@ -373,11 +366,7 @@ class DetailTop extends Component{
return(
40?"subhead mb100":"subhead mb70":this.state.MenuItemskey===this.props.courses.length?"subhead mb120":detailInfoList.name.length>40?"subhead mb100":"subhead mb80"}>
- {AccountProfiletype===true?
this.hideAccountProfile()}
- {...this.props}
- {...this.state}
- />:""}
+
Date: Wed, 25 Sep 2019 11:48:07 +0800
Subject: [PATCH 13/28] =?UTF-8?q?=E8=83=8C=E6=99=AF=E7=9F=A5=E8=AF=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js b/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js
index a847c4125..63872b133 100644
--- a/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js
+++ b/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js
@@ -52,7 +52,7 @@ export default class TPMUpdatepropaede extends Component {
updatepropaedeuticsvalue=()=>{
let id = this.props.match.params.shixunId;
let url="/shixuns/"+id+"/update_propaedeutics.json";
- const update_propaedeuticsvalue = this.editanswersRef.current.getValue().trim();
+ const update_propaedeuticsvalue = this.neweditanswerRef.current.getValue().trim();
axios.post(url,{
content:update_propaedeuticsvalue
}
From 88970c05e52552cf5f15190d359e5cb3080c8116 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Wed, 25 Sep 2019 11:48:59 +0800
Subject: [PATCH 14/28] =?UTF-8?q?=E6=9C=AA=E5=8F=91=E5=B8=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/courses/busyWork/CommonWorkList.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js
index bd765eaa9..3b3491675 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkList.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js
@@ -641,7 +641,7 @@ class CommonWorkList extends Component{
timeMsg = '申诉剩余时间'
}
- const hasData = student_works && !!student_works.length && page == 1
+ const hasData = this.state.homework_status && this.state.homework_status.indexOf("未发布") == -1 // student_works && !!student_works.length && page == 1 &&
// console.log(StudentData)
// console.log(student_works)
From 20949e6fca97907fee99e66346222eb7bff2ea9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 14:47:39 +0800
Subject: [PATCH 15/28] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/courses/shixunHomework/shixunHomework.js | 8 +++++---
public/react/src/modules/login/LoginDialog.js | 12 +++++++-----
.../paths/PathDetail/DetailCardsEditAndAdd.js | 2 +-
.../paths/PathDetail/DetailCardsEditAndEdit.js | 2 +-
.../tpm/shixunchild/Collaborators/Collaborators.js | 8 ++++----
5 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index eb59ce6f1..5298baffc 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -84,7 +84,8 @@ class ShixunHomework extends Component{
}
componentDidMount() {
this.setState({
- isSpin:true
+ isSpin:true,
+
})
if(this.props.match.params.main_id){
this.setState({
@@ -108,7 +109,8 @@ class ShixunHomework extends Component{
}
seactall=(id)=>{
this.setState({
- isSpin:true
+ isSpin:true,
+ checkBoxValues:[]
})
let coursesId=this.props.match.params.coursesId;
let url="/courses/"+coursesId+"/homework_commons.json?type=4";
@@ -1080,7 +1082,7 @@ class ShixunHomework extends Component{
:
this.editDir(datas&&datas.category_name)} className={"mr30 font-16"}>目录重命名:""}
{this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?选用实践课程:"":""}
- {this.props.isAdmin()===true?this.showNewShixunModelType()}>选用实训:""}
+ {this.props.isAdmin()===true?this.showNewShixunModelType()}>选用实训项目:""}
diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js
index f46d549ed..dd34d8605 100644
--- a/public/react/src/modules/login/LoginDialog.js
+++ b/public/react/src/modules/login/LoginDialog.js
@@ -399,12 +399,14 @@ class LoginDialog extends Component {
}
handleDialogClose = () => {
+ console.log(this.props.match)
+debugger
if(this.props.match===undefined){
- // window.location.href="/";
- this.setState({
- isRender: false
- })
- this.props.Modifyloginvalue();
+ window.location.href="/";
+ // this.setState({
+ // isRender: false
+ // })
+ // this.props.Modifyloginvalue();
}else{
this.setState({
isRender: false
diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
index 433146b8c..ed4cc85eb 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
@@ -374,7 +374,7 @@ class DetailCardsEditAndAdd extends Component{
- 选择实训
+ 选用实训项目
选择下面实训后,可以通过拖拽进行排序调整
diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
index 3d1559797..a37dffecb 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js
@@ -378,7 +378,7 @@ class DetailCardsEditAndEdit extends Component{
- 选择实训
+ 选用实训项目
选择下面实训后,可以通过拖拽进行排序调整
diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
index 0212b4ba4..7921941df 100644
--- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
+++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
@@ -34,7 +34,7 @@ class Collaborators extends Component {
Collaboratorsvisibleadmin: false,
value: 1,
page: 1,
- Searchadmin: [],
+ Searchadmin: undefined,
allChangechecked: false,
Collaboratorslist: [],
Collaboratorslisttype: false,
@@ -434,10 +434,10 @@ class Collaborators extends Component {
height: '30px',
lineHeight: '30px',
};
- // console.log(collaboratorList)
const antIcon = ;
+ console.log(Searchadmin)
return (
- {Searchadmin.length === 0 ? -
+ {Searchadmin === undefined ?
-
请试试搜索一下
-
: Searchadmin.map((item, key) => {
+ :Searchadmin.length === 0 ? "": Searchadmin.map((item, key) => {
return (
-
Date: Wed, 25 Sep 2019 15:24:34 +0800
Subject: [PATCH 16/28] Merge branches 'dev_aliyun' and 'onigin/ysl_a' of
https://bdgit.educoder.net/Hjqreturn/educoder into onigin/ysl_a
# Conflicts:
# public/react/src/modules/courses/Resource/Fileslistitem.js
# public/react/src/modules/courses/busyWork/CommonWorkItem.js
# public/react/src/modules/courses/exercise/ExerciseListItem.js
# public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
# public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
# public/react/src/modules/courses/poll/PollListItem.js
# public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
# public/react/src/modules/login/LoginDialog.js
---
.../courses/graduation/topics/GraduateTopicItem.js | 2 +-
public/react/src/modules/login/LoginDialog.js | 6 ++----
public/react/src/modules/tpm/TPMIndexHOC.js | 8 +++++---
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
index cfb753501..45b54899f 100644
--- a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
+++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
@@ -17,7 +17,7 @@ class GraduateTopicItem extends Component{
toDetailPage=(topicId)=>{
if(this.props.checkIfLogin()===false){
- this.props.showLoginDialog()
+ this.props.showLoginDialog("iscancel")
return
}
diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js
index dd34d8605..13ba02238 100644
--- a/public/react/src/modules/login/LoginDialog.js
+++ b/public/react/src/modules/login/LoginDialog.js
@@ -398,11 +398,9 @@ class LoginDialog extends Component {
});
}
handleDialogClose = () => {
-
- console.log(this.props.match)
-debugger
- if(this.props.match===undefined){
+ if(this.props.isloginCancel===undefined){
window.location.href="/";
+ this.props.Modifyloginvalue();
// this.setState({
// isRender: false
// })
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index 0f753b96c..4d2e4fbba 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -83,6 +83,7 @@ export function TPMIndexHOC(WrappedComponent) {
globalLoading: false,
dataquerys:{},
+ isloginCancel:undefined
}
}
@@ -429,15 +430,16 @@ export function TPMIndexHOC(WrappedComponent) {
};
hideLoginDialog = () => {
this.setState({
- isRender: false
+ isRender: false,
+ isloginCancel:undefined
})
}
showLoginDialog = () => {
this.setState({
- isRender: true
+ isRender: true,
+ isloginCancel:"iscancel"
})
}
-
checkIfLogin = () => {
return this.state.current_user && this.state.current_user.login != ''
}
From 4142bd3b36c31231eb7d196ee2af47b5d78a0779 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 15:28:30 +0800
Subject: [PATCH 17/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Listofworksstudentone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 93ed7ff7d..fa2490b8f 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -3320,7 +3320,7 @@ class Listofworksstudentone extends Component {
{teacherdata === undefined ? "" : teacherdata.all_member_count}个检索结果({teacherdata === undefined ? "" : teacherdata.all_member_count}学生)
+ className="color-orange-tip">{teacherdata === undefined ? "" : teacherdata.work_count&&teacherdata.work_count}个检索结果({teacherdata === undefined ? "" : teacherdata.all_member_count&&teacherdata.all_member_count}学生)
+ :""
+ }
+
发布规则{r+1}
@@ -396,7 +412,7 @@ class PollDetailTabForthRules extends Component{
-
+
-
+
Date: Wed, 25 Sep 2019 16:06:40 +0800
Subject: [PATCH 21/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../tasks/GraduationTaskssetting.js | 2 +-
.../Collaborators/Collaborators.js | 154 +++++++++---------
2 files changed, 82 insertions(+), 74 deletions(-)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
index 830525af2..5ca6ee537 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
@@ -1169,7 +1169,7 @@ class GraduationTaskssettingapp extends Component{
评分设置
最终成绩组成 (取各教师最终评分的平均分)
-
+
启用交叉评阅 (给老师分配其他指导老师的学生作品)
diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
index 7921941df..d67599bf1 100644
--- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
+++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
@@ -16,8 +16,10 @@ import { getImageUrl, toPath } from 'educoder'
import axios from 'axios';
+import NoneData from "../../../courses/coursesPublic/NoneData";
+
import './Collaborators.css';
-import SchoolSelect from "../../../courses/members/modal/AddStudentModal";
+
const $ = window.$;
@@ -88,6 +90,7 @@ class Collaborators extends Component {
});
}
CollaboratorsshowModal = (type) => {
+
if (type === "cooperation") {
this.setState({
Collaboratorsvisibleadmin: false,
@@ -108,9 +111,10 @@ class Collaborators extends Component {
}
showCollaboratorsvisible = (type) => {
+
this.setState({
Collaboratorslist: [],
- Searchadmin:[],
+ Searchadmin:undefined,
onSearchcalue:""
})
let admintype = this.props.identity;
@@ -160,7 +164,7 @@ class Collaborators extends Component {
let {collaboratorList,user_name,school_name} = this.state;
this.setState({
- Searchadmin: [],
+ // Searchadmin: undefined,
spinnings:true,
})
// if (value === "") {
@@ -199,6 +203,7 @@ class Collaborators extends Component {
}
selectChangenickname = (e, key) => {
+
let {Searchadmin} = this.state;
let newlist = Searchadmin;
for (var i = 0; i < newlist.length; i++) {
@@ -235,6 +240,7 @@ class Collaborators extends Component {
}
allChange = (e) => {
+
let {Searchadmin} = this.state;
let newlist = Searchadmin;
for (var i = 0; i < newlist.length; i++) {
@@ -246,6 +252,7 @@ class Collaborators extends Component {
})
}
submit_add_collaborators_form = () => {
+
let id = this.props.match.params.shixunId;
let {Searchadmin,collaboratorList} = this.state;
let newlist = Searchadmin;
@@ -300,6 +307,7 @@ class Collaborators extends Component {
}
submit_addadminredio = () => {
+
let {addadminrediovalue} = this.state;
let id = this.props.match.params.shixunId;
@@ -371,6 +379,7 @@ class Collaborators extends Component {
contentViewScrolledit=(e)=>{
+
//滑动到底判断
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
@@ -395,7 +404,6 @@ class Collaborators extends Component {
newSearchadmin.push(newlist[i])
}
- console.log(newSearchadmin)
this.setState({
Searchadmin: newSearchadmin,
collaboratorList: collaboratorList,
@@ -495,68 +503,68 @@ class Collaborators extends Component {
-
- {/* this.onSearchadmin(value)}*/}
- {/*onInput={this.onSearchadmins}*/}
- {/*style={{width: '100%'}}*/}
- {/*/>*/}
- 姓名或手机号:
-
- {this.setState({user_name: e.target.value})}}
- style={{ width: '215px'}}
- >
- 单位:
- {this.setState({school_name: e.target.value})}}
- style={{ width: '215px'}}
- >
+ {Collaboratorsvisibleadmin===true?
+ {/* this.onSearchadmin(value)}*/}
+ {/*onInput={this.onSearchadmins}*/}
+ {/*style={{width: '100%'}}*/}
+ {/*/>*/}
+ 姓名或手机号:
+
+ {this.setState({user_name: e.target.value})}}
+ style={{ width: '215px'}}
+ >
+ 单位:
+ {this.setState({school_name: e.target.value})}}
+ style={{ width: '215px'}}
+ >
- this.onSearchadmin()}
- style={{ height: '30px', lineHeight: '30px', width: '70px'}}
- >搜索
-
- 姓名
- 职业
- 单位
-
-
-
-
-
- {Searchadmin === undefined ? -
- 请试试搜索一下
-
:Searchadmin.length === 0 ? "": Searchadmin.map((item, key) => {
- return (
- -
- this.selectChangenickname(e, key)}
- id={item.user_id}>
- {item.nickname}
- {item.identify}
- {item.school_name}
-
- )
- })
-
- }
-
-
-
-
-
+ {useristrue===true?请先选择用户:""}
+
+ :""}
{
From 275f245f4d2bd270cc9b4951ad483ea40cc9a743 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 16:20:51 +0800
Subject: [PATCH 22/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Trainingjobsetting.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index cb75a765c..6bb3593ad 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -67,7 +67,7 @@ class Trainingjobsetting extends Component {
//
// });
this.state = {
- flagPageEdit: undefined,
+ flagPageEdit: true,
flagPageEdits: false,
flagPageEditstwo:false,
flagPageEditsthrees:false,
From e7652a1acbfeab2e2255ff7a6c34cd9b3a304657 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 16:23:53 +0800
Subject: [PATCH 23/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/graduation/tasks/GraduationTaskssettinglist.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
index 184895428..0720d7240 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
@@ -1215,7 +1215,7 @@ class GraduationTaskssettinglist extends Component{
{this.props.isAdmin()===true?
{taskslistdata&&taskslistdata.work_count}
- 个检索结果({taskslistdata&&taskslistdata.work_count} 学生):""}
+ 个检索结果({taskslistdata&&taskslistdata.all_work_count} 学生):""}
{this.props.isAdmin()===true?
From afbf3bd4397b4d0fc6f539eb412f2a3c96a56f81 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 17:01:40 +0800
Subject: [PATCH 25/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../react/src/modules/tpm/shixunchild/Challenges/Challenges.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
index bb59a0b3d..0bbe3581f 100644
--- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
+++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
@@ -228,7 +228,7 @@ class Challenges extends Component {
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
})
From 59315e4478380c9eb020561a1acb66b50b592bea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 17:01:51 +0800
Subject: [PATCH 26/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/courses/Resource/Fileslistitem.js | 2 +-
public/react/src/modules/courses/boards/BoardsListItem.js | 2 +-
public/react/src/modules/courses/busyWork/CommonWorkItem.js | 2 +-
public/react/src/modules/courses/exercise/ExerciseListItem.js | 2 +-
.../src/modules/courses/graduation/tasks/GraduateTaskItem.js | 2 +-
.../modules/courses/graduation/topics/GraduateTopicItem.js | 2 +-
public/react/src/modules/courses/poll/PollListItem.js | 2 +-
.../src/modules/courses/shixunHomework/ShixunhomeWorkItem.js | 2 +-
public/react/src/modules/paths/PathDetail/DetailCards.js | 2 +-
public/react/src/modules/paths/PathDetail/DetailTop.js | 4 ++--
public/react/src/modules/tpm/TPMBanner.js | 4 ++--
11 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js
index f6df24011..1e37ae370 100644
--- a/public/react/src/modules/courses/Resource/Fileslistitem.js
+++ b/public/react/src/modules/courses/Resource/Fileslistitem.js
@@ -33,7 +33,7 @@ class Fileslistitem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/boards/BoardsListItem.js b/public/react/src/modules/courses/boards/BoardsListItem.js
index 14966f43a..3b245f557 100644
--- a/public/react/src/modules/courses/boards/BoardsListItem.js
+++ b/public/react/src/modules/courses/boards/BoardsListItem.js
@@ -15,7 +15,7 @@ class BoardsListItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
index 183682619..3eb30518b 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
@@ -22,7 +22,7 @@ class CommonWorkItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/exercise/ExerciseListItem.js b/public/react/src/modules/courses/exercise/ExerciseListItem.js
index e025456e2..7fea267b6 100644
--- a/public/react/src/modules/courses/exercise/ExerciseListItem.js
+++ b/public/react/src/modules/courses/exercise/ExerciseListItem.js
@@ -59,7 +59,7 @@ class ExerciseListItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
index fb43b412a..36c7c1978 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
@@ -141,7 +141,7 @@ class GraduateTaskItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
index 45b54899f..c549d277a 100644
--- a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
+++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
@@ -21,7 +21,7 @@ class GraduateTopicItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/poll/PollListItem.js b/public/react/src/modules/courses/poll/PollListItem.js
index 356b758c8..59c5e3fa0 100644
--- a/public/react/src/modules/courses/poll/PollListItem.js
+++ b/public/react/src/modules/courses/poll/PollListItem.js
@@ -22,7 +22,7 @@ class PollListItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index b29ee6121..e7d29b1a8 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -151,7 +151,7 @@ class ShixunhomeWorkItem extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js
index be2a9908d..21c3ab6d8 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCards.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCards.js
@@ -200,7 +200,7 @@ class DetailCards extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js
index 049ed462d..3613e510d 100644
--- a/public/react/src/modules/paths/PathDetail/DetailTop.js
+++ b/public/react/src/modules/paths/PathDetail/DetailTop.js
@@ -249,7 +249,7 @@ class DetailTop extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
@@ -268,7 +268,7 @@ class DetailTop extends Component{
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
}
diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js
index d2e382de0..881e24361 100644
--- a/public/react/src/modules/tpm/TPMBanner.js
+++ b/public/react/src/modules/tpm/TPMBanner.js
@@ -167,7 +167,7 @@ class TPMBanner extends Component {
this.props.showLoginDialog()
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
})
@@ -390,7 +390,7 @@ class TPMBanner extends Component {
return
}
- if(this.props.checkIfProfileCompleted()===false){
+ if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
})
From 1cec2db4541f9fd3f6d5375a7b5a70413c20045d 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:12:08 +0800
Subject: [PATCH 27/28] =?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 | 45 +++++++++----------
1 file changed, 20 insertions(+), 25 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js
index 6fdde6aeb..57f574ac4 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) => {
@@ -1330,7 +1316,7 @@ class Studentshavecompletedthelist extends Component {
})
if (response.data.current_answer_user === undefined || response.data.current_answer_user === null) {
// 学生未截止
-
+ // console.log("试卷学生未截止");
this.Generatenewdatas(response.data.exercise_users);
if (response.data.exercise_types.subjective === 0) {
if (this.state.noclassroom === undefined || this.state.noclassroom === "" || this.state.noclassroom === null) {
@@ -1377,6 +1363,7 @@ class Studentshavecompletedthelist extends Component {
}
} else {
//学生已截止
+ // console.log("试卷学生已截止");
if (response.data.exercise_types.subjective === 0) {
if (this.state.loadingstate === false) {
var arr =[];
@@ -1458,7 +1445,7 @@ class Studentshavecompletedthelist extends Component {
else if (response.data.exercise_types.user_permission === 0) {
// console.log(response.data.exercise_users)
// console.log(response)
-
+ // console.log("试卷老师加载中");
if (thiss.state.loadingstate === false) {
thiss.setState({
loadingstate: true,
@@ -1469,7 +1456,9 @@ class Studentshavecompletedthelist extends Component {
thiss.Generatenewdatasy(response.data.exercise_users, response);
}
}).catch((error) => {
- console.log(error)
+ console.log(error);
+ console.log("其实数据加载失败了");
+ console.log("1111");
});
@@ -2490,16 +2479,22 @@ class Studentshavecompletedthelist extends Component {
let {data, datas, page, columns, course_groupyslsthree, columnstwo, styletable,exercise_status, course_groupyslstwodatas, limit, course_groupysls, course_groupyslstwodata, course_groupyslstwo, teacherlists, Teacherliststudentlist, order, columnss, course_groupsdatas, course_groups, Evaluationarray, unlimited, unlimiteds, unlimitedtwo, teacherlist, searchtext, loadingstate, review, nocomment, commented, unsubmitted, submitted, columnsys, exercise_users,mylistansum} = this.state;
// console.log("Studentshavecompletedthelist");
// console.log(this.props.current_status);
+ // console.log("获取到的数据");
+ // console.log(datas);
+ // console.log(data);
+ // console.log("this.props.Commonheadofthetestpaper.exercise_status");
+ // console.log(this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status);
+ // console.log(exercise_status);
return (
isAdmin === true ?
(
{/*老师*/}
{
- exercise_status===0 || exercise_status===1 ?
+ this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status===0 || this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status===1 ?
@@ -2598,9 +2593,9 @@ class Studentshavecompletedthelist extends Component {
{course_groups === undefined ? "" : course_groups === null ? "" : course_groups.length < 2 ? "" : JSON.stringify(course_groups) === "[]" ? "" :
-
- 分班情况: |
-
@@ -2714,9 +2709,9 @@ class Studentshavecompletedthelist extends Component {
Teacherliststudentlist === undefined || Teacherliststudentlist.current_answer_user === undefined || Teacherliststudentlist.current_answer_user === null ?
+ style={{"margin": "0 auto", "padding-bottom": "100px", minWidth: " 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 ?
@@ -2794,10 +2789,10 @@ 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 ?
From 794d35968da5e0632d989f3839fd438b9025034d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 17:32:19 +0800
Subject: [PATCH 28/28] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/AppConfig.js | 4 ++--
.../src/modules/courses/Resource/Fileslistitem.js | 7 ++++++-
.../src/modules/courses/boards/BoardsListItem.js | 7 ++++++-
.../modules/courses/busyWork/CommonWorkItem.js | 7 ++++++-
.../modules/courses/exercise/ExerciseListItem.js | 7 ++++++-
.../courses/graduation/tasks/GraduateTaskItem.js | 7 ++++++-
.../graduation/topics/GraduateTopicItem.js | 7 ++++++-
.../src/modules/courses/poll/PollListItem.js | 7 ++++++-
.../courses/shixunHomework/ShixunhomeWorkItem.js | 7 ++++++-
.../src/modules/paths/PathDetail/DetailCards.js | 7 ++++++-
.../src/modules/paths/PathDetail/DetailTop.js | 14 ++++++++++++--
public/react/src/modules/tpm/TPMBanner.js | 15 +++++++++++++++
.../tpm/shixunchild/Challenges/Challenges.js | 6 ++++++
13 files changed, 89 insertions(+), 13 deletions(-)
diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js
index 025db7f5c..4de5d9d88 100644
--- a/public/react/src/AppConfig.js
+++ b/public/react/src/AppConfig.js
@@ -83,9 +83,9 @@ export function initAxiosInterceptors(props) {
}
config.url = `${proxy}${url}`;
if (config.url.indexOf('?') == -1) {
- config.url = `${config.url}?debug=${debugType}`
+ config.url = `${config.url}?debug=${'student'}`
} else {
- config.url = `${config.url}&debug=${debugType}`
+ config.url = `${config.url}&debug=${'student'}`
}
} else {
// 加api前缀
diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js
index 1e37ae370..109403a3a 100644
--- a/public/react/src/modules/courses/Resource/Fileslistitem.js
+++ b/public/react/src/modules/courses/Resource/Fileslistitem.js
@@ -32,7 +32,12 @@ class Fileslistitem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/boards/BoardsListItem.js b/public/react/src/modules/courses/boards/BoardsListItem.js
index 3b245f557..a7d6a37e3 100644
--- a/public/react/src/modules/courses/boards/BoardsListItem.js
+++ b/public/react/src/modules/courses/boards/BoardsListItem.js
@@ -14,7 +14,12 @@ class BoardsListItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
index 3eb30518b..1a25dde62 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
@@ -21,7 +21,12 @@ class CommonWorkItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/exercise/ExerciseListItem.js b/public/react/src/modules/courses/exercise/ExerciseListItem.js
index 7fea267b6..e8277a438 100644
--- a/public/react/src/modules/courses/exercise/ExerciseListItem.js
+++ b/public/react/src/modules/courses/exercise/ExerciseListItem.js
@@ -58,7 +58,12 @@ class ExerciseListItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
index 36c7c1978..40dc3792a 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
@@ -140,7 +140,12 @@ class GraduateTaskItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
index c549d277a..fc9b00c23 100644
--- a/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
+++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
@@ -20,7 +20,12 @@ class GraduateTopicItem extends Component{
this.props.showLoginDialog("iscancel")
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/poll/PollListItem.js b/public/react/src/modules/courses/poll/PollListItem.js
index 59c5e3fa0..ae79b8afb 100644
--- a/public/react/src/modules/courses/poll/PollListItem.js
+++ b/public/react/src/modules/courses/poll/PollListItem.js
@@ -21,7 +21,12 @@ class PollListItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index e7d29b1a8..be49ad00a 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -150,7 +150,12 @@ class ShixunhomeWorkItem extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js
index 21c3ab6d8..9910b7f7b 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCards.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCards.js
@@ -199,7 +199,12 @@ class DetailCards extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js
index 3613e510d..bc5e7e0d6 100644
--- a/public/react/src/modules/paths/PathDetail/DetailTop.js
+++ b/public/react/src/modules/paths/PathDetail/DetailTop.js
@@ -248,7 +248,12 @@ class DetailTop extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
@@ -267,7 +272,12 @@ class DetailTop extends Component{
this.props.showLoginDialog()
return
}
-
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.props.showProfileCompleteDialog()
return
diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js
index 881e24361..515f71f7f 100644
--- a/public/react/src/modules/tpm/TPMBanner.js
+++ b/public/react/src/modules/tpm/TPMBanner.js
@@ -167,6 +167,14 @@ class TPMBanner extends Component {
this.props.showLoginDialog()
return
}
+
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
+
if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
@@ -390,6 +398,13 @@ class TPMBanner extends Component {
return
}
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
+
if(this.props.checkIfProfessionalCertification()===false){
this.setState({
AccountProfiletype:true
diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
index 0bbe3581f..c48a7b427 100644
--- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
+++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
@@ -227,6 +227,12 @@ class Challenges extends Component {
return
}
+ if(this.props.checkIfProfileCompleted()===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
if(this.props.checkIfProfessionalCertification()===false){
this.setState({
|