dev_aliyun_beta
杨树明 5 years ago
parent 35b6b43b31
commit 6a5ad71635

@ -11,6 +11,7 @@ import HomeworkModal from "../coursesPublic/HomeworkModal";
import Fileslistitem from './Fileslistitem';
import Titlesearchsection from '../common/titleSearch/TitleSearchSection';
import NoneData from "../coursesPublic/NoneData";
import _ from 'lodash'
import './style.css';
import '../css/members.css';
import moment from 'moment';

@ -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)=>{
@ -741,7 +730,7 @@ class GraduationTasks extends Component{
{ tasks&&tasks.map((item, index) => {
// console.log(item)
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">
<GraduateTaskItem
discussMessage={item}

@ -656,16 +656,7 @@ class ShixunHomework extends Component{
})
}
onItemClick = (item) => {
const checkBoxValues = this.state.checkBoxValues.slice(0);
const index = checkBoxValues.indexOf(item.homework_id);
if (index != -1) {
_.remove(checkBoxValues, (listItem)=> listItem === item.homework_id)
} else {
checkBoxValues.push(item.homework_id)
}
this.onCheckBoxChange(checkBoxValues)
}
savedelete=()=>{
let {Coursename,page,order,checkBoxValues,datas}=this.state;

Loading…
Cancel
Save