|
|
|
@ -67,7 +67,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
pages: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order: "update_time",
|
|
|
|
|
order: "",
|
|
|
|
|
search: null,
|
|
|
|
|
day: 0,
|
|
|
|
|
hour: 0,
|
|
|
|
@ -130,30 +130,30 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
<span className="maxnamewidth100">
|
|
|
|
|
{record.name === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === null ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "--" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<a className="maxnamewidth100" title={record.name} style={{
|
|
|
|
|
color: '#07111B',
|
|
|
|
|
"color": '#07111B',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{record.name}</a>
|
|
|
|
|
}
|
|
|
|
@ -167,24 +167,23 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14 maxnamewidth110',
|
|
|
|
|
width:'110px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span className="maxnamewidth110">
|
|
|
|
|
{record.stduynumber === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
|
: record.stduynumber === null ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
|
: record.stduynumber === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
@ -193,7 +192,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
title={record.stduynumber}
|
|
|
|
|
className="maxnamewidth110"
|
|
|
|
|
style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{
|
|
|
|
|
record.stduynumber
|
|
|
|
@ -214,7 +213,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span className="ysltable" style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom}</span>
|
|
|
|
|
</span>
|
|
|
|
@ -229,10 +228,10 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={record.submitstate === "延时提交" ? {
|
|
|
|
|
color: '#DD1717',
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : record.submitstate === "按时提交" ? {color: '#29BD8B', textAlign: "center"} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
} : record.submitstate === "按时提交" ? {"color": '#29BD8B', textAlign: "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}</span>
|
|
|
|
|
|
|
|
|
@ -251,26 +250,37 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}
|
|
|
|
|
}>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}>
|
|
|
|
|
{record.cost_time === null? "--":record.cost_time === undefined?"--":
|
|
|
|
|
<a style={
|
|
|
|
|
{
|
|
|
|
|
title: '更新时间',
|
|
|
|
|
dataIndex: 'updatetime',
|
|
|
|
|
key: 'updatetime',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{record.updatetime === undefined ? "--" : record.updatetime === "" ? "--" : record.updatetime}</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
title={"学员在EduCoder做实训花费的时间"}
|
|
|
|
|
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '更新时间',
|
|
|
|
|
// dataIndex: 'updatetime',
|
|
|
|
|
// key: 'updatetime',
|
|
|
|
|
// align: "center",
|
|
|
|
|
// className:'font-14',
|
|
|
|
|
// render: (text, record) => (
|
|
|
|
|
// <span>
|
|
|
|
|
// <span style={{
|
|
|
|
|
// "color": '#9A9A9A',
|
|
|
|
|
// "text-align": "center"
|
|
|
|
|
// }}>{record.updatetime === undefined ? "--" : record.updatetime === "" ? "--" : record.updatetime}</span>
|
|
|
|
|
// </span>
|
|
|
|
|
// ),
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '完成情况',
|
|
|
|
|
dataIndex: 'completion',
|
|
|
|
@ -279,7 +289,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.completion+"/"+this.state.challenges_count}</span>
|
|
|
|
|
<span style={{color: '#07111B',textAlign: "center"}}>{record.completion+"/"+this.state.challenges_count}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
@ -379,7 +389,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
orders: "update_time",
|
|
|
|
|
orders: "",
|
|
|
|
|
b_order:"desc",
|
|
|
|
|
allow_late:false,
|
|
|
|
|
checkedValuesine: undefined,
|
|
|
|
@ -395,8 +405,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
course_group: null,
|
|
|
|
|
publish_immediately: undefined,
|
|
|
|
|
end_immediately: undefined,
|
|
|
|
|
mystyle: {"display": "block", color: '#07111B', textAlign: "center"},
|
|
|
|
|
mystyles: {"display": "none", color: '#07111B', textAlign: "center"},
|
|
|
|
|
mystyle: {"display": "block", "color": '#07111B', textAlign: "center"},
|
|
|
|
|
mystyles: {"display": "none", "color": '#07111B', textAlign: "center"},
|
|
|
|
|
mystyle1: {"display": "block"},
|
|
|
|
|
mystyles1: {"display": "none"},
|
|
|
|
|
unlimited: 0,
|
|
|
|
@ -413,7 +423,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.number}
|
|
|
|
|
<span style={{"color": '#07111B', textAlign: "center"}}>{record.number}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
@ -425,7 +435,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14 maxnamewidth100',
|
|
|
|
|
width:'100px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<a className="maxnamewidth100" title={record.name} style={{color: '#07111B', textAlign: "center"}}>{record.name}</a>
|
|
|
|
|
<a className="maxnamewidth100" title={record.name} style={{"color": '#07111B', textAlign: "center"}}>{record.name}</a>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -434,7 +444,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14 maxnamewidth110',
|
|
|
|
|
width:'110px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span className="maxnamewidth110">
|
|
|
|
|
{record.stduynumber === undefined ?
|
|
|
|
@ -480,7 +489,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.classroom === undefined ?<span className="ysltable" style={{color: '#07111B', textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>{record.classroom}</span>}
|
|
|
|
|
{record.classroom === undefined ?<span className="ysltable" style={{"color": '#07111B', textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{"color": '#07111B',textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{"color": '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{"color": '#07111B',textAlign: "center"}}>{record.classroom}</span>}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
@ -514,21 +523,41 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}
|
|
|
|
|
}>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
|
|
|
|
|
}>
|
|
|
|
|
{record.cost_time === null? "--":record.cost_time === undefined?"--":
|
|
|
|
|
<a style={
|
|
|
|
|
{
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
title={"学员在EduCoder做实训花费的时间"}
|
|
|
|
|
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
// <a style={
|
|
|
|
|
// {
|
|
|
|
|
// "color": '#747A7F',
|
|
|
|
|
// "text-align": "center"
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// title={record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
|
|
|
|
|
// >{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
|
|
|
|
|
// </a>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '更新时间',
|
|
|
|
|
dataIndex: 'updatetime',
|
|
|
|
|
key: 'updatetime',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{color: '#9A9A9A', textAlign: "center"}}>{record.updatetime}</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '更新时间',
|
|
|
|
|
// dataIndex: 'updatetime',
|
|
|
|
|
// key: 'updatetime',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// className:'font-14',
|
|
|
|
|
// render: (text, record) => (
|
|
|
|
|
// <span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
|
|
|
|
|
// ),
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '完成情况',
|
|
|
|
|
dataIndex: 'completion',
|
|
|
|
@ -541,7 +570,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
|
<div>已通过{record.completion}关,共{this.state.challenges_count}关</div>
|
|
|
|
|
</div>}>
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.completion+"/"+this.state.challenges_count} </span>
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.completion+"/"+this.state.challenges_count} </span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
@ -556,14 +585,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={parseInt(record.levelscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.levelscore) < 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : parseInt(record.levelscore) >= 90 ? {color: '#DD1717', textAlign: "center"} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.levelscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.levelscore}</span>
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
@ -602,15 +631,15 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.efficiencyscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.efficiencyscore) < 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.efficiencyscore) >= 90 ? {
|
|
|
|
|
color: '#DD1717',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : {color: '#747A7F', textAlign: "center"}}>{record.efficiencyscore}</span>
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : {"color": '#747A7F', "text-align": "center"}}>{record.efficiencyscore}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
@ -634,19 +663,19 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
record.finalscore&&record.finalscore==="--"?
|
|
|
|
|
<span style=
|
|
|
|
|
{{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.finalscore}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.finalscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.finalscore) < 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : parseInt(record.finalscore) >= 90 ? {color: '#DD1717', textAlign: "center"} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.finalscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.finalscore}</span>
|
|
|
|
|
}
|
|
|
|
|
</Tooltip>
|
|
|
|
@ -662,19 +691,19 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
record.finalscore&&record.finalscore==="--"?
|
|
|
|
|
<span style=
|
|
|
|
|
{{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.finalscore}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.finalscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.finalscore) < 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : parseInt(record.finalscore) >= 90 ? {color: '#DD1717', textAlign: "center"} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.finalscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.finalscore}</span>
|
|
|
|
|
}
|
|
|
|
|
</Tooltip>
|
|
|
|
@ -707,7 +736,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.number}
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.number}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
@ -719,7 +748,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14 maxnamewidth100',
|
|
|
|
|
width:'100px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<a className="maxnamewidth100" title={record.name} style={{color: '#07111B', textAlign: "center"}}>{record.name}</a>
|
|
|
|
|
<a className="maxnamewidth100" title={record.name} style={{"color": '#07111B', "text-align": "center"}}>{record.name}</a>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -728,25 +757,24 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14 maxnamewidth110',
|
|
|
|
|
width:'110px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span className="maxnamewidth110">
|
|
|
|
|
{record.stduynumber === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
|
: record.stduynumber === null ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
|
: record.stduynumber === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
color: '#9A9A9A',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--
|
|
|
|
|
</span>
|
|
|
|
|
:
|
|
|
|
@ -774,7 +802,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.classroom === undefined ?<span className="ysltable" style={{color: '#07111B', textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>{record.classroom}</span>}
|
|
|
|
|
{record.classroom === undefined ?<span className="ysltable" style={{color: '#07111B',textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>{record.classroom}</span>}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
@ -796,16 +824,16 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '更新时间',
|
|
|
|
|
dataIndex: 'updatetime',
|
|
|
|
|
key: 'updatetime',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{color: '#9A9A9A',textAlign: "center"}}>{record.updatetime}</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// title: '更新时间',
|
|
|
|
|
// dataIndex: 'updatetime',
|
|
|
|
|
// key: 'updatetime',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// className:'font-14',
|
|
|
|
|
// render: (text, record) => (
|
|
|
|
|
// <span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
|
|
|
|
|
// ),
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '实战耗时',
|
|
|
|
|
dataIndex: 'cost_time',
|
|
|
|
@ -818,10 +846,20 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}
|
|
|
|
|
}>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time }
|
|
|
|
|
}>
|
|
|
|
|
{record.cost_time === null ? "--":record.cost_time === undefined ?"--":
|
|
|
|
|
<a style={
|
|
|
|
|
{
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
title={"学员在EduCoder做实训花费的时间"}
|
|
|
|
|
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '完成情况',
|
|
|
|
@ -904,7 +942,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
} : parseInt(record.efficiencyscore) >= 90 ? {
|
|
|
|
|
color: '#DD1717',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : {color: '#747A7F', textAlign: "center"}}>{record.efficiencyscore}</span>
|
|
|
|
|
} : {color: '#747A7F',textAlign: "center"}}>{record.efficiencyscore}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
@ -1031,8 +1069,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// console.log(this.props.isAdmin())
|
|
|
|
|
this.student();
|
|
|
|
|
console.log("Listofworksstudentone---------------");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
}
|
|
|
|
|
isupdatas = () => {
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
@ -1658,9 +1694,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
let urll = `/homework_commons/${homeworkid}/works_list.json?`;
|
|
|
|
|
var order = "asc";
|
|
|
|
|
if (ordervlue === "update_time") {
|
|
|
|
|
order = "desc";
|
|
|
|
|
}
|
|
|
|
|
// if (ordervlue === "update_time") {
|
|
|
|
|
// order = "desc";
|
|
|
|
|
// }
|
|
|
|
|
var checkedValuesines = checkedValuesine;
|
|
|
|
|
var checkedValuesineinfos = checkedValuesineinfo;
|
|
|
|
|
var searchtexts = searchtext
|
|
|
|
@ -2067,15 +2103,15 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
//排序
|
|
|
|
|
funordert = (e) => {
|
|
|
|
|
if (e === "update_time") {
|
|
|
|
|
// 时间
|
|
|
|
|
// 时间排序是从小到大
|
|
|
|
|
this.setState({
|
|
|
|
|
orders: "update_time",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit);
|
|
|
|
|
}
|
|
|
|
|
// if (e === "update_time") {
|
|
|
|
|
// // 时间
|
|
|
|
|
// // 时间排序是从小到大
|
|
|
|
|
// this.setState({
|
|
|
|
|
// orders: "update_time",
|
|
|
|
|
// loadingstate: true,
|
|
|
|
|
// })
|
|
|
|
|
// this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (e === "work_score") {
|
|
|
|
|
// 成绩
|
|
|
|
@ -2475,8 +2511,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`正在下载中`);
|
|
|
|
|
window.open("/api"+url, '_blank');
|
|
|
|
|
// this.props.showNotification(`正在下载中`);
|
|
|
|
|
// window.open("/api"+url, '_blank');
|
|
|
|
|
this.props.slowDownload(url);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -2494,12 +2531,27 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
let {columns,course_groupysls,datajs,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
|
|
|
|
|
|
|
|
|
|
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
|
|
|
|
|
|
|
|
|
// console.log(this.state.student_works);
|
|
|
|
|
// console.log("841");
|
|
|
|
|
// console.log(this.state.columns);
|
|
|
|
|
// console.log(datajs);
|
|
|
|
|
// console.log("2202");
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
// console.log("2498");
|
|
|
|
|
// console.log(data);
|
|
|
|
|
// console.log(datas);
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
|
|
|
|
|
let course_is_end = this.props.current_user&&this.props.current_user.course_is_end;
|
|
|
|
|
|
|
|
|
|
console.log("Listofworksstudentone+++++++++");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
// if(this.props.isAdmin() === false){
|
|
|
|
|
// if(teacherdata.student_works!==undefined){
|
|
|
|
|
// if(teacherdata.student_works.length>0){
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
return (
|
|
|
|
|
this.props.isAdmin() === true ?
|
|
|
|
|
(
|
|
|
|
@ -2749,10 +2801,10 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
<ul>
|
|
|
|
|
<li className="edu-position edu-position-hidebox">
|
|
|
|
|
<a className="font-12">
|
|
|
|
|
{orders === "update_time" ? "时间" : orders === "work_score" ? "成绩" : orders === "student_id" ? "学号" : ""}排序</a>
|
|
|
|
|
{orders === "work_score" ? "成绩" : orders === "student_id" ? "学号" : ""}排序</a>
|
|
|
|
|
<i className="iconfont icon-xiajiantou ml5 font-12 "></i>
|
|
|
|
|
<ul className="edu-position-hide undis mt10">
|
|
|
|
|
<li> <a onClick={(e) => this.funordert("update_time")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>更新时间</a></li>
|
|
|
|
|
{/*<li> <a onClick={(e) => this.funordert("update_time")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>更新时间</a></li>*/}
|
|
|
|
|
<li> <a onClick={(e) => this.funordert("work_score")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>最终成绩</a></li>
|
|
|
|
|
<li> <a onClick={(e) => this.funordert("student_id")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>学生学号</a></li>
|
|
|
|
|
</ul>
|
|
|
|
@ -3204,11 +3256,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
{/*<i className="iconfont icon-xiajiantou ml5 font-12 "></i>*/}
|
|
|
|
|
{/*<ul className="edu-position-hide undis mt10">*/}
|
|
|
|
|
{/*<li><a onClick={(e) => this.funorder("updated_at")} data-remote="true"*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{textAlign: "center "}}>更新时间</a></li>*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{"text-align": "center "}}>更新时间</a></li>*/}
|
|
|
|
|
{/*<li><a onClick={(e) => this.funorder("work_score")} data-remote="true"*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{textAlign: "center "}}>最终成绩</a></li>*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{"text-align": "center "}}>最终成绩</a></li>*/}
|
|
|
|
|
{/*<li><a onClick={(e) => this.funorder("student_id")} data-remote="true"*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{textAlign: "center "}}>学生学号</a></li>*/}
|
|
|
|
|
{/*className="color-grey-6 font-12" style={{"text-align": "center "}}>学生学号</a></li>*/}
|
|
|
|
|
{/*</ul>*/}
|
|
|
|
|
{/*</li>*/}
|
|
|
|
|
{/*</ul>*/}
|
|
|
|
|