|
|
@ -67,6 +67,7 @@ class Listofworks extends Component {
|
|
|
|
order: "update_time",
|
|
|
|
order: "update_time",
|
|
|
|
b_order:"desc",
|
|
|
|
b_order:"desc",
|
|
|
|
search: null,
|
|
|
|
search: null,
|
|
|
|
|
|
|
|
allow_late:false,
|
|
|
|
task_status: [],
|
|
|
|
task_status: [],
|
|
|
|
course_group_info: [],
|
|
|
|
course_group_info: [],
|
|
|
|
teacherdata: undefined,
|
|
|
|
teacherdata: undefined,
|
|
|
@ -220,7 +221,7 @@ class Listofworks extends Component {
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
record.efficiencyscore&& record.efficiencyscore=== "--"?(
|
|
|
|
record.efficiencyscore&& record.efficiencyscore=== "--"?(
|
|
|
|
record.submitstate==="按时提交"?
|
|
|
|
this.state.allow_late&&this.state.allow_late===false?
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<div>作业截止时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
<div>作业截止时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
</div>}>
|
|
|
|
</div>}>
|
|
|
@ -229,7 +230,7 @@ class Listofworks extends Component {
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
record.submitstate==="延时提交"?
|
|
|
|
this.state.allow_late&&this.state.allow_late===true?
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<div>补交结束时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
<div>补交结束时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
</div>}>
|
|
|
|
</div>}>
|
|
|
@ -472,7 +473,7 @@ class Listofworks extends Component {
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
record.efficiencyscore&& record.efficiencyscore=== "--"?(
|
|
|
|
record.efficiencyscore&& record.efficiencyscore=== "--"?(
|
|
|
|
record.submitstate==="按时提交"?
|
|
|
|
this.state.allow_late&&this.state.allow_late===false?
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<div>作业截止时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
<div>作业截止时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
</div>}>
|
|
|
|
</div>}>
|
|
|
@ -481,7 +482,7 @@ class Listofworks extends Component {
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
record.submitstate==="延时提交"?
|
|
|
|
this.state.allow_late&&this.state.allow_late===true?
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<Tooltip placement="bottom" title={<div>
|
|
|
|
<div>补交结束时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
<div>补交结束时,系统根据学生在课堂成员中的效率表现自动评分</div>
|
|
|
|
</div>}>
|
|
|
|
</div>}>
|
|
|
@ -653,6 +654,7 @@ class Listofworks extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
teacherdata: result.data,
|
|
|
|
teacherdata: result.data,
|
|
|
|
task_status: result.data.task_status,
|
|
|
|
task_status: result.data.task_status,
|
|
|
|
|
|
|
|
allow_late:result.data.allow_late,
|
|
|
|
course_group_info: result.data.course_group_info,
|
|
|
|
course_group_info: result.data.course_group_info,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
jobsettingsdata: result,
|
|
|
|
jobsettingsdata: result,
|
|
|
@ -713,6 +715,7 @@ class Listofworks extends Component {
|
|
|
|
course_group_info: result.data.course_group_info,
|
|
|
|
course_group_info: result.data.course_group_info,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
jobsettingsdata: result,
|
|
|
|
jobsettingsdata: result,
|
|
|
|
|
|
|
|
allow_late:result.data.allow_late,
|
|
|
|
publish_immediately: result.data.publish_immediately,
|
|
|
|
publish_immediately: result.data.publish_immediately,
|
|
|
|
work_efficiency: result.data.work_efficiency,
|
|
|
|
work_efficiency: result.data.work_efficiency,
|
|
|
|
end_immediately: result.data.end_immediately,
|
|
|
|
end_immediately: result.data.end_immediately,
|
|
|
@ -1322,6 +1325,10 @@ class Listofworks extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
loadingstate: true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.Startsorting(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1340,10 +1347,18 @@ class Listofworks extends Component {
|
|
|
|
course_group: this.state.checkedValuesineinfo,
|
|
|
|
course_group: this.state.checkedValuesineinfo,
|
|
|
|
search: this.state.searchtext,
|
|
|
|
search: this.state.searchtext,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((response) => {
|
|
|
|
},{responseType: 'blob'}).then((response) => {
|
|
|
|
console.log("1342");
|
|
|
|
console.log("1342");
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
var blob = new Blob([response.data])
|
|
|
|
|
|
|
|
var downloadElement = document.createElement('a');
|
|
|
|
|
|
|
|
var href = window.URL.createObjectURL(blob); //创建下载的链接
|
|
|
|
|
|
|
|
downloadElement.href = href;
|
|
|
|
|
|
|
|
downloadElement.download = '实习报告.pdf'; //下载后文件名
|
|
|
|
|
|
|
|
document.body.appendChild(downloadElement);
|
|
|
|
|
|
|
|
downloadElement.click(); //点击下载
|
|
|
|
|
|
|
|
document.body.removeChild(downloadElement); //下载完成移除元素
|
|
|
|
|
|
|
|
window.URL.revokeObjectURL(href); //释放掉blob对象
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1359,10 +1374,18 @@ class Listofworks extends Component {
|
|
|
|
group_id: this.state.checkedValuesineinfo,
|
|
|
|
group_id: this.state.checkedValuesineinfo,
|
|
|
|
search: this.state.searchtext,
|
|
|
|
search: this.state.searchtext,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((response) => {
|
|
|
|
},{responseType: 'blob'}).then((response) => {
|
|
|
|
console.log("1306");
|
|
|
|
console.log("1306");
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
var blob = new Blob([response.data])
|
|
|
|
|
|
|
|
var downloadElement = document.createElement('a');
|
|
|
|
|
|
|
|
var href = window.URL.createObjectURL(blob); //创建下载的链接
|
|
|
|
|
|
|
|
downloadElement.href = href;
|
|
|
|
|
|
|
|
downloadElement.download = '课堂学生成绩.xlsx'; //下载后文件名
|
|
|
|
|
|
|
|
document.body.appendChild(downloadElement);
|
|
|
|
|
|
|
|
downloadElement.click(); //点击下载
|
|
|
|
|
|
|
|
document.body.removeChild(downloadElement); //下载完成移除元素
|
|
|
|
|
|
|
|
window.URL.revokeObjectURL(href); //释放掉blob对象
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1458,7 +1481,7 @@ class Listofworks extends Component {
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="educontent mb30">
|
|
|
|
<div className="educontent mb30">
|
|
|
|
<p className=" fl color-black summaryname">
|
|
|
|
<p className=" fl color-black summaryname" style={{heigth:"33px"}}>
|
|
|
|
{teacherdata === undefined ? "" : teacherdata.homework_name}
|
|
|
|
{teacherdata === undefined ? "" : teacherdata.homework_name}
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<CoursesListType
|
|
|
|
<CoursesListType
|
|
|
|