|
|
|
@ -57,6 +57,8 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// let ec_course_id =this.props.match.params.ec_course_id;
|
|
|
|
|
// this.UpdateClassData(true);
|
|
|
|
@ -98,6 +100,11 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
this.props.Ontitine("competition_calculation_info");
|
|
|
|
|
try {
|
|
|
|
|
this.props.triggerRef(this);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
targetsget_navigation_data=(ec_year_id,ec_course_id)=>{
|
|
|
|
@ -301,6 +308,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
newrightcalculatebutton=()=>{
|
|
|
|
|
console.log("调用了计算");
|
|
|
|
|
this.setState({
|
|
|
|
|
Spintype:true
|
|
|
|
|
})
|
|
|
|
@ -310,16 +318,19 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
const Orl =`/ec_courses/${ec_course_id}/evaluation.json`;
|
|
|
|
|
axios.get(Orl)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if(response.data.status===1){
|
|
|
|
|
this.setState({
|
|
|
|
|
calculatetype:true,
|
|
|
|
|
completiontype:true,
|
|
|
|
|
completionlist:'计算成功',
|
|
|
|
|
calculatesetype:true,
|
|
|
|
|
Spintype:false
|
|
|
|
|
})
|
|
|
|
|
this.UpdateClassData(true);
|
|
|
|
|
if(response){
|
|
|
|
|
if(response.data.status===1){
|
|
|
|
|
this.setState({
|
|
|
|
|
calculatetype:true,
|
|
|
|
|
completiontype:true,
|
|
|
|
|
completionlist:'计算成功',
|
|
|
|
|
calculatesetype:true,
|
|
|
|
|
Spintype:false
|
|
|
|
|
})
|
|
|
|
|
this.UpdateClassData(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|