|
|
|
@ -33,6 +33,8 @@ import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
import ModulationModal from "../coursesPublic/ModulationModal";
|
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
|
import ShixunWorkModal from "./Shixunworkdetails/ShixunWorkModal";
|
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData'
|
|
|
|
|
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
const RadioGroup = Radio.Group;
|
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
@ -1451,13 +1453,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
],
|
|
|
|
|
yslpros:false,
|
|
|
|
|
datajs:[],
|
|
|
|
|
homework_status:[],
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentDidCatch(error, info){
|
|
|
|
|
console.log("-----------------------------905错误信息");
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log(info);
|
|
|
|
|
// console.log("-----------------------------905错误信息");
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// console.log(info);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// componentWillReceiveProps(nextProps) {
|
|
|
|
@ -1569,7 +1572,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
allow_late:result.data.allow_late,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
computeTimetype:true,
|
|
|
|
|
})
|
|
|
|
|
homework_status:result.data.homework_status,
|
|
|
|
|
});
|
|
|
|
|
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1);
|
|
|
|
|
|
|
|
|
|
if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") {
|
|
|
|
@ -1626,7 +1630,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
code_review: result.data.code_review,
|
|
|
|
|
challenges_count:result.data.challenges_count,
|
|
|
|
|
view_report:result.data.view_report,
|
|
|
|
|
})
|
|
|
|
|
homework_status:result.data.homework_status,
|
|
|
|
|
});
|
|
|
|
|
if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") {
|
|
|
|
|
this.seacthdata(result.data);
|
|
|
|
|
} else {
|
|
|
|
@ -2129,7 +2134,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
code_review: result.data.code_review,
|
|
|
|
|
challenges_count:result.data.challenges_count,
|
|
|
|
|
view_report:result.data.view_report,
|
|
|
|
|
})
|
|
|
|
|
homework_status:result.data.homework_status,
|
|
|
|
|
});
|
|
|
|
|
this.seacthdata(result.data);
|
|
|
|
|
this.props.Getdataback(result,result.data);
|
|
|
|
|
}
|
|
|
|
@ -2242,7 +2248,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
end_immediately: result.data.end_immediately,
|
|
|
|
|
code_review: result.data.code_review,
|
|
|
|
|
challenges_count:result.data.challenges_count,
|
|
|
|
|
})
|
|
|
|
|
homework_status:result.data.homework_status,
|
|
|
|
|
});
|
|
|
|
|
this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,page);
|
|
|
|
|
this.props.Getdataback(result,result.data);
|
|
|
|
|
// }
|
|
|
|
@ -3037,7 +3044,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {columns,course_groupysls,datajs,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu,columnsstu2, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
|
|
|
|
|
let {columns,course_groupysls,datajs,isAdmin,homework_status, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu,columnsstu2, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
|
|
|
|
|
|
|
|
|
|
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
|
|
|
|
// console.log(this.state.student_works);
|
|
|
|
@ -3068,8 +3075,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
this.props.isAdmin() === true ?
|
|
|
|
|
(
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
{visible === true ? <ModulationModal
|
|
|
|
|
visible={visible}
|
|
|
|
@ -3143,6 +3150,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
starttimes={this.state.starttimes}
|
|
|
|
|
typs={this.state.typs}
|
|
|
|
|
/>
|
|
|
|
|
{
|
|
|
|
|
homework_status.length===0?
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
:
|
|
|
|
|
homework_status.length>0 && homework_status[0]==="未发布"?
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
:
|
|
|
|
|
<div className={"educontent "}>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3387,11 +3401,10 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
(
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{
|
|
|
|
|
teacherdata === undefined || teacherdata.student_works === undefined || teacherdata.student_works === null || JSON.stringify(teacherdata.student_works) === "[]" ?
|
|
|
|
@ -3473,6 +3486,19 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
homework_status.length===0?
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
homework_status.length>0 && homework_status[0]==="未发布"?
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className={"educontent "}>
|
|
|
|
|
<div className="edu-back-white" style={{width: "1200"}}>
|
|
|
|
|
|
|
|
|
@ -3593,7 +3619,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
// 学生能查看别人的
|
|
|
|
@ -3619,6 +3645,18 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
Cancel={() => this.cancelModulationModels()}
|
|
|
|
|
/> : ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
homework_status.length===0?
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
homework_status.length>0 && homework_status[0]==="未发布"?
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className={"educontent mb20"}>
|
|
|
|
|
|
|
|
|
|
<div >
|
|
|
|
@ -3807,10 +3845,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|