From 9064c9f7fab0f91abe71694361797a0b5dddc590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 20 Jul 2019 19:57:46 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/login/Trialapplication.js | 4 ++-- public/react/src/modules/login/Trialapplicationysl.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js index 3f375eb18..bed10c38b 100644 --- a/public/react/src/modules/login/Trialapplication.js +++ b/public/react/src/modules/login/Trialapplication.js @@ -278,13 +278,13 @@ class Trialapplication extends Component { isRenders: false }) this.Cancel(); - + this.handleDialogClose() } else { this.setState({ isRenders: false }) this.Cancel(); - + this.handleDialogClose() } } }).catch((error) => { diff --git a/public/react/src/modules/login/Trialapplicationysl.js b/public/react/src/modules/login/Trialapplicationysl.js index 2b369ef7f..4ccb655b6 100644 --- a/public/react/src/modules/login/Trialapplicationysl.js +++ b/public/react/src/modules/login/Trialapplicationysl.js @@ -294,6 +294,7 @@ class Trialapplicationysl extends Component { isRenders: false }) this.Cancel(); + this.handleDialogClose() // } else { // this.setState({ // isRenders: false From 5b4da3d94d4d657c7412a0d41653ac2b67706272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 20 Jul 2019 20:04:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/login/Trialapplication.js | 6 ++---- public/react/src/modules/login/Trialapplicationysl.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js index bed10c38b..c40f14bdc 100644 --- a/public/react/src/modules/login/Trialapplication.js +++ b/public/react/src/modules/login/Trialapplication.js @@ -216,13 +216,13 @@ class Trialapplication extends Component { this.setState({ isRenders: false }) - this.Cancel(); + this.handleDialogClose() window.location.href = "/"; } else { this.setState({ isRenders: false }) - this.Cancel(); + this.handleDialogClose() } } @@ -277,13 +277,11 @@ class Trialapplication extends Component { this.setState({ isRenders: false }) - this.Cancel(); this.handleDialogClose() } else { this.setState({ isRenders: false }) - this.Cancel(); this.handleDialogClose() } } diff --git a/public/react/src/modules/login/Trialapplicationysl.js b/public/react/src/modules/login/Trialapplicationysl.js index 4ccb655b6..02e7dc81b 100644 --- a/public/react/src/modules/login/Trialapplicationysl.js +++ b/public/react/src/modules/login/Trialapplicationysl.js @@ -293,7 +293,7 @@ class Trialapplicationysl extends Component { this.setState({ isRenders: false }) - this.Cancel(); + // this.Cancel(); this.handleDialogClose() // } else { // this.setState({ From 24133693e31262ed56e454f0812c2d09001cad58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 20 Jul 2019 20:27:11 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/Listofworksstudentone.js | 46 +++++++++++++++++++ .../shixunHomework/ShixunHomeworkPage.js | 44 +++--------------- 2 files changed, 52 insertions(+), 38 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 704e4995b..67afa0414 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2201,8 +2201,48 @@ class Listofworksstudentone extends Component { // // } + daochushixunbaogao=()=>{ + } + + + + 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() { let {columns,course_groupysls,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state; @@ -2232,7 +2272,13 @@ class Listofworksstudentone extends Component { updatas={() => this.isupdatas()} /> : ""} + {visibles === true ?