|
|
@ -654,6 +654,16 @@ 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=()=>{
|
|
|
|
savedelete=()=>{
|
|
|
|
let {Coursename,page,order,checkBoxValues,datas}=this.state;
|
|
|
|
let {Coursename,page,order,checkBoxValues,datas}=this.state;
|
|
|
@ -1154,7 +1164,7 @@ class ShixunHomework extends Component{
|
|
|
|
// console.log("++++++++++++++++++++++++++++++++++++++++++")
|
|
|
|
// console.log("++++++++++++++++++++++++++++++++++++++++++")
|
|
|
|
// console.log(JSON.stringify(this.props))
|
|
|
|
// console.log(JSON.stringify(this.props))
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="mt20 edu-back-white padding02010" key={index}>
|
|
|
|
<div className="mt20 edu-back-white padding02010" key={index} onClick={() => this.onItemClick(item)}>
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<ShixunhomeWorkItem
|
|
|
|
<ShixunhomeWorkItem
|
|
|
|
{...this.props}
|
|
|
|
{...this.props}
|
|
|
|