|
|
|
@ -911,6 +911,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
student=()=>{
|
|
|
|
|
console.log("914");
|
|
|
|
|
debugger
|
|
|
|
|
this.props.triggerRef(this);
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid);
|
|
|
|
@ -930,7 +932,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// 获取作品列表
|
|
|
|
|
Getalistofworks = (homeworkid) => {
|
|
|
|
|
// console.log("获取作品列表");
|
|
|
|
|
|
|
|
|
|
console.log("935");
|
|
|
|
|
debugger
|
|
|
|
|
let urll = `/homework_commons/${homeworkid}/works_list.json`;
|
|
|
|
|
var data = {
|
|
|
|
|
search: "",
|
|
|
|
@ -945,9 +948,10 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
if(result === undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("951");
|
|
|
|
|
console.log(result);
|
|
|
|
|
debugger
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
if(this.props.isNotMember()===false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
teacherdata: result.data,
|
|
|
|
|
task_status: result.data.task_status,
|
|
|
|
@ -970,7 +974,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
@ -1373,7 +1376,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
if (result !== undefined) {
|
|
|
|
|
// console.log("学生公开的作品列表")
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
if(this.props.isNotMember()===false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
teacherdata: result.data,
|
|
|
|
|
task_status: result.data.task_status,
|
|
|
|
@ -1391,7 +1393,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
this.props.Getdataback(result,result.data);
|
|
|
|
|
this.seacthdata(result.data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
@ -1467,6 +1468,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// 获取作品列表
|
|
|
|
|
Getalistofworkst = (homeworkid) => {
|
|
|
|
|
// console.log("获取作品列表");7009
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
let urll = `/homework_commons/${homeworkid}/works_list.json`;
|
|
|
|
|
// console.log(homeworkid);
|
|
|
|
@ -1486,8 +1488,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
limit:20,
|
|
|
|
|
}
|
|
|
|
|
axios.post(urll, data).then((result) => {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===false){
|
|
|
|
|
debugger
|
|
|
|
|
if (result !== undefined) {
|
|
|
|
|
// console.log(url)
|
|
|
|
|
// console.log("作品列表6789077")
|
|
|
|
@ -1507,7 +1508,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
})
|
|
|
|
|
this.props.Getdataback(result,result.data);
|
|
|
|
|
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1);
|
|
|
|
|
} }
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
@ -1550,7 +1551,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log(url)
|
|
|
|
|
// console.log("作品列表______________________")
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
if(this.props.isNotMember()===false){
|
|
|
|
|
if (result !== undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
teacherdata: result.data,
|
|
|
|
@ -1567,9 +1567,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
})
|
|
|
|
|
this.props.Getdataback(result,result.data);
|
|
|
|
|
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,page);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
@ -1584,6 +1583,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
// 设置数据
|
|
|
|
|
seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => {
|
|
|
|
|
debugger
|
|
|
|
|
let {page, limit} = this.state;
|
|
|
|
|
let datalist = [];
|
|
|
|
|
let columns = this.state.columns;
|
|
|
|
@ -2161,7 +2161,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
|
this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Startsortingt(this.state.orders, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
@ -2330,13 +2330,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
<li className="clearfix ">
|
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
|
<span>
|
|
|
|
|
{teacherdata&&teacherdata.publish_immediately===false&&computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
|
{teacherdata&&teacherdata.publish_immediately===false&&computeTimetype===true?
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTime font-13"} onClick={this.setComputeTimet}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:
|
|
|
|
|
</div>:""):
|
|
|
|
|
teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
<div className={"computeTimes font-13"}>
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>
|
|
|
|
|
</div>:"")
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
@ -2487,7 +2488,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
|
|
|
|
|
<div className="edu-txt-center mt30 mb20">
|
|
|
|
|
<div className="edu-txt-center edu-back-white mt30 mb20">
|
|
|
|
|
<Pagination showQuickJumper current={page}
|
|
|
|
|
onChange={this.paginationonChanges} pageSize={limit}
|
|
|
|
|
total={teacherdata.work_count}></Pagination>
|
|
|
|
@ -2616,14 +2617,19 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
|
{teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":<span>
|
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTimet}>
|
|
|
|
|
{computeTimetype===true?
|
|
|
|
|
(this.props.isNotMember()===false?
|
|
|
|
|
<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:
|
|
|
|
|
teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
</div>
|
|
|
|
|
:"")
|
|
|
|
|
:
|
|
|
|
|
(teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
this.props.isNotMember()===false?
|
|
|
|
|
<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
:"")
|
|
|
|
|
}
|
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
@ -2779,13 +2785,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
<span className="fl mr10 color-grey-6 ">计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
|
|
|
|
|
{teacherdata&&teacherdata.task_operation&&teacherdata.task_operation[0]==="开启挑战"?"":<span>
|
|
|
|
|
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
|
{computeTimetype===true?
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:
|
|
|
|
|
</div>:""):
|
|
|
|
|
teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
<div className={"computeTimes font-13"}>
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>
|
|
|
|
|
</div>:"")
|
|
|
|
|
}
|
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
@ -2830,7 +2837,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
|
|
|
|
|
<div className="edu-txt-center mt30 mb20">
|
|
|
|
|
<div className="edu-txt-center edu-back-white mt30 mb20">
|
|
|
|
|
<Pagination showQuickJumper current={page}
|
|
|
|
|
onChange={this.paginationonChanges} pageSize={limit}
|
|
|
|
|
total={teacherdata.work_count}></Pagination>
|
|
|
|
|