|
|
|
@ -206,8 +206,8 @@ function buildColumns(that) {
|
|
|
|
|
title: '',
|
|
|
|
|
dataIndex: 'course_member_id',
|
|
|
|
|
key: 'course_member_id',
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
return content ? <Checkbox value={content}></Checkbox> : ''
|
|
|
|
|
render: (content, item, key) => {
|
|
|
|
|
return content ? <Checkbox value={content} key={content}></Checkbox> : ''
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -401,7 +401,6 @@ class studentsList extends Component{
|
|
|
|
|
}
|
|
|
|
|
fetchAll = async (argPage,filterKey) => {
|
|
|
|
|
let { searchValue }=this.state
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
@ -434,8 +433,9 @@ class studentsList extends Component{
|
|
|
|
|
if(searchValue!=""){
|
|
|
|
|
url+='&search='+searchValue;
|
|
|
|
|
}
|
|
|
|
|
const { updatabanners } = this.props;
|
|
|
|
|
updatabanners && updatabanners();
|
|
|
|
|
const result = await axios.get(encodeURI(url))
|
|
|
|
|
// axios.get((url)).then((result)=>{
|
|
|
|
|
if (result.data.teacher_list) {
|
|
|
|
|
this.setState({
|
|
|
|
|
teachers: result.data.teacher_list,
|
|
|
|
@ -445,6 +445,7 @@ class studentsList extends Component{
|
|
|
|
|
apply_size: result.data.apply_size,
|
|
|
|
|
isSpin:false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else if (result.data.application_list) {
|
|
|
|
|
this.setState({
|
|
|
|
|
total_count: result.data.teacher_list_size,
|
|
|
|
@ -454,12 +455,6 @@ class studentsList extends Component{
|
|
|
|
|
isSpin:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// }).catch((error)=>{
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isSpin:false
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
getGroupList(){
|
|
|
|
|
let id = this.props.match.params.coursesId
|
|
|
|
@ -536,7 +531,7 @@ class studentsList extends Component{
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
checkBoxValues: _.difference(this.state.checkBoxValues, values)
|
|
|
|
|
checkBoxValues: _.difference(this.state.checkBoxValues, values),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -632,7 +627,7 @@ class studentsList extends Component{
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
clearSelection = () => {
|
|
|
|
|
this.setState({ checkBoxValues: [] })
|
|
|
|
|
this.setState({ checkBoxValues: []})
|
|
|
|
|
}
|
|
|
|
|
selectedStatus=(e)=>{
|
|
|
|
|
this.clearSelection()
|
|
|
|
@ -652,10 +647,9 @@ class studentsList extends Component{
|
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
|
const columns = buildColumns(this)
|
|
|
|
|
let {
|
|
|
|
|
searchValue, checkBoxValues, checkAllValue, course_groups,
|
|
|
|
|
searchValue, checkBoxValues,checkAllValue, course_groups,
|
|
|
|
|
groupList, total_count, teachers, order, page, apply_size, filterKey
|
|
|
|
|
}=this.state
|
|
|
|
|
|
|
|
|
|
let currentOrderName = '加入时间排序'
|
|
|
|
|
if (order == ORDER_BY_NAME) {
|
|
|
|
|
currentOrderName = '姓名排序'
|
|
|
|
|