|
|
@ -79,7 +79,7 @@ const buildColumns = (that) => {
|
|
|
|
return columns;
|
|
|
|
return columns;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 1-按照学号排序 2-按照分班排序,
|
|
|
|
// 1-按照学生学号 2-按照分班名称,
|
|
|
|
const ORDER_BY_NUM = 1;
|
|
|
|
const ORDER_BY_NUM = 1;
|
|
|
|
const ORDER_BY_GROUP = 2;
|
|
|
|
const ORDER_BY_GROUP = 2;
|
|
|
|
|
|
|
|
|
|
|
@ -317,6 +317,8 @@ class studentsList extends Component{
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
this.props.showNotification('移动成功')
|
|
|
|
this.props.showNotification('移动成功')
|
|
|
|
this.fetchAll()
|
|
|
|
this.fetchAll()
|
|
|
|
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
@ -362,6 +364,7 @@ class studentsList extends Component{
|
|
|
|
this.props.showNotification('删除成功')
|
|
|
|
this.props.showNotification('删除成功')
|
|
|
|
this.fetchAll()
|
|
|
|
this.fetchAll()
|
|
|
|
this.setState({checkBoxValues: []})
|
|
|
|
this.setState({checkBoxValues: []})
|
|
|
|
|
|
|
|
trigger('updatabanner')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
@ -428,9 +431,9 @@ class studentsList extends Component{
|
|
|
|
checkBoxValues,
|
|
|
|
checkBoxValues,
|
|
|
|
checkAllValue
|
|
|
|
checkAllValue
|
|
|
|
}=this.state;
|
|
|
|
}=this.state;
|
|
|
|
let currentOrderName = '学号排序'
|
|
|
|
let currentOrderName = '学生学号'
|
|
|
|
if (order == ORDER_BY_GROUP) {
|
|
|
|
if (order == ORDER_BY_GROUP) {
|
|
|
|
currentOrderName = '分班排序'
|
|
|
|
currentOrderName = '分班名称'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const { coursesids } = this.props
|
|
|
|
const { coursesids } = this.props
|
|
|
|
const course_group_id = this.props.match.params.course_group_id
|
|
|
|
const course_group_id = this.props.match.params.course_group_id
|
|
|
@ -574,8 +577,8 @@ class studentsList extends Component{
|
|
|
|
<li className="drop_down">
|
|
|
|
<li className="drop_down">
|
|
|
|
{currentOrderName}<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
{currentOrderName}<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
<ul className="drop_down_normal">
|
|
|
|
<ul className="drop_down_normal">
|
|
|
|
<li onClick={() => this.onSortTypeChange(ORDER_BY_NUM)} >学号排序</li>
|
|
|
|
<li onClick={() => this.onSortTypeChange(ORDER_BY_NUM)} >学生学号</li>
|
|
|
|
<li onClick={() => this.onSortTypeChange(ORDER_BY_GROUP)} >分班排序</li>
|
|
|
|
<li onClick={() => this.onSortTypeChange(ORDER_BY_GROUP)} >分班名称</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|