dev_newshixunModel
杨树明 5 years ago
parent 05b4bf893a
commit 97fe089a72

@ -129,7 +129,7 @@ class GraduationTasks extends Component{
let {checkBoxValues,checkAllValue}=this.state; let {checkBoxValues,checkAllValue}=this.state;
if(checkAllValue===false){ if(checkAllValue===false){
if(checkBoxValues.length===0){ if(checkBoxValues.length===0||checkAllValue===undefined){
return true return true
} }
} }
@ -612,7 +612,6 @@ class GraduationTasks extends Component{
const category_id=this.props.match.params.Id; const category_id=this.props.match.params.Id;
const graduationId=this.props.match.params.graduationId; const graduationId=this.props.match.params.graduationId;
// console.log(this.props.isCourseidentity()===isNotMember) // console.log(this.props.isCourseidentity()===isNotMember)
console.log(checkBoxValues)
return( return(
<React.Fragment> <React.Fragment>
{/*提示*/} {/*提示*/}
@ -737,7 +736,7 @@ class GraduationTasks extends Component{
border-radius: 2px; border-radius: 2px;
} }
`}</style> `}</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) => { { tasks&&tasks.map((item, index) => {
// console.log(item) // console.log(item)
return ( return (

Loading…
Cancel
Save