|
|
|
@ -24,6 +24,7 @@ import moment from 'moment';
|
|
|
|
|
import '../css/members.css'
|
|
|
|
|
import '../css/busyWork.css'
|
|
|
|
|
import '../poll/pollStyle.css'
|
|
|
|
|
import './Challenges.css'
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import TraineetraininginformationModal from "./TraineetraininginformationModal";
|
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
@ -182,7 +183,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
<span className="ysltable" style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom}</span>
|
|
|
|
@ -418,7 +419,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.classroom}</span>
|
|
|
|
|
<span className="ysltable" style={{"color": '#07111B', "text-align": "center"}}>{record.classroom}</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -680,7 +681,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.classroom}</span>
|
|
|
|
|
<span className="ysltable" style={{"color": '#07111B', "text-align": "center"}}>{record.classroom}</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -899,9 +900,23 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
console.log("902");
|
|
|
|
|
console.log("902");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidCatch(error, info){
|
|
|
|
|
console.log("-----------------------------905错误信息");
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log(info);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
|
|
console.log("+++++++++913");
|
|
|
|
|
console.log("+++++++++915");
|
|
|
|
|
console.log("+++++++++916");
|
|
|
|
|
console.log(nextProps);
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
@ -954,7 +969,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log("951");
|
|
|
|
|
// console.log(result);
|
|
|
|
|
// debugger
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
this.setState({
|
|
|
|
|
teacherdata: result.data,
|
|
|
|
|
task_status: result.data.task_status,
|
|
|
|
@ -976,7 +990,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
this.seacthdatas(result.data, result.data.student_works);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
@ -1008,7 +1021,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
limit: limit,
|
|
|
|
|
}
|
|
|
|
|
axios.post(urll, data).then((result) => {
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
if (result) {
|
|
|
|
|
// console.log("学生未截至未公开的作品列表")
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
this.setState({
|
|
|
|
@ -1268,7 +1281,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log(JSON.stringify(this.props.user))
|
|
|
|
|
var url = `/student_works/${userids}/shixun_work.json`;
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
if (result) {
|
|
|
|
|
// console.log("Listofworksstudentone.js")
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
let datalist = [];
|
|
|
|
@ -1484,7 +1497,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
limit:20,
|
|
|
|
|
}
|
|
|
|
|
axios.post(urll, data).then((result) => {
|
|
|
|
|
debugger
|
|
|
|
|
if (result) {
|
|
|
|
|
// console.log(url)
|
|
|
|
|
// console.log("作品列表6789077")
|
|
|
|
@ -1916,7 +1928,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log(JSON.stringify(this.props.user))
|
|
|
|
|
var url = `/student_works/${userids}/shixun_work.json`;
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
if (result) {
|
|
|
|
|
// console.log("TraineetraininginformationModal.js")
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
let datalist = [];
|
|
|
|
@ -2033,7 +2045,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
group_ids: course_groupslist,
|
|
|
|
|
end_time:endtime,
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
if (result.status === 200) {
|
|
|
|
|
if (result) {
|
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
|
notification.open({
|
|
|
|
|
message: "提示",
|
|
|
|
@ -2337,7 +2349,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTime font-13"} onClick={this.setComputeTimet}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:""):
|
|
|
|
|
teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:"")
|
|
|
|
@ -2456,7 +2468,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
<div className="mh650 edu-back-white">
|
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
|
<img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
|
<p className="edu-nodata-p mb30">没有数据可以显示!</p>
|
|
|
|
|
<p className="edu-nodata-p mb30">没有数据可以显示.!</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -2628,7 +2640,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
:"")
|
|
|
|
|
:
|
|
|
|
|
(teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
(teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
this.props.isNotMember()===false?
|
|
|
|
|
<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
@ -2793,7 +2805,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTime font-13"} onClick={this.setComputeTime}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:""):
|
|
|
|
|
teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
|
|
|
|
|
(this.props.isNotMember()===false?<div className={"computeTimes font-13"}>
|
|
|
|
|
计算成绩
|
|
|
|
|
</div>:"")
|
|
|
|
|