|
|
|
@ -3,6 +3,7 @@ import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
import {WordsBtn,ActionBtn} from 'educoder';
|
|
|
|
|
import ShixunWorkModal from './Shixunworkdetails/ShixunWorkModal';
|
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
|
import NoneData from '../coursesPublic/NoneData'
|
|
|
|
|
import {
|
|
|
|
|
Form,
|
|
|
|
|
Select,
|
|
|
|
@ -93,8 +94,10 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
let url = "/homework_commons/" + homeworkid + "/code_review_results.json";
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
debugger
|
|
|
|
|
if (response.data.status === undefined || response.data.status === 0) {
|
|
|
|
|
if(response.data!=undefined){
|
|
|
|
|
if(response.data.status!=-2){
|
|
|
|
|
let datas=[];
|
|
|
|
|
let list=response.data.users_reviews;
|
|
|
|
|
for(var i=0; i<list.length; i++){
|
|
|
|
@ -111,6 +114,8 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
datalist:datas
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (response.data.status === -2) {
|
|
|
|
@ -154,6 +159,7 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
}}).then((response) => {
|
|
|
|
|
if (response.data.status === undefined || response.data.status === 0) {
|
|
|
|
|
if(response.data!=undefined){
|
|
|
|
|
if(response.data.status!=-2) {
|
|
|
|
|
let datas = [];
|
|
|
|
|
let list = response.data.users_reviews;
|
|
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
|
@ -170,6 +176,8 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
datalist: datas
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (response.data.status === -2) {
|
|
|
|
@ -505,6 +513,18 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
|
|
|
|
|
columns.some((item,key)=> {
|
|
|
|
|
if (item.title === "学号") {
|
|
|
|
|
columns.splice(key, 1)
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix ">
|
|
|
|
|
{this.state.showmodel===true?<ShixunWorkModal
|
|
|
|
@ -535,7 +555,6 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
starttimes={this.state.starttimes}
|
|
|
|
|
typs={this.state.typs}
|
|
|
|
|
/>
|
|
|
|
|
{data&&data?
|
|
|
|
|
<div className={"educontent mb20"}>
|
|
|
|
|
<div className="educontent mb25">
|
|
|
|
|
<p className="clearfix mb25 mt5">
|
|
|
|
@ -554,10 +573,10 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
<div className="educontent mb30">
|
|
|
|
|
<p className=" fl color-black summaryname">
|
|
|
|
|
{data.homework_name}
|
|
|
|
|
{data&&data.homework_name}
|
|
|
|
|
</p>
|
|
|
|
|
<CoursesListType
|
|
|
|
|
typelist={data.homework_status}
|
|
|
|
|
typelist={data&&data.homework_status}
|
|
|
|
|
/>
|
|
|
|
|
<a className="color-grey-9 fr font-16 summaryname ml20 mr20"
|
|
|
|
|
href={`/courses/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${jobsettingsdata === undefined ? "" :jobsettingsdata.data.category.category_id}`}>返回</a>
|
|
|
|
@ -593,10 +612,10 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
href={`/api/homework_commons/${this.props.match.params.coursesId}/works_list.xlsx`}
|
|
|
|
|
>导出</a> : ""}
|
|
|
|
|
{this.props.isAdmin()?
|
|
|
|
|
data.end_immediately===true?
|
|
|
|
|
data&&data.end_immediately===true?
|
|
|
|
|
<a className="fr color-blue font-16" onClick={this.homeworkends}>立即截止</a> : "" : ""}
|
|
|
|
|
{this.props.isAdmin()?
|
|
|
|
|
data.publish_immediately===true?
|
|
|
|
|
data&&data.publish_immediately===true?
|
|
|
|
|
<a className="fr color-blue font-16" onClick={this.homeworkstart}>立即发布</a> : "" : ""}
|
|
|
|
|
|
|
|
|
|
{/*{this.props.isAdmin()?*/}
|
|
|
|
@ -623,10 +642,11 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
<li className="clearfix startbox" style={{display:duplicatechecking===true?"":"none"}}>
|
|
|
|
|
<li className="clearfix startbox mb20" style={{display:duplicatechecking===true?"":"none"}}>
|
|
|
|
|
<span className={"startfont"}>
|
|
|
|
|
正在执行查重,请稍后刷新页面查看结果 温馨提示:执行时间因查重作品数以及作品的代码量而异
|
|
|
|
|
</span>
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</li>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
@ -638,6 +658,8 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
{data&&data?
|
|
|
|
|
<div>
|
|
|
|
|
<ul className="clearfix" style={{padding: '20px 40px 10px 40px'}}>
|
|
|
|
|
<li className="clearfix ">
|
|
|
|
|
|
|
|
|
@ -742,10 +764,10 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
</div></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|