|
|
|
@ -45,6 +45,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
teacherlist: undefined,
|
|
|
|
|
searchtext: "",
|
|
|
|
|
Teacherliststudentlist: undefined,
|
|
|
|
|
mylistansum:0,
|
|
|
|
|
review: null,
|
|
|
|
|
course_groupysls: undefined,
|
|
|
|
|
nocomment: false,
|
|
|
|
@ -1252,6 +1253,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
current_answer_user: response.data.current_answer_user,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users
|
|
|
|
|
})
|
|
|
|
|
if (response.data.current_answer_user === undefined || response.data.current_answer_user === null) {
|
|
|
|
|
// 学生未截止
|
|
|
|
@ -1622,6 +1624,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
current_answer_user: response.data.current_answer_user,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
})
|
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
|
|
|
|
|
@ -1756,6 +1759,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
@ -1788,6 +1792,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -1823,6 +1828,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
@ -1854,6 +1860,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
@ -1885,6 +1892,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
@ -1909,6 +1917,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
columnsys:arr,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -1923,6 +1932,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: this.state.columnsystwo,
|
|
|
|
|
})
|
|
|
|
@ -1948,6 +1958,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: arr,
|
|
|
|
|
})
|
|
|
|
@ -2401,7 +2412,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
const isAdmin = this.props.isAdmin();
|
|
|
|
|
|
|
|
|
|
let {data, datas, page, columns, course_groupyslsthree, columnstwo, styletable, 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} = this.state;
|
|
|
|
|
let {data, datas, page, columns, course_groupyslsthree, columnstwo, styletable, 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);
|
|
|
|
|
return (
|
|
|
|
@ -2789,11 +2800,11 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
Teacherliststudentlist && Teacherliststudentlist.exercise_types.total_users && Teacherliststudentlist.exercise_types.total_users > limit ?
|
|
|
|
|
mylistansum && mylistansum > limit ?
|
|
|
|
|
<div className="edu-txt-center mt30 mb20">
|
|
|
|
|
<Pagination showQuickJumper current={page}
|
|
|
|
|
onChange={this.paginationonChanges} pageSize={limit}
|
|
|
|
|
total={Teacherliststudentlist.exercise_types.total_users}></Pagination>
|
|
|
|
|
total={mylistansum}></Pagination>
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|