From a68ab040d0a16f1b36e2ff8fa5d91f45f482f21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 27 Feb 2020 17:11:20 +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/busyWork/CommonWorkList.js | 35 ++++- .../courses/common/button/CheckAllGroup.js | 131 +++++++++--------- 2 files changed, 98 insertions(+), 68 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 35b2a1ee8..78e2a4e70 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -404,7 +404,8 @@ class CommonWorkList extends Component{ category: {}, b_order: 'desc', searchtypes:false, - loadingstate:false + loadingstate:false, + comwbool:false } } onTablePagination = (page) => { @@ -476,6 +477,16 @@ class CommonWorkList extends Component{ this.fetchList() } fetchList = () => { + if(this.state.comwbool===true){ + console.log('arg_course_group2'); + console.log(this.state.arg_course_group); + return + } + + this.setState({ + comwbool:true, + }) + //分班 let workId=this.props.match.params.workId; let courseId=this.props.match.params.coursesId; @@ -493,12 +504,23 @@ class CommonWorkList extends Component{ moduleName: '作品列表' })) } - }).catch((error)=>{ + setTimeout(() => { + this.setState({ + comwbool:false, + }) + }, 1000) + }).catch((error)=>{ console.log(error) this.setState({ isSpin:false, loadingstate:false }) + setTimeout(() => { + this.setState({ + comwbool:false, + }) + }, 1000) + }) @@ -514,6 +536,7 @@ class CommonWorkList extends Component{ }) } courseGroupOptionChange = (values, isAllChecked) => { + this.setState({arg_course_group: isAllChecked ? [] : values, page: 1}, () => { this.fetchList() }) @@ -792,10 +815,10 @@ class CommonWorkList extends Component{