|
|
|
@ -430,7 +430,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_getRequestParams() {
|
|
|
|
|
const { search, arg_work_status, arg_teacher_comment, arg_course_group, order, page } = this.state
|
|
|
|
|
const { search, arg_work_status, arg_teacher_comment, arg_course_group, order, page, arg_member_work } = this.state
|
|
|
|
|
return {
|
|
|
|
|
page,
|
|
|
|
|
search,
|
|
|
|
@ -441,6 +441,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
limit: PAGE_SIZE,
|
|
|
|
|
b_order: orderMap[order],
|
|
|
|
|
group_id:arg_course_group,
|
|
|
|
|
member_work: arg_member_work
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fetchData = () => {
|
|
|
|
@ -488,6 +489,11 @@ class CommonWorkList extends Component{
|
|
|
|
|
this.fetchList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
memberWorkChange = (values, isAllChecked) => {
|
|
|
|
|
this.setState({arg_member_work: isAllChecked ? '' : values[0], page: 1}, () => {
|
|
|
|
|
this.fetchList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
funorder = (order) => {
|
|
|
|
|
this.setState({ order }, () => {
|
|
|
|
|
this.fetchList()
|
|
|
|
@ -581,10 +587,21 @@ class CommonWorkList extends Component{
|
|
|
|
|
return { label: `${item.name}(${item.count})`, value: item.id }
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 1:组长, 0:组员,“” 不限
|
|
|
|
|
const member_works = [{
|
|
|
|
|
name: '组长', id: 1
|
|
|
|
|
}, {
|
|
|
|
|
name: '组员', id: 0
|
|
|
|
|
}]
|
|
|
|
|
const options_member_work = member_works.map((item) => {
|
|
|
|
|
return { label: `${item.name}`, value: item.id }
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
|
const isStudent = this.props.isStudent()
|
|
|
|
|
const isAdminOrStudent = this.props.isAdminOrStudent()
|
|
|
|
|
const isGroup = this.props.isGroup();
|
|
|
|
|
// work_group
|
|
|
|
|
let StudentData;
|
|
|
|
|
|
|
|
|
@ -679,6 +696,7 @@ class CommonWorkList extends Component{
|
|
|
|
|
<CheckAllGroup options={options_teacher_comment} label={'你的评阅:'} onChange={this.teacherCommentOptionChange}></CheckAllGroup>
|
|
|
|
|
<CheckAllGroup options={options_status} label={'作品状态:'} onChange={this.statusOptionChange}></CheckAllGroup>
|
|
|
|
|
{options_course_group.length > 1 && <CheckAllGroup options={options_course_group} label={'分班情况:'} onChange={this.courseGroupOptionChange} checkboxGroupStyle={{width: '980px'}}></CheckAllGroup>}
|
|
|
|
|
{isGroup && <CheckAllGroup options={options_member_work} label={'组内角色:'} onChange={this.memberWorkChange}></CheckAllGroup>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* value={search} */}
|
|
|
|
|