|
|
|
@ -60,7 +60,202 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
"display": "none"
|
|
|
|
|
},
|
|
|
|
|
student_works: [],
|
|
|
|
|
startbtn: false
|
|
|
|
|
startbtn: false,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.number === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}> --</span>
|
|
|
|
|
: record.number === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
: record.number === "--" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#07111B',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}> {record.number}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '姓名',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.name === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === null ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "--" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#07111B',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.name}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分班',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
width:'288px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提交状态',
|
|
|
|
|
dataIndex: 'submitstate',
|
|
|
|
|
key: 'submitstate',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={record.submitstate === "延时提交" ? {
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : record.submitstate === "按时提交" ? {"color": '#29BD8B', "text-align": "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}</span>
|
|
|
|
|
|
|
|
|
|
</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',
|
|
|
|
|
key: 'completion',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.completion+"/"+this.state.challenges_count}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '最终成绩',
|
|
|
|
|
dataIndex: 'levelscore',
|
|
|
|
|
key: 'levelscore',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.levelscore && record.levelscore === "--"?
|
|
|
|
|
<span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.levelscore}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.levelscore) >=90 ? {
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.levelscore) <= 60?{
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
}: {"color": '#747A7F', "text-align": "center"}}>{record.levelscore}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
dataIndex: 'operating',
|
|
|
|
|
key: 'operating',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.submitstate === "未提交" ?<span style={{ color: '#9A9A9A'}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{"text-align": "center"}}
|
|
|
|
|
className="color-blue"
|
|
|
|
|
onClick={() => this.Viewstudenttraininginformation(record)}>{record.operating}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
@ -193,7 +388,14 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
let datalists = [];
|
|
|
|
|
var styletable = {"display": "none"}
|
|
|
|
|
|
|
|
|
|
// console.log("seacthdata设置数据3")
|
|
|
|
|
this.state.columns.map((item,key)=>{
|
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
let columns2=this.state.columns;
|
|
|
|
|
|
|
|
|
|
var teacherlist = undefined;
|
|
|
|
|
var teacherlists = undefined;
|
|
|
|
@ -297,11 +499,21 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
teacherlists: teacherlists,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
styletable: styletable,
|
|
|
|
|
columns:columns2,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 设置数据
|
|
|
|
|
seacthdata = (teacherdata) => {
|
|
|
|
|
let datalist = [];
|
|
|
|
|
this.state.columns.map((item,key)=>{
|
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
let columns2=this.state.columns;
|
|
|
|
|
|
|
|
|
|
if (teacherdata !== undefined) {
|
|
|
|
|
// console.log("seacthdata设置数据")
|
|
|
|
|
// console.log(this.state.teacherdata.id )
|
|
|
|
@ -361,6 +573,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
data: datalist,
|
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columns:columns2,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 查看学员实训信息
|
|
|
|
@ -530,202 +743,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let {visibles, game_list, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate} = this.state;
|
|
|
|
|
let columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.number === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}> --</span>
|
|
|
|
|
: record.number === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
: record.number === "--" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#07111B',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}> {record.number}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '姓名',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.name === undefined ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === null ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
record.name === "--" ?
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#07111B',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.name}</span>
|
|
|
|
|
}
|
|
|
|
|
let {visibles, game_list,columns, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate} = this.state;
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分班',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
width:'288px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{
|
|
|
|
|
"color": '#9A9A9A',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提交状态',
|
|
|
|
|
dataIndex: 'submitstate',
|
|
|
|
|
key: 'submitstate',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={record.submitstate === "延时提交" ? {
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : record.submitstate === "按时提交" ? {"color": '#29BD8B', "text-align": "center"} : {
|
|
|
|
|
"color": '#747A7F',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}</span>
|
|
|
|
|
|
|
|
|
|
</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',
|
|
|
|
|
key: 'completion',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{"color": '#07111B', "text-align": "center"}}>{record.completion+"/"+this.state.challenges_count}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '最终成绩',
|
|
|
|
|
dataIndex: 'levelscore',
|
|
|
|
|
key: 'levelscore',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.levelscore && record.levelscore === "--"?
|
|
|
|
|
<span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.levelscore}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.levelscore) >=90 ? {
|
|
|
|
|
"color": '#DD1717',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
} : parseInt(record.levelscore) <= 60?{
|
|
|
|
|
"color": '#FF6800',
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
}: {"color": '#747A7F', "text-align": "center"}}>{record.levelscore}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
dataIndex: 'operating',
|
|
|
|
|
key: 'operating',
|
|
|
|
|
align: "center",
|
|
|
|
|
className:'font-14',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.submitstate === "未提交" ?<span style={{ color: '#9A9A9A'}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{"text-align": "center"}}
|
|
|
|
|
className="color-blue"
|
|
|
|
|
onClick={() => this.Viewstudenttraininginformation(record)}>{record.operating}</span>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
return (
|
|
|
|
|
teacherdata === undefined || teacherdata.student_works === undefined || teacherdata.student_works === null || JSON.stringify(teacherdata.student_works) === "[]" ?
|
|
|
|
|
// 学生不能查看别人的
|
|
|
|
@ -978,12 +997,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
style={{"color": '#FF6800'}}>{teacherdata.left_time.time}</span>}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
<div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
|
<div className="fr edu-menu-panel">
|
|
|
|
|
<ul>
|
|
|
|
|
<li className="edu-position edu-position-hidebox">
|
|
|
|
|
<a className="font-12 color-grey-6">
|
|
|
|
|
<a className="font-12 ">
|
|
|
|
|
{order === "updated_at" ? "时间" : order === "work_score" ? "成绩" : order === "student_id" ? "学号" : ""}排序</a>
|
|
|
|
|
<i className="iconfont icon-xiajiantou ml5 font-12 color-grey-6"></i>
|
|
|
|
|
<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={{"text-align": "center "}}>更新时间</a></li>
|
|
|
|
@ -1013,7 +1032,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
columns={columns}
|
|
|
|
|
pagination={false}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|