|
|
@ -1,19 +1,10 @@
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
|
|
|
import {getRandomcode, publicSearchs, sortDirections} from 'educoder';
|
|
|
|
import {getRandomcode, publicSearchs, sortDirections} from 'educoder';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Form,
|
|
|
|
|
|
|
|
Select,
|
|
|
|
|
|
|
|
Input,
|
|
|
|
|
|
|
|
Button,
|
|
|
|
|
|
|
|
Checkbox,
|
|
|
|
Checkbox,
|
|
|
|
Upload,
|
|
|
|
|
|
|
|
Icon,
|
|
|
|
Icon,
|
|
|
|
message,
|
|
|
|
|
|
|
|
Modal,
|
|
|
|
|
|
|
|
Table,
|
|
|
|
Table,
|
|
|
|
Pagination,
|
|
|
|
Pagination,
|
|
|
|
Radio,
|
|
|
|
|
|
|
|
Tooltip,
|
|
|
|
Tooltip,
|
|
|
|
notification,
|
|
|
|
notification,
|
|
|
|
Spin,
|
|
|
|
Spin,
|
|
|
@ -30,18 +21,15 @@ import './Challenges.css';
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
import TraineetraininginformationModal from "./TraineetraininginformationModal";
|
|
|
|
import TraineetraininginformationModal from "./TraineetraininginformationModal";
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
|
|
|
import ModulationModal from "../coursesPublic/ModulationModal";
|
|
|
|
import ModulationModal from "../coursesPublic/ModulationModal";
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
import OneSelfOrderModal from "../coursesPublic/OneSelfOrderModal";
|
|
|
|
import OneSelfOrderModal from "../coursesPublic/OneSelfOrderModal";
|
|
|
|
import ShixunWorkModal from "./Shixunworkdetails/ShixunWorkModal";
|
|
|
|
import ShixunWorkModal from "./Shixunworkdetails/ShixunWorkModal";
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData';
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData';
|
|
|
|
|
|
|
|
import Chongzuomodel from "./Chongzuomodel";
|
|
|
|
|
|
|
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
|
|
|
const RadioGroup = Radio.Group;
|
|
|
|
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
const {Option} = Select;
|
|
|
|
|
|
|
|
//GraduationTaskssetting.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//作品列表(学生)
|
|
|
|
//作品列表(学生)
|
|
|
|
let allow_lates=false;
|
|
|
|
let allow_lates=false;
|
|
|
@ -65,6 +53,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
//关卡得分final_score
|
|
|
|
//关卡得分final_score
|
|
|
|
|
|
|
|
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
|
|
|
|
Chongzuomodeltype:undefined,
|
|
|
|
|
|
|
|
chongzuoId:undefined,
|
|
|
|
searchtypes:false,
|
|
|
|
searchtypes:false,
|
|
|
|
jobsettingsdata: undefined,
|
|
|
|
jobsettingsdata: undefined,
|
|
|
|
endTime: "2018/11/10 17:10:00",
|
|
|
|
endTime: "2018/11/10 17:10:00",
|
|
|
@ -280,7 +270,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
width: '98px',
|
|
|
|
width: '98px',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span style={{width: '98px',}}>
|
|
|
|
<span style={{width: '98px',}}>
|
|
|
|
<span style={record.submitstate === "迟交通关" ? {
|
|
|
|
<span style={record.submitstate === "重做中" ?{
|
|
|
|
|
|
|
|
color: '#FF8432',
|
|
|
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
|
|
|
width: '98px',
|
|
|
|
|
|
|
|
}:record.submitstate === "迟交通关" ? {
|
|
|
|
color: '#DD1717',
|
|
|
|
color: '#DD1717',
|
|
|
|
textAlign: "center",
|
|
|
|
textAlign: "center",
|
|
|
|
width: '98px',
|
|
|
|
width: '98px',
|
|
|
@ -675,7 +669,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
width: '98px',
|
|
|
|
width: '98px',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span style={{width: '98px',}}>
|
|
|
|
<span style={{width: '98px',}}>
|
|
|
|
<span style={record.submitstate === "迟交通关" ? {
|
|
|
|
<span style={record.submitstate === "重做中" ?{
|
|
|
|
|
|
|
|
color: '#FF8432',
|
|
|
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
|
|
|
width: '98px',
|
|
|
|
|
|
|
|
}:record.submitstate === "迟交通关" ? {
|
|
|
|
color: '#DD1717',
|
|
|
|
color: '#DD1717',
|
|
|
|
textAlign: "center",
|
|
|
|
textAlign: "center",
|
|
|
|
width: '98px',
|
|
|
|
width: '98px',
|
|
|
@ -1029,7 +1027,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: 'font-14',
|
|
|
|
className: 'font-14',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span style={record.submitstate === "迟交通关" ? {
|
|
|
|
<span style={record.submitstate === "重做中" ?{
|
|
|
|
|
|
|
|
color: '#FF8432',
|
|
|
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
|
|
|
width: '98px',
|
|
|
|
|
|
|
|
}:record.submitstate === "迟交通关" ? {
|
|
|
|
color: '#DD1717',
|
|
|
|
color: '#DD1717',
|
|
|
|
textAlign: "center"
|
|
|
|
textAlign: "center"
|
|
|
|
} : record.submitstate === "按时通关" ? {color: '#29BD8B', textAlign: "center"}
|
|
|
|
} : record.submitstate === "按时通关" ? {color: '#29BD8B', textAlign: "center"}
|
|
|
@ -1297,16 +1299,35 @@ class Listofworksstudentone extends Component {
|
|
|
|
width: '80px',
|
|
|
|
width: '80px',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
record.submitstate === "未开启" ?
|
|
|
|
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>
|
|
|
|
<span>
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
<div>
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
<a style={{textAlign: "center",width: '40px'}} className="color-blue"
|
|
|
|
// onClick={() => this.Viewstudenttraininginformationt(record)}
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅 "}</a>
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅 "}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{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>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>:
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅 "}</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{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>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -1407,7 +1428,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: 'font-14',
|
|
|
|
className: 'font-14',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span style={record.submitstate === "迟交通关" ? {
|
|
|
|
<span style={record.submitstate === "重做中" ?{
|
|
|
|
|
|
|
|
color: '#FF8432',
|
|
|
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
|
|
|
width: '98px',
|
|
|
|
|
|
|
|
}:record.submitstate === "迟交通关" ? {
|
|
|
|
color: '#DD1717',
|
|
|
|
color: '#DD1717',
|
|
|
|
textAlign: "center"
|
|
|
|
textAlign: "center"
|
|
|
|
} : record.submitstate === "按时通关" ? {color: '#29BD8B', textAlign: "center"}
|
|
|
|
} : record.submitstate === "按时通关" ? {color: '#29BD8B', textAlign: "center"}
|
|
|
@ -1664,16 +1689,34 @@ class Listofworksstudentone extends Component {
|
|
|
|
width: '80px',
|
|
|
|
width: '80px',
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
record.submitstate === "未开启" ?
|
|
|
|
record.submitstate === "未开启" ?
|
|
|
|
<a style={{textAlign: "center",width: '40px'}} className="color-blue"
|
|
|
|
<span>
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
<div>
|
|
|
|
// onClick={() => this.Viewstudenttraininginformationt(record)}
|
|
|
|
<a style={{textAlign: "center",width: '40px'}} className="color-blue"
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅"}</a> :
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
|
|
|
|
// onClick={() => this.Viewstudenttraininginformationt(record)}
|
|
|
|
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅"}</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{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>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>:
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
|
|
|
|
// onClick={() => this.Viewstudenttraininginformationt(record)}
|
|
|
|
// onClick={() => this.Viewstudenttraininginformationt(record)}
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅"}</a>
|
|
|
|
>{record.has_comment===true?"已评阅":"评阅"}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{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>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -2072,7 +2115,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
classroom: teacherdata.group_name,
|
|
|
|
classroom: teacherdata.group_name,
|
|
|
|
cost_time: teacherdata.cost_time,
|
|
|
|
cost_time: teacherdata.cost_time,
|
|
|
|
has_comment:teacherdata.has_comment,
|
|
|
|
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:this.state.teacherdata.student_works[i].update_time,
|
|
|
|
// updatetime:"",
|
|
|
|
// updatetime:"",
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
@ -2118,7 +2161,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
classroom: student_works[i].group_name,
|
|
|
|
classroom: student_works[i].group_name,
|
|
|
|
cost_time: student_works[i].cost_time,
|
|
|
|
cost_time: student_works[i].cost_time,
|
|
|
|
has_comment:student_works[i].has_comment,
|
|
|
|
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:this.state.teacherdata.student_works[i].update_time,
|
|
|
|
// updatetime:"",
|
|
|
|
// updatetime:"",
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
@ -2280,7 +2325,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
classroom: teacherdata.group_name,
|
|
|
|
classroom: teacherdata.group_name,
|
|
|
|
cost_time: teacherdata.cost_time,
|
|
|
|
cost_time: teacherdata.cost_time,
|
|
|
|
has_comment:teacherdata.has_comment,
|
|
|
|
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:this.state.teacherdata.student_works[i].update_time,
|
|
|
|
// updatetime:"",
|
|
|
|
// updatetime:"",
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
@ -2645,7 +2690,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
classroom: student_works[i].group_name,
|
|
|
|
classroom: student_works[i].group_name,
|
|
|
|
cost_time: student_works[i].cost_time,
|
|
|
|
cost_time: student_works[i].cost_time,
|
|
|
|
has_comment:student_works[i].has_comment,
|
|
|
|
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:this.state.teacherdata.student_works[i].update_time,
|
|
|
|
// updatetime:"",
|
|
|
|
// updatetime:"",
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
|
updatetime: timedata === "Invalid date" ? "--" : timedata,
|
|
|
@ -3441,6 +3488,19 @@ class Listofworksstudentone extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chongzuofun=(id)=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
chongzuoId:id,
|
|
|
|
|
|
|
|
Chongzuomodeltype:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideChongzuomodeltype=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
chongzuoId:undefined,
|
|
|
|
|
|
|
|
Chongzuomodeltype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
@ -3482,6 +3542,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
this.props.isAdmin() === true ?
|
|
|
|
this.props.isAdmin() === true ?
|
|
|
|
<div className=" clearfix " style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<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 === true ? <ModulationModal
|
|
|
|
visible={visible}
|
|
|
|
visible={visible}
|
|
|
|
Cancel={() => this.cancelModulationModel()}
|
|
|
|
Cancel={() => this.cancelModulationModel()}
|
|
|
|