|
|
|
@ -1327,6 +1327,47 @@ class Listofworks extends Component {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导出实习报告批量
|
|
|
|
|
internshipreport = ()=>{
|
|
|
|
|
console.log("internshipreport");
|
|
|
|
|
let url = "/zip/shixun_report";
|
|
|
|
|
let homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
axios.get((url),{
|
|
|
|
|
params: {
|
|
|
|
|
homework_common_id: homeworkid,
|
|
|
|
|
work_status: this.state.course_groupyslstwo,
|
|
|
|
|
course_group: this.state.checkedValuesineinfo,
|
|
|
|
|
search: this.state.searchtext,
|
|
|
|
|
}
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
console.log("1342");
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 课堂学生成绩的导出下载
|
|
|
|
|
Classstudentachievement=()=>{
|
|
|
|
|
console.log("Classstudentachievement");
|
|
|
|
|
const course_id = this.props.match.params.coursesId;
|
|
|
|
|
let url = "/courses/"+course_id+"/export_member_scores_excel.xlsx";
|
|
|
|
|
axios.get((url),{
|
|
|
|
|
params: {
|
|
|
|
|
group_id: this.state.checkedValuesineinfo,
|
|
|
|
|
search: this.state.searchtext,
|
|
|
|
|
}
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
console.log("1306");
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
// console.log("Listofworks.js000")
|
|
|
|
|
|
|
|
|
@ -1475,8 +1516,8 @@ class Listofworks extends Component {
|
|
|
|
|
{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":"-0px","left":"unset","height":"auto"}}>
|
|
|
|
|
<li><a href={`/api/student_works/${jobsettingsdata === undefined ? "" :jobsettingsdata.data.category.category_id}/export_shixun_work_report.pdf`} >实训报告</a></li>
|
|
|
|
|
<li><a href={`/api/homework_commons/${jobsettingsdata === undefined ? "" :jobsettingsdata.data.category.category_id}/works_list.xlsx`} >学生成绩</a></li>
|
|
|
|
|
<li><a onClick={()=>this.internshipreport()}>实训报告</a></li>
|
|
|
|
|
<li><a onClick={()=>this.Classstudentachievement()} >学生成绩</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>:""}
|
|
|
|
|
{this.props.isAdmin() ?
|
|
|
|
|