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