dev_new_shixunsrepository
杨树林 5 years ago
parent 018588427a
commit a68ab040d0

@ -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{
<div style={{ background: '#fff'}} className="workListContent">
{ isAdmin && hasData && <ul className="clearfix" style={{padding: "20px 40px 10px", position: 'relative', paddingLeft: '24px'}}>
<CheckAllGroup options={options_teacher_comment} label={'你的评阅:'} onChange={this.teacherCommentOptionChange}></CheckAllGroup>
<CheckAllGroup options={options_status} label={'作品状态:'} onChange={this.statusOptionChange}></CheckAllGroup>
{isGroup && <CheckAllGroup options={options_member_work} label={'组内角色:'} onChange={this.memberWorkChange}></CheckAllGroup>}
{options_course_group.length > 1 && <CheckAllGroup options={options_course_group} label={'分班情况:'} onChange={this.courseGroupOptionChange} checkboxGroupStyle={{width: '980px'}}></CheckAllGroup>}
<CheckAllGroup comwbool={this.state.comwbool} options={options_teacher_comment} label={'你的评阅:'} onChange={this.teacherCommentOptionChange}></CheckAllGroup>
<CheckAllGroup comwbool={this.state.comwbool} options={options_status} label={'作品状态:'} onChange={this.statusOptionChange}></CheckAllGroup>
{isGroup && <CheckAllGroup comwbool={this.state.comwbool} options={options_member_work} label={'组内角色:'} onChange={this.memberWorkChange}></CheckAllGroup>}
{options_course_group.length > 1 && <CheckAllGroup comwbool={this.state.comwbool} options={options_course_group} label={'分班情况:'} onChange={this.courseGroupOptionChange} checkboxGroupStyle={{width: '980px'}}></CheckAllGroup>}
{/* value={search} */}

@ -20,6 +20,13 @@ class CheckAllGroup extends Component{
this.props.onChange && this.props.onChange([], true);
}
onChange = (checkedValues) => {
try {
if(this.props.comwbool===true){
return
}
}catch (e) {
}
if (checkedValues.length > 0) {
this.setState({
'checkAll': false,

Loading…
Cancel
Save