|
|
|
@ -28,6 +28,7 @@ const RadioGroup = Radio.Group;
|
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
|
const {Option} = Select;
|
|
|
|
|
//学生老师页面
|
|
|
|
|
let columnsystwo=[];
|
|
|
|
|
class Studentshavecompletedthelist extends Component {
|
|
|
|
|
// http://localhost:3007/courses/1309/exercises/722/exercises/student_exercise_list?debug=s
|
|
|
|
|
constructor(props) {
|
|
|
|
@ -1158,237 +1159,56 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.submitstate === "未提交"||record.commit_method===5?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅</a>
|
|
|
|
|
(//是否助教
|
|
|
|
|
this.props.isAssistant()&&this.props.isAssistant()===true?
|
|
|
|
|
(//助教是否有权限
|
|
|
|
|
this.props.assistant_auth&&this.props.assistant_auth===true?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅</a>
|
|
|
|
|
:
|
|
|
|
|
(//是否截止
|
|
|
|
|
this.props.Commonheadofthetestpaper && this.props.Commonheadofthetestpaper.exercise_status===3?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅</a>
|
|
|
|
|
:
|
|
|
|
|
<span style={{textAlign: "center", color: '#999999'}}>--</span>
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅</a>
|
|
|
|
|
)
|
|
|
|
|
:record.submitstate === "已提交"?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore}</a>
|
|
|
|
|
(//是否助教
|
|
|
|
|
this.props.isAssistant()&&this.props.isAssistant()===true?
|
|
|
|
|
(//助教是否有权限
|
|
|
|
|
this.props.assistant_auth&&this.props.assistant_auth===true?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore}</a>
|
|
|
|
|
:
|
|
|
|
|
(//是否截止
|
|
|
|
|
this.props.Commonheadofthetestpaper && this.props.Commonheadofthetestpaper.exercise_status===3?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore}</a>
|
|
|
|
|
:
|
|
|
|
|
<span style={{textAlign: "center", color: '#999999'}}>--</span>
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore}</a>
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
<span style={{textAlign: "center", color: '#999999'}}>--</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
columnsystwo: [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.number === "--" ?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.number}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '姓名',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.name==="--"?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>{record.name}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.name}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '学号',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.stduynumber === "--" ?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>{record.stduynumber}</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#9A9A9A', textAlign: "center"}}>{record.stduynumber}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分班',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14 maxnamewidth260 ",
|
|
|
|
|
width:'260px',
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.classroom==="--"?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}} className="maxnamewidth260">{record.classroom}</span>
|
|
|
|
|
:
|
|
|
|
|
<a style={{color: '#07111B', textAlign: "center"}} className="maxnamewidth260" title={record.classroom}>{record.classroom}</a>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提交状态',
|
|
|
|
|
dataIndex: 'submitstate',
|
|
|
|
|
key: 'submitstate',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={record.submitstate === "未提交" ? {
|
|
|
|
|
color: '#999999',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
} : record.submitstate === "已提交" ? {color: '#29BD8B', textAlign: "center"} : {
|
|
|
|
|
color: '#29BD8B',
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{record.submitstate}</span>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '提交时间',
|
|
|
|
|
dataIndex: 'updatetime',
|
|
|
|
|
key: 'updatetime',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
defaultSortOrder: 'descend',
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.updatetime==="--"?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#9A9A9A', textAlign: "center"}}>{record.updatetime}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客观题得分',
|
|
|
|
|
dataIndex: 'completion',
|
|
|
|
|
key: 'completion',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.completion=== "--"?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#07111B', textAlign: "center"}}>{record.completion}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '主观题得分',
|
|
|
|
|
dataIndex: 'levelscore',
|
|
|
|
|
key: 'levelscore',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.levelscore==="--"?
|
|
|
|
|
<span style={{color: '#999999', textAlign: "center"}}>--</span>
|
|
|
|
|
:
|
|
|
|
|
<span style={{color: '#FF6800', textAlign: "center"}}>{record.levelscore}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '最终成绩',
|
|
|
|
|
dataIndex: 'efficiencyscore',
|
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
|
<div>未评分</div>
|
|
|
|
|
</div>}>
|
|
|
|
|
<a style={{color: '#999999',
|
|
|
|
|
textAlign: "center",}}>--</a>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
:
|
|
|
|
|
record.commit_method===5?
|
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
|
<div>
|
|
|
|
|
<div>最终调整成绩:{record.efficiencyscore}分</div>
|
|
|
|
|
</div>}>
|
|
|
|
|
<span style={parseInt(record.efficiencyscore) > 90 ? {
|
|
|
|
|
color: '#DD1717',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : parseInt(record.efficiencyscore) <= 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : parseInt(record.efficiencyscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
}}>{record.efficiencyscore}</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
:
|
|
|
|
|
<span style={parseInt(record.efficiencyscore) > 90 ? {
|
|
|
|
|
color: '#DD1717',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : parseInt(record.efficiencyscore) <= 90 ? {
|
|
|
|
|
color: '#FF6800',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : parseInt(record.efficiencyscore) <= 60 ? {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
} : {
|
|
|
|
|
color: '#747A7F',
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
}}>{record.efficiencyscore}</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
dataIndex: 'finalscore',
|
|
|
|
|
key: 'finalscore',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|
record.submitstate === "未提交"||record.commit_method===5?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank" onClick={() => this.Adjustment(record.user_id)}>评阅</a>
|
|
|
|
|
:record.submitstate === "已提交"?
|
|
|
|
|
<a style={{textAlign: "center"}} className="color-blue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore}</a>
|
|
|
|
|
:
|
|
|
|
|
<span style={{textAlign: "center", color: '#999999'}}>--</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
],//columnsystwo 也会被columnsys当作参数接收
|
|
|
|
|
// 也会被columnsys当作参数接收
|
|
|
|
|
exercise_status:0,
|
|
|
|
|
order_type: "desc",
|
|
|
|
|
exeuserid: 0,
|
|
|
|
@ -1449,20 +1269,23 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
// if(this.props.isAdmin() === true){
|
|
|
|
|
// this.Teacherliststudentlistsy();
|
|
|
|
|
// //console.log("1111111111111111");
|
|
|
|
|
// //console.log(this.props.isAdmin());
|
|
|
|
|
// }else {
|
|
|
|
|
//被columnsys当作参数接收
|
|
|
|
|
// console.log("componentDidMount");
|
|
|
|
|
// console.log(columnsystwo);
|
|
|
|
|
try {
|
|
|
|
|
columnsystwo=this.state.columnsys;
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// console.log(columnsystwo);
|
|
|
|
|
this.Teacherliststudentlist();
|
|
|
|
|
// //console.log("2222222222222");
|
|
|
|
|
// //console.log(this.props.isAdmin());
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
this.props.triggerRef(this);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps = (nextProps) => {
|
|
|
|
@ -2163,7 +1986,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
columnsys: this.state.columnsystwo,
|
|
|
|
|
columnsys: columnsystwo,
|
|
|
|
|
subjective: response.data.exercise_types.subjective,
|
|
|
|
|
objective_score: response.data.exercise_types.objective_score,
|
|
|
|
|
subjective_score: response.data.exercise_types.subjective_score,
|
|
|
|
@ -2772,8 +2595,16 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
}
|
|
|
|
|
// 调分
|
|
|
|
|
Adjustment = (e) => {
|
|
|
|
|
console.log("Adjustment");
|
|
|
|
|
console.log(e);
|
|
|
|
|
// console.log("Adjustment");
|
|
|
|
|
// console.log(e);
|
|
|
|
|
if(this.state.objective_score===0&&this.state.subjective_score===0){
|
|
|
|
|
this.props.showNotification('试卷题型分被限制为0分,不能调分,请点击编辑试卷修改题型分数');
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
testpapergradingboll: true,
|
|
|
|
|
exeuserid: e,
|
|
|
|
@ -2828,8 +2659,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
// //console.log("this.props.Commonheadofthetestpaper.exercise_status");
|
|
|
|
|
// //console.log(this.props.Commonheadofthetestpaper&&this.props.Commonheadofthetestpaper.exercise_status);
|
|
|
|
|
// //console.log(exercise_status);
|
|
|
|
|
console.log("Studentshavecompletedthelis123123t");
|
|
|
|
|
console.log(columnss);
|
|
|
|
|
// console.log("Studentshavecompletedthelis123123t");
|
|
|
|
|
// console.log(columnss);
|
|
|
|
|
return (
|
|
|
|
|
isAdmin === true ?
|
|
|
|
|
(
|
|
|
|
|