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{
{ isAdmin && hasData &&