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