|
|
|
@ -129,7 +129,7 @@ class GraduationTasks extends Component{
|
|
|
|
|
let {checkBoxValues,checkAllValue}=this.state;
|
|
|
|
|
|
|
|
|
|
if(checkAllValue===false){
|
|
|
|
|
if(checkBoxValues.length===0){
|
|
|
|
|
if(checkBoxValues.length===0||checkAllValue===undefined){
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -612,7 +612,6 @@ class GraduationTasks extends Component{
|
|
|
|
|
const category_id=this.props.match.params.Id;
|
|
|
|
|
const graduationId=this.props.match.params.graduationId;
|
|
|
|
|
// console.log(this.props.isCourseidentity()===isNotMember)
|
|
|
|
|
// console.log(category_id)
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{/*提示*/}
|
|
|
|
@ -710,7 +709,7 @@ class GraduationTasks extends Component{
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin()?all_count===undefined?'' :all_count===0?"": <div className="mt20 edu-back-white padding20-30">
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} 个 (不支持跨页勾选)</Checkbox>
|
|
|
|
|
<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues===undefined?0:checkBoxValues.length} 个 (不支持跨页勾选)</Checkbox>
|
|
|
|
|
<div className="studentList_operation_ul">
|
|
|
|
|
|
|
|
|
|
<li className="li_line"><a className="color-grey-9" onClick={this.onDelete}>删除</a></li>
|
|
|
|
@ -737,7 +736,7 @@ class GraduationTasks extends Component{
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<Spin size="large" spinning={this.state.isSpin}> <Checkbox.Group style={{ width: '100%' }} onChange={this.onCheckBoxChange} value={checkBoxValues}>
|
|
|
|
|
<Spin size="large" spinning={this.state.isSpin}> <Checkbox.Group style={{ width: '100%' }} onChange={this.onCheckBoxChange} value={checkBoxValues===undefined?[]:checkBoxValues}>
|
|
|
|
|
{ tasks&&tasks.map((item, index) => {
|
|
|
|
|
// console.log(item)
|
|
|
|
|
return (
|
|
|
|
|