From 94f4166f5a1ff6cc392e3d32a5a6d233d155409e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 21 Mar 2019 10:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4=20userid=20=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5?= =?UTF-8?q?=E5=8F=96=E4=B8=8D=E5=88=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ec/ecCourseEvaluations/ecCourseEvaluations.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js index ae8d7fd0..272dc1ae 100644 --- a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js +++ b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js @@ -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 }