|
|
|
@ -741,12 +741,30 @@ class College extends Component {
|
|
|
|
|
const id =this.props.match.params.id;
|
|
|
|
|
const url=`/colleges/${id}/shixun_chart_data.json`;
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
|
|
|
|
|
this.setState({
|
|
|
|
|
shixun_chart_data:[],
|
|
|
|
|
shixun_chart_datanames:[]
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
if (response.data.status === -1){
|
|
|
|
|
this.setState({
|
|
|
|
|
shixun_chart_data:[],
|
|
|
|
|
shixun_chart_datanames:[]
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
shixun_chart_data:response.data.data,
|
|
|
|
|
shixun_chart_datanames:response.data.names
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
shixun_chart_data:[],
|
|
|
|
|
shixun_chart_datanames:[]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//最热测评
|
|
|
|
@ -754,12 +772,29 @@ class College extends Component {
|
|
|
|
|
const id =this.props.match.params.id;
|
|
|
|
|
const url=`/colleges/${id}/student_hot_evaluations.json`;
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
|
|
|
|
|
this.setState({
|
|
|
|
|
studentionsnames: [],
|
|
|
|
|
studentionsvalues: []
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
if (response.data.status === -1) {
|
|
|
|
|
this.setState({
|
|
|
|
|
studentionsnames: [],
|
|
|
|
|
studentionsvalues: []
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
studentionsnames: response.data.names,
|
|
|
|
|
studentionsvalues: response.data.values
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
studentionsnames:response.data.names,
|
|
|
|
|
studentionsvalues:response.data.values
|
|
|
|
|
studentionsnames: [],
|
|
|
|
|
studentionsvalues: []
|
|
|
|
|
})
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -839,7 +874,7 @@ class College extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={"educontent edu-back-white"} style={{width: "1200px"}}>
|
|
|
|
|
<div className={"educontent edu-back-white mt-4"} style={{width: "1200px"}}>
|
|
|
|
|
<p className="h4 linjibenshiyong">
|
|
|
|
|
基本使用情况
|
|
|
|
|
</p>
|
|
|
|
|