|
|
@ -1,8 +1,6 @@
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import {WordsBtn, ActionBtn, markdownToHTML} from 'educoder';
|
|
|
|
import {WordsBtn, ActionBtn, markdownToHTML} from 'educoder';
|
|
|
|
import GraduateTopicReply from '../graduation/topics/GraduateTopicReply'
|
|
|
|
|
|
|
|
import MemoDetailMDEditortwo from '../../forums/MemoDetailMDEditortwo'
|
|
|
|
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Form,
|
|
|
|
Form,
|
|
|
|
Select,
|
|
|
|
Select,
|
|
|
@ -37,13 +35,9 @@ import CommonReply from "../common/comments/CommonReply";
|
|
|
|
import Homeworddescription from "../shixunHomework/Homeworddescription";
|
|
|
|
import Homeworddescription from "../shixunHomework/Homeworddescription";
|
|
|
|
import ShixunWorkModal from './Shixunworkdetails/ShixunWorkModal';
|
|
|
|
import ShixunWorkModal from './Shixunworkdetails/ShixunWorkModal';
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
// import Homeworddescription from "../shixunHomework/Homeworddescription";
|
|
|
|
import DownloadMessage from '../../modals/DownloadMessage';
|
|
|
|
|
|
|
|
|
|
|
|
const TextArea = Input.TextArea
|
|
|
|
const TextArea = Input.TextArea
|
|
|
|
|
|
|
|
|
|
|
|
//GraduationTaskssetting.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//作业问答页面
|
|
|
|
//作业问答页面
|
|
|
|
class Workquestionandanswer extends Component {
|
|
|
|
class Workquestionandanswer extends Component {
|
|
|
|
//unifiedsetting 统一设置
|
|
|
|
//unifiedsetting 统一设置
|
|
|
@ -327,8 +321,16 @@ class Workquestionandanswer extends Component {
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
if(response.data.messages === "100"){
|
|
|
|
if(response.data.messages === "100"){
|
|
|
|
// 已超出文件导出的上限数量(100 ),建议:
|
|
|
|
// 已超出文件导出的上限数量(100 ),建议:
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
|
|
|
DownloadMessageval:100
|
|
|
|
|
|
|
|
})
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
//因附件资料超过500M
|
|
|
|
//因附件资料超过500M
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
|
|
|
DownloadMessageval:500
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
window.open(url, '_blank');
|
|
|
|
window.open(url, '_blank');
|
|
|
@ -337,7 +339,12 @@ class Workquestionandanswer extends Component {
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Downloadcal=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
|
|
|
|
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
|
|
|
|
let {
|
|
|
|
let {
|
|
|
@ -366,6 +373,12 @@ class Workquestionandanswer extends Component {
|
|
|
|
issCancel={() => this.hideshowmodel()}
|
|
|
|
issCancel={() => this.hideshowmodel()}
|
|
|
|
updatas={() => this.isupdatas()}
|
|
|
|
updatas={() => this.isupdatas()}
|
|
|
|
/> : ""}
|
|
|
|
/> : ""}
|
|
|
|
|
|
|
|
<DownloadMessage
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
|
|
|
/>
|
|
|
|
{/*立即发布*/}
|
|
|
|
{/*立即发布*/}
|
|
|
|
<HomeworkModal
|
|
|
|
<HomeworkModal
|
|
|
|
modaltype={this.state.modaltype}
|
|
|
|
modaltype={this.state.modaltype}
|
|
|
|