|
|
@ -94,6 +94,8 @@ class Listofworks extends Component {
|
|
|
|
boolgalist:true,
|
|
|
|
boolgalist:true,
|
|
|
|
challenges_count:0,
|
|
|
|
challenges_count:0,
|
|
|
|
experience:0,
|
|
|
|
experience:0,
|
|
|
|
|
|
|
|
exportResultUrl:"",
|
|
|
|
|
|
|
|
exportUrl:"",
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '序号',
|
|
|
|
title: '序号',
|
|
|
@ -1597,7 +1599,7 @@ class Listofworks extends Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
// console.log("Listofworks.js000")
|
|
|
|
// console.log("Listofworks.js000")
|
|
|
|
|
|
|
|
|
|
|
|
let {columns, page, boolgalist,limit, experience,course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state;
|
|
|
|
let {columns, page, boolgalist,limit,exportUrl, exportResultUrl,experience,course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state;
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// console.log(teacherdata&&teacherdata.shixun_identifier)
|
|
|
|
// console.log(teacherdata&&teacherdata.shixun_identifier)
|
|
|
|
// console.log(course_group_info)
|
|
|
|
// console.log(course_group_info)
|
|
|
@ -1714,10 +1716,34 @@ class Listofworks extends Component {
|
|
|
|
<Link
|
|
|
|
<Link
|
|
|
|
to={`/courses/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${this.state.props.match.params.homeworkid}/settings`}
|
|
|
|
to={`/courses/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${this.state.props.match.params.homeworkid}/settings`}
|
|
|
|
>设置</Link>
|
|
|
|
>设置</Link>
|
|
|
|
{this.props.isAdmin() ? <a
|
|
|
|
{/*{this.props.isAdmin() ? <a*/}
|
|
|
|
className="fr color-blue font-16"
|
|
|
|
{/* className="fr color-blue font-16"*/}
|
|
|
|
href={`/api/homework_commons/${this.props.match.params.coursesId}/works_list.xlsx`}
|
|
|
|
{/* href={`/api/homework_commons/${this.props.match.params.coursesId}/works_list.xlsx`}*/}
|
|
|
|
>导出</a> : ""}
|
|
|
|
{/*>导出</a> : ""}*/}
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
|
|
|
.drop_down_menu li a {
|
|
|
|
|
|
|
|
padding: 0px;
|
|
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.drop_down_menu {
|
|
|
|
|
|
|
|
width: 121px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.drop_down_menu li {
|
|
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
width: 121px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.drop_down_menu, .drop_down_normal {
|
|
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
{this.props.isAdmin()? <li className="li_line drop_down fr color-blue font-16 mr8 mt20" style={{"padding":"0 20px"}}>
|
|
|
|
|
|
|
|
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
|
|
|
|
<ul className="drop_down_menu" style={{"right":"-34px","left":"unset","height":"auto"}}>
|
|
|
|
|
|
|
|
<li><a href={`/api/student_works/${jobsettingsdata === undefined ? "" :jobsettingsdata.data.category.category_id}/export_shixun_work_report.pdf`} calssName="color-dark">实训报告</a></li>
|
|
|
|
|
|
|
|
<li><a href={`/api/homework_commons/${jobsettingsdata === undefined ? "" :jobsettingsdata.data.category.category_id}/works_list.xlsx`} calssName="color-dark">学生成绩</a></li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</li>:""}
|
|
|
|
{this.props.isAdmin() ?
|
|
|
|
{this.props.isAdmin() ?
|
|
|
|
teacherdata && teacherdata.end_immediately === true ?
|
|
|
|
teacherdata && teacherdata.end_immediately === true ?
|
|
|
|
<a className="fr color-blue font-16" onClick={this.homeworkends}>立即截止</a> : ""
|
|
|
|
<a className="fr color-blue font-16" onClick={this.homeworkends}>立即截止</a> : ""
|
|
|
|