|
|
@ -353,17 +353,6 @@ class GraduationTasks extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onItemClick = (item) => {
|
|
|
|
|
|
|
|
const checkBoxValues = this.state.checkBoxValues.slice(0);
|
|
|
|
|
|
|
|
const index = checkBoxValues.indexOf(item.task_id);
|
|
|
|
|
|
|
|
if (index != -1) {
|
|
|
|
|
|
|
|
_.remove(checkBoxValues, (listItem)=> listItem === item.task_id)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
checkBoxValues.push(item.task_id)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.onCheckBoxChange(checkBoxValues)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PaginationTask=(page)=>{
|
|
|
|
PaginationTask=(page)=>{
|
|
|
|
|
|
|
|
|
|
|
@ -741,7 +730,7 @@ class GraduationTasks extends Component{
|
|
|
|
{ tasks&&tasks.map((item, index) => {
|
|
|
|
{ tasks&&tasks.map((item, index) => {
|
|
|
|
// console.log(item)
|
|
|
|
// console.log(item)
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="mt20 edu-back-white pt10 pl30 pr30" key={index} onClick={()=>this.onItemClick(item)}>
|
|
|
|
<div className="mt20 edu-back-white pt10 pl30 pr30" key={index}>
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<GraduateTaskItem
|
|
|
|
<GraduateTaskItem
|
|
|
|
discussMessage={item}
|
|
|
|
discussMessage={item}
|
|
|
|