统计调整

chromesetting
杨树明 5 years ago
parent c52c756b81
commit 5f072638e5

@ -73,28 +73,31 @@ class Statistics extends Component{
} }
getDynamiclistdatas=(group_ids)=>{ getDynamiclistdatas=(group_ids)=>{
let {activeKey}=this.state;
let courseId=this.props.match.params.coursesId; if(activeKey==='2') {
let url=`/courses/${courseId}/act_score.json`; let courseId = this.props.match.params.coursesId;
let data={ let url = `/courses/${courseId}/act_score.json`;
group_ids:group_ids, let data = {
} group_ids: group_ids,
axios.get(url,{params: }
axios.get(url, {
params:
data data
}).then((result) => { }).then((result) => {
if (result) { if (result) {
this.setState({ this.setState({
course_members:result.data.course_members, course_members: result.data.course_members,
bomisSpin:false bomisSpin: false
}) })
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
this.setState({ this.setState({
bomisSpin:false, bomisSpin: false,
}) })
}) })
} }
}
getwork_scoredata=(page,group_ids,sort)=>{ getwork_scoredata=(page,group_ids,sort)=>{
let {activeKey}=this.state; let {activeKey}=this.state;

Loading…
Cancel
Save