|
|
@ -3,6 +3,7 @@ import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import {WordsBtn,ActionBtn} from 'educoder';
|
|
|
|
import {WordsBtn,ActionBtn} from 'educoder';
|
|
|
|
import ShixunWorkModal from './Shixunworkdetails/ShixunWorkModal';
|
|
|
|
import ShixunWorkModal from './Shixunworkdetails/ShixunWorkModal';
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
import NoneData from '../coursesPublic/NoneData';
|
|
|
|
import NoneData from '../coursesPublic/NoneData';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Form,
|
|
|
|
Form,
|
|
|
@ -69,6 +70,8 @@ class ShixunStudentWork extends Component {
|
|
|
|
datalist:undefined,
|
|
|
|
datalist:undefined,
|
|
|
|
showmodel:false,
|
|
|
|
showmodel:false,
|
|
|
|
jobsettingsdata:undefined,
|
|
|
|
jobsettingsdata:undefined,
|
|
|
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -507,6 +510,52 @@ class ShixunStudentWork extends Component {
|
|
|
|
ChangeTab=(e)=>{
|
|
|
|
ChangeTab=(e)=>{
|
|
|
|
this.props.ChangeTab(e);
|
|
|
|
this.props.ChangeTab(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
daochushixunbaogao=()=>{
|
|
|
|
|
|
|
|
let url =`/zip/shixun_report?homework_common_id=${this.props.match.params.homeworkid}`;
|
|
|
|
|
|
|
|
this.confirmysl(url);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
daochuzuoye =() =>{
|
|
|
|
|
|
|
|
let url = `/homework_commons/${this.props.match.params.homeworkid}/works_list.xlsx`;
|
|
|
|
|
|
|
|
this.confirmysl(url);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Downloadcal=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {
|
|
|
|
let {
|
|
|
|
data,
|
|
|
|
data,
|
|
|
@ -596,6 +645,13 @@ class ShixunStudentWork extends Component {
|
|
|
|
issCancel={()=>this.hideshowmodel()}
|
|
|
|
issCancel={()=>this.hideshowmodel()}
|
|
|
|
updatas={()=>this.getupdata()}
|
|
|
|
updatas={()=>this.getupdata()}
|
|
|
|
/>:""}
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
<DownloadMessageysl
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
{/*<DownloadMessage*/}
|
|
|
|
{/*<DownloadMessage*/}
|
|
|
|
{/* {...this.props}*/}
|
|
|
|
{/* {...this.props}*/}
|
|
|
|