dev_ysm
杨树明 5 years ago
parent 113842ebed
commit 1d21e56564

@ -45,7 +45,7 @@ class Fileslists extends Component{
} }
getcourse_groupslist=()=>{ getcourse_groupslists=()=>{
let coursesId=this.props.match.params.coursesId; let coursesId=this.props.match.params.coursesId;
let url="/courses/"+coursesId+"/all_course_groups.json"; let url="/courses/"+coursesId+"/all_course_groups.json";
axios.get(url).then((response) => { axios.get(url).then((response) => {
@ -59,7 +59,7 @@ class Fileslists extends Component{
}); });
} }
componentDidMount=()=>{ componentDidMount=()=>{
this.getcourse_groupslist() this.getcourse_groupslists()
this.setState({ this.setState({
isSpin:true, isSpin:true,
checkBoxValues:[], checkBoxValues:[],
@ -97,7 +97,7 @@ class Fileslists extends Component{
} }
componentDidUpdate = (prevProps) => { componentDidUpdate = (prevProps) => {
if(prevProps.match.params.main_id != this.props.match.params.main_id){ if(prevProps.match.params.main_id != this.props.match.params.main_id){
this.getcourse_groupslist() this.getcourse_groupslists()
this.setState({ this.setState({
isSpin:true, isSpin:true,
checkBoxValues:[], checkBoxValues:[],
@ -112,7 +112,7 @@ class Fileslists extends Component{
} }
} }
if(prevProps.match.params.Id != this.props.match.params.Id){ if(prevProps.match.params.Id != this.props.match.params.Id){
this.getcourse_groupslist() this.getcourse_groupslists()
this.setState({ this.setState({
isSpin:true, isSpin:true,
checkBoxValues:[], checkBoxValues:[],

Loading…
Cancel
Save