From 68c1d08dd39f0cc47f0cd9915608a426f2a968c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sun, 7 Jul 2019 20:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/exercise/Exercisesetting.js | 2 +- .../exercise/Testpapersettinghomepage.js | 22 ++++++++ .../courses/shixunHomework/Listofworks.js | 25 ++++++++- .../shixunHomework/ShixunStudentWork.js | 26 +++++++++- .../shixunHomework/ShixunWorkReport.js | 23 ++++++++- .../shixunHomework/Trainingjobsetting.js | 25 ++++++++- .../shixunHomework/Workquestionandanswer.js | 29 ++++++++--- .../src/modules/modals/DownloadMessage.js | 51 +++++++++++++++++++ 8 files changed, 188 insertions(+), 15 deletions(-) create mode 100644 public/react/src/modules/modals/DownloadMessage.js diff --git a/public/react/src/modules/courses/exercise/Exercisesetting.js b/public/react/src/modules/courses/exercise/Exercisesetting.js index 1e151b654..0a2ce11ba 100644 --- a/public/react/src/modules/courses/exercise/Exercisesetting.js +++ b/public/react/src/modules/courses/exercise/Exercisesetting.js @@ -548,7 +548,7 @@ class Exercisesetting extends Component{ }, }; - console.log(flagPageEdit===true?polls&&polls.exercise_status===1?3:2:1) + // console.log(flagPageEdit===true?polls&&polls.exercise_status===1?3:2:1) return(
{data&&data.shixun_name}
{/*{this.props.isAdmin()?导出实训报告数据:""}*/} diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 466f2e9b7..1ff1c1170 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -27,7 +27,7 @@ import '../poll/pollStyle.css' import moment from 'moment'; import 'moment/locale/zh-cn'; import Modals from "../../modals/Modals"; - +import DownloadMessage from '../../modals/DownloadMessage'; const RadioGroup = Radio.Group; //GraduationTaskssetting.js @@ -1618,8 +1618,16 @@ class Trainingjobsetting extends Component { }else if(response.data.status&&response.data.status===-2){ if(response.data.messages === "100"){ // 已超出文件导出的上限数量(100 ),建议: + this.setState({ + DownloadType:false, + DownloadMessageval:100 + }) }else { //因附件资料超过500M + this.setState({ + DownloadType:false, + DownloadMessageval:500 + }) } }else { window.open(url, '_blank'); @@ -1629,7 +1637,12 @@ class Trainingjobsetting extends Component { }); } - + Downloadcal=()=>{ + this.setState({ + DownloadType:false, + DownloadMessageval:undefined + }) + } render() { @@ -1663,6 +1676,14 @@ class Trainingjobsetting extends Component { data={[]} issCancel={()=>this.hideshowmodel()} />:""} + +