|
|
|
@ -6,9 +6,8 @@ import axios from 'axios';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import HomeworkModal from "../../coursesPublic/HomeworkModal";
|
|
|
|
|
import Modals from '../../../modals/Modals';
|
|
|
|
|
import DownloadMessage from '../../../modals/DownloadMessage';
|
|
|
|
|
import CoursesListType from '../../coursesPublic/CoursesListType';
|
|
|
|
|
|
|
|
|
|
import DownloadMessageysl from "../../../modals/DownloadMessageysl";
|
|
|
|
|
import ModulationModal from "../../coursesPublic/ModulationModal";
|
|
|
|
|
import AllocationModal from "../../coursesPublic/AllocationModal";
|
|
|
|
|
import Associationmodel from '../../coursesPublic/Associationmodel';
|
|
|
|
@ -626,21 +625,57 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pageNumber);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 确认是否下载
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
let {teacher_comment, task_status, course_group, cross_comment, order, b_order, search,page} =this.state;
|
|
|
|
|
|
|
|
|
|
let params ={
|
|
|
|
|
teacher_comment:teacher_comment,
|
|
|
|
|
task_status:task_status,
|
|
|
|
|
course_group:course_group,
|
|
|
|
|
cross_comment:cross_comment,
|
|
|
|
|
order:order,
|
|
|
|
|
b_order:b_order,
|
|
|
|
|
search:search,
|
|
|
|
|
}
|
|
|
|
|
axios.get(url,{
|
|
|
|
|
params
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if(response === undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|
if(response.data.messages === "100"){
|
|
|
|
|
// 已超出文件导出的上限数量(100 ),建议:
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:true,
|
|
|
|
|
DownloadMessageval:100
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
//因附件资料超过500M
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:true,
|
|
|
|
|
DownloadMessageval:500
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`正在下载中`);
|
|
|
|
|
window.open("/api"+url, '_blank');
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {teacher_comment, task_status, course_group, cross_comment, order, b_order, search,page} =this.state;
|
|
|
|
|
|
|
|
|
|
let params ={
|
|
|
|
|
teacher_comment:teacher_comment,
|
|
|
|
|
task_status:task_status,
|
|
|
|
|
course_group:course_group,
|
|
|
|
|
cross_comment:cross_comment,
|
|
|
|
|
order:order,
|
|
|
|
|
b_order:b_order,
|
|
|
|
|
search:search,
|
|
|
|
|
}
|
|
|
|
|
this.refs.DownloadMessage.confirmysl(url,params);
|
|
|
|
|
Downloadcal=()=> {
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType: false,
|
|
|
|
|
DownloadMessageval: undefined
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
@ -1007,7 +1042,13 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
setupdate={this.setupdate}
|
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
<DownloadMessage ref="DownloadMessage" {...this.props} />
|
|
|
|
|
<DownloadMessageysl
|
|
|
|
|
{...this.props}
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{taskslistdata&&taskslistdata?
|
|
|
|
|
// 教师列表
|
|
|
|
|