@ -1,19 +1,10 @@
import React , { Component } from "react" ;
import CoursesListType from '../coursesPublic/CoursesListType' ;
import { getRandomcode , publicSearchs , sortDirections } from 'educoder' ;
import {
Form ,
Select ,
Input ,
Button ,
Checkbox ,
Upload ,
Icon ,
message ,
Modal ,
Table ,
Pagination ,
Radio ,
Tooltip ,
notification ,
Spin ,
@ -30,18 +21,15 @@ import './Challenges.css';
import { getImageUrl } from 'educoder' ;
import TraineetraininginformationModal from "./TraineetraininginformationModal" ;
import DownloadMessageysl from '../../modals/DownloadMessageysl' ;
import Startshixuntask from "../coursesPublic/Startshixuntask" ;
import ModulationModal from "../coursesPublic/ModulationModal" ;
import HomeworkModal from "../coursesPublic/HomeworkModal" ;
import OneSelfOrderModal from "../coursesPublic/OneSelfOrderModal" ;
import ShixunWorkModal from "./Shixunworkdetails/ShixunWorkModal" ;
import NoneData from '../../../modules/courses/coursesPublic/NoneData' ;
import Chongzuomodel from "./Chongzuomodel" ;
const Search = Input . Search ;
const RadioGroup = Radio . Group ;
const CheckboxGroup = Checkbox . Group ;
const { Option } = Select ;
//GraduationTaskssetting.js
//作品列表(学生)
let allow _lates = false ;
@ -65,6 +53,8 @@ class Listofworksstudentone extends Component {
//关卡得分final_score
this . state = {
Chongzuomodeltype : undefined ,
chongzuoId : undefined ,
searchtypes : false ,
jobsettingsdata : undefined ,
endTime : "2018/11/10 17:10:00" ,
@ -280,7 +270,11 @@ class Listofworksstudentone extends Component {
width : '98px' ,
render : ( text , record ) => (
< span style = { { width : '98px' , } } >
< span style = { record . submitstate === "迟交通关" ? {
< span style = { record . submitstate === "重做中" ? {
color : '#FF8432' ,
textAlign : "center" ,
width : '98px' ,
} : record . submitstate === "迟交通关" ? {
color : '#DD1717' ,
textAlign : "center" ,
width : '98px' ,
@ -675,7 +669,11 @@ class Listofworksstudentone extends Component {
width : '98px' ,
render : ( text , record ) => (
< span style = { { width : '98px' , } } >
< span style = { record . submitstate === "迟交通关" ? {
< span style = { record . submitstate === "重做中" ? {
color : '#FF8432' ,
textAlign : "center" ,
width : '98px' ,
} : record . submitstate === "迟交通关" ? {
color : '#DD1717' ,
textAlign : "center" ,
width : '98px' ,
@ -1029,7 +1027,11 @@ class Listofworksstudentone extends Component {
align : 'center' ,
className : 'font-14' ,
render : ( text , record ) => (
< span style = { record . submitstate === "迟交通关" ? {
< span style = { record . submitstate === "重做中" ? {
color : '#FF8432' ,
textAlign : "center" ,
width : '98px' ,
} : record . submitstate === "迟交通关" ? {
color : '#DD1717' ,
textAlign : "center"
} : record . submitstate === "按时通关" ? { color : '#29BD8B' , textAlign : "center" }
@ -1294,20 +1296,38 @@ class Listofworksstudentone extends Component {
display : 'block' ,
align : 'center' ,
className : 'font-14' ,
width : '40px' ,
width : '80px' ,
render : ( text , record ) => (
record . submitstate === "未开启" ?
< a style = { { textAlign : "center" , width : '40px' } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
// onClick={() => this.Viewstudenttraininginformationt(record)}
> { record . has _comment === true ? "详情" : "评阅 " } < / a > :
< span >
< a style = { { textAlign : "center" } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
// onClick={() => this.Viewstudenttraininginformationt(record)}
> { record . has _comment === true ? "详情" : "评阅 " } < / a >
< / s p a n >
< div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
> { record . has _comment === true ? "已评阅" : "评阅 " } < / a >
< / d i v >
{ this . props . teacherdatapage === undefined ? "" : this . props . teacherdatapage . homework _status [ 0 ] === "已截止" ? "" : record . myshixun _id === 0 ? "" : < div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color32C090"
onMouseDown = { ( e ) => this . chongzuofun ( record . myshixun _identifier ) }
> 重做 < / a >
< / d i v > }
< / s p a n > :
< span >
< div >
< a style = { { textAlign : "center" } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
> { record . has _comment === true ? "已评阅" : "评阅 " } < / a >
< / d i v >
{ this . props . teacherdatapage === undefined ? "" : this . props . teacherdatapage . homework _status [ 0 ] === "已截止" ? "" : record . myshixun _id === 0 ? "" : < div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color32C090"
onMouseDown = { ( e ) => this . chongzuofun ( record . myshixun _identifier ) }
> 重做 < / a >
< / d i v > }
< / s p a n >
)
} ,
] ,
@ -1408,7 +1428,11 @@ class Listofworksstudentone extends Component {
align : 'center' ,
className : 'font-14' ,
render : ( text , record ) => (
< span style = { record . submitstate === "迟交通关" ? {
< span style = { record . submitstate === "重做中" ? {
color : '#FF8432' ,
textAlign : "center" ,
width : '98px' ,
} : record . submitstate === "迟交通关" ? {
color : '#DD1717' ,
textAlign : "center"
} : record . submitstate === "按时通关" ? { color : '#29BD8B' , textAlign : "center" }
@ -1662,19 +1686,37 @@ class Listofworksstudentone extends Component {
display : 'block' ,
align : 'center' ,
className : 'font-14' ,
width : ' 4 0px',
width : ' 8 0px',
render : ( text , record ) => (
record . submitstate === "未开启" ?
< a style = { { textAlign : "center" , width : '40px' } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
// onClick={() => this.Viewstudenttraininginformationt(record)}
> { record . has _comment === true ? "详情" : "评阅" } < / a > :
< span >
< div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
// onClick={() => this.Viewstudenttraininginformationt(record)}
> { record . has _comment === true ? "已评阅" : "评阅" } < / a >
< / d i v >
{ this . props . teacherdatapage === undefined ? "" : this . props . teacherdatapage . homework _status [ 0 ] === "已截止" ? "" : record . myshixun _id === 0 ? "" : < div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color32C090"
onMouseDown = { ( e ) => this . chongzuofun ( record . myshixun _identifier ) }
> 重做 < / a >
< / d i v > }
< / s p a n > :
< span >
< a style = { { textAlign : "center" } } className = "color-blue"
< div >
< a style = { { textAlign : "center" } } className = "color-blue"
onMouseDown = { ( e ) => this . Viewstudenttraininginformationtysl2 ( e , record ) }
// onClick={() => this.Viewstudenttraininginformationt(record)}
> { record . has _comment === true ? "详情" : "评阅" } < / a >
< / s p a n >
> { record . has _comment === true ? "已评阅" : "评阅" } < / a >
< / d i v >
{ this . props . teacherdatapage === undefined ? "" : this . props . teacherdatapage . homework _status [ 0 ] === "已截止" ? "" : record . myshixun _id === 0 ? "" : < div >
< a style = { { textAlign : "center" , width : '40px' } } className = "color32C090"
onMouseDown = { ( e ) => this . chongzuofun ( record . myshixun _identifier ) }
> 重做 < / a >
< / d i v > }
< / s p a n >
)
} ,
] ,
@ -2073,7 +2115,7 @@ class Listofworksstudentone extends Component {
classroom : teacherdata . group _name ,
cost _time : teacherdata . cost _time ,
has _comment : teacherdata . has _comment ,
submitstate : teacherdata . work _status === 0 ? "未开启" : teacherdata . work _status === 1 ? "未通关" : teacherdata . work _status === 2 ? "按时通关" : "迟交通关" ,
submitstate : teacherdata . work _status === - 1 ? "重做中" : teacherdata . work _status === 0 ? "未开启" : teacherdata . work _status === 1 ? "未通关" : teacherdata . work _status === 2 ? "按时通关" : "迟交通关" ,
// updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"",
updatetime : timedata === "Invalid date" ? "--" : timedata ,
@ -2119,7 +2161,9 @@ class Listofworksstudentone extends Component {
classroom : student _works [ i ] . group _name ,
cost _time : student _works [ i ] . cost _time ,
has _comment : student _works [ i ] . has _comment ,
submitstate : student _works [ i ] . work _status === 0 ? "未开启" : student _works [ i ] . work _status === 1 ? "未通关" : student _works [ i ] . work _status === 2 ? "按时通关" : "迟交通关" ,
myshixun _id : student _works [ i ] . myshixun _id ,
myshixun _identifier : student _works [ i ] . myshixun _identifier ,
submitstate : student _works [ i ] . work _status === - 1 ? "重做中" : student _works [ i ] . work _status === 0 ? "未开启" : student _works [ i ] . work _status === 1 ? "未通关" : student _works [ i ] . work _status === 2 ? "按时通关" : "迟交通关" ,
// updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"",
updatetime : timedata === "Invalid date" ? "--" : timedata ,
@ -2281,7 +2325,7 @@ class Listofworksstudentone extends Component {
classroom : teacherdata . group _name ,
cost _time : teacherdata . cost _time ,
has _comment : teacherdata . has _comment ,
submitstate : teacherdata . work _status === 0 ? "未开启" : teacherdata . work _status === 1 ? "未通关" : teacherdata . work _status === 2 ? "按时通关" : "迟交通关" ,
submitstate : teacherdata . work _status === - 1 ? "重做中" : teacherdata . work _status === 0 ? "未开启" : teacherdata . work _status === 1 ? "未通关" : teacherdata . work _status === 2 ? "按时通关" : "迟交通关" ,
// updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"",
updatetime : timedata === "Invalid date" ? "--" : timedata ,
@ -2646,7 +2690,9 @@ class Listofworksstudentone extends Component {
classroom : student _works [ i ] . group _name ,
cost _time : student _works [ i ] . cost _time ,
has _comment : student _works [ i ] . has _comment ,
submitstate : student _works [ i ] . work _status === 0 ? "未开启" : student _works [ i ] . work _status === 1 ? "未通关" : student _works [ i ] . work _status === 2 ? "按时通关" : "迟交通关" ,
myshixun _id : student _works [ i ] . myshixun _id ,
myshixun _identifier : student _works [ i ] . myshixun _identifier ,
submitstate : student _works [ i ] . work _status === - 1 ? "重做中" : student _works [ i ] . work _status === 0 ? "未开启" : student _works [ i ] . work _status === 1 ? "未通关" : student _works [ i ] . work _status === 2 ? "按时通关" : "迟交通关" ,
// updatetime:this.state.teacherdata.student_works[i].update_time,
// updatetime:"",
updatetime : timedata === "Invalid date" ? "--" : timedata ,
@ -3442,6 +3488,19 @@ class Listofworksstudentone extends Component {
} )
}
chongzuofun = ( id ) => {
this . setState ( {
chongzuoId : id ,
Chongzuomodeltype : true
} )
}
hideChongzuomodeltype = ( ) => {
this . setState ( {
chongzuoId : undefined ,
Chongzuomodeltype : false
} )
}
render ( ) {
let { columns , columnss , 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 ;
@ -3483,6 +3542,13 @@ class Listofworksstudentone extends Component {
this . props . isAdmin ( ) === true ?
< div className = " clearfix " style = { { margin : "auto" , minWidth : "1200px" } } >
{ this . state . Chongzuomodeltype === true ? < Chongzuomodel
{ ... this . props }
{ ... this . state }
hideChongzuomodeltype = { ( ) => this . hideChongzuomodeltype ( ) }
Isupdatass = { ( ) => this . Isupdatass ( ) }
/ > : " " }
{ visible === true ? < ModulationModal
visible = { visible }
Cancel = { ( ) => this . cancelModulationModel ( ) }