|
|
@ -270,26 +270,26 @@ class EcStudentList extends Component {
|
|
|
|
if (studentall === true || studentalltype === 1) {
|
|
|
|
if (studentall === true || studentalltype === 1) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Modallist: '确定删除这些学生吗?',
|
|
|
|
Modallist: '确定删除这些学生吗?',
|
|
|
|
Modallisttype: true,
|
|
|
|
Modallisttype:true,
|
|
|
|
Modallisttypess: 1
|
|
|
|
Modallisttypess:1
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
}else{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Modallist: '请选择学生!',
|
|
|
|
Modallist: '请选择学生!',
|
|
|
|
Modallisttype: true
|
|
|
|
Modallisttype:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//删除学生
|
|
|
|
//删除学生
|
|
|
|
deletelistbthenters = () => {
|
|
|
|
deletelistbthenters=()=>{
|
|
|
|
debugger
|
|
|
|
|
|
|
|
let { Myschoolstudents, studentall } = this.state;
|
|
|
|
let {Myschoolstudents,studentall} =this.state;
|
|
|
|
let major_id = this.props.match.params.majorId;
|
|
|
|
let major_id=this.props.match.params.majorId;
|
|
|
|
let year_id = this.props.match.params.yearId;
|
|
|
|
let year_id=this.props.match.params.yearId;
|
|
|
|
let newstudent_id = [];
|
|
|
|
let newstudent_id=[];
|
|
|
|
if (studentall === false) {
|
|
|
|
if(studentall===false){
|
|
|
|
for (var i = 0; i < Myschoolstudents.length; i++) {
|
|
|
|
for(var i=0; i<Myschoolstudents.length; i++){
|
|
|
|
if (Myschoolstudents[i].istrue === true) {
|
|
|
|
if(Myschoolstudents[i].istrue===true){
|
|
|
|
newstudent_id.push(Myschoolstudents[i].id)
|
|
|
|
newstudent_id.push(Myschoolstudents[i].id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|