|
|
|
@ -392,12 +392,13 @@ class Statistics extends Component{
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// console.log(this.props.isAdmin)
|
|
|
|
|
// console.log("Statistics");
|
|
|
|
|
// console.log(this.props.user.course_is_end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const operations = <React.Fragment>
|
|
|
|
|
const course_is_endismy=this.props&&this.props.user&&this.props.user.course_is_end;
|
|
|
|
|
const operations = <React.Fragment>
|
|
|
|
|
{course_grouptype===false||this.state.course_groups.length===0?"":
|
|
|
|
|
this.state.activeKey==="1"?
|
|
|
|
|
this.props.isAdmin()===true?
|
|
|
|
|
<Dropdownbox
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
@ -408,12 +409,17 @@ class Statistics extends Component{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.state.activeKey==="1"?
|
|
|
|
|
<a className={"ml20 ant-btn-link"} onClick={()=>this.setComputeTimet(this.props.match.params.coursesId)}>获取最新成绩</a>
|
|
|
|
|
(
|
|
|
|
|
course_is_endismy===false?
|
|
|
|
|
<a className={"ml20 ant-btn-link"} onClick={()=>this.setComputeTimet(this.props.match.params.coursesId)}>获取最新成绩</a>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
)
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.state.activeKey==="1"?
|
|
|
|
|
<a className={"ml20 ant-btn-link"} onClick={()=>this.derivefun(this.state.activeKey==="1"?`/courses/${this.props.match.params.coursesId}/export_member_scores_excel.xlsx`:`/courses/${this.props.match.params.coursesId}/export_member_act_score.xlsx`)}>导出</a>
|
|
|
|
|
this.props.isAdmin()===true?
|
|
|
|
|
<a className={"ml20 ant-btn-link"} onClick={()=>this.derivefun(this.state.activeKey==="1"?`/courses/${this.props.match.params.coursesId}/export_member_scores_excel.xlsx`:`/courses/${this.props.match.params.coursesId}/export_member_act_score.xlsx`)}>导出</a>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
</React.Fragment>;
|
|
|
|
@ -592,7 +598,7 @@ class Statistics extends Component{
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}</style>
|
|
|
|
|
<Tabs className="statisticsTabs" activeKey={this.state.activeKey} onChange={this.activeKey} tabBarExtraContent={this.props.isAdmin()===true?operations:""}>
|
|
|
|
|
<Tabs className="statisticsTabs" activeKey={this.state.activeKey} onChange={this.activeKey} tabBarExtraContent={operations}>
|
|
|
|
|
<TabPane tab="学习成绩" key="1" className={"statisticsTabs1"} >
|
|
|
|
|
{bomdata===undefined||bomdata===null?"":bomdata.length===0?<NoneData/>:<Table
|
|
|
|
|
columns={columns}
|
|
|
|
|