工程认证调整 userid 特殊情况取不到值

dev_haigong
杨树明 6 years ago
parent 20a65571d8
commit 94f4166f5a

@ -660,10 +660,11 @@ class ecCourseEvaluations extends Component {
let{checkevalue}=this.state;
let ec_course_id=this.props.match.params.ec_course_id;
let tuser_id=this.props.current_user.user_id;
let Url =`/ec_courses/`+ec_course_id+`/correlation_course.json`;
axios.post(Url,{
course_id:checkevalue,
user_id:this.props.current_user.user_id
user_id:tuser_id
},{
withCredentials: true
}
@ -701,10 +702,11 @@ class ecCourseEvaluations extends Component {
if(e.keyCode == 13){
let {assclassvalue}=this.state;
let ec_course_id=this.props.match.params.ec_course_id;
let tuser_id=this.props.current_user.user_id;
let Url =`/ec_courses/`+ec_course_id+`/search_courses.json`;
axios.post(Url,{
search:assclassvalue,
user_id:this.props.current_user.user_id
user_id:tuser_id
},{
withCredentials: true
}
@ -721,10 +723,11 @@ class ecCourseEvaluations extends Component {
assclassnamesearch=()=>{
let {assclassvalue}=this.state;
let ec_course_id=this.props.match.params.ec_course_id;
let tuser_id=this.props.current_user.user_id;
let Url =`/ec_courses/`+ec_course_id+`/search_courses.json`;
axios.post(Url,{
search:assclassvalue,
user_id:this.props.current_user.user_id
user_id:tuser_id
},{
withCredentials: true
}

Loading…
Cancel
Save