diff --git a/app/views/courses/students.json.jbuilder b/app/views/courses/students.json.jbuilder index 5788b44f2..2790a81fc 100644 --- a/app/views/courses/students.json.jbuilder +++ b/app/views/courses/students.json.jbuilder @@ -10,8 +10,8 @@ json.students do if @user_course_identity < Course::ASSISTANT_PROFESSOR && !params[:course_group_id].present? json.member_roles student.user.course_role(@course) end - json.user_phone student.user.hidden_phone - json.user_mail student.user.hidden_mail + json.user_phone @course.excellent ? "" : student.user.hidden_phone + json.user_mail @course.excellent ? "" : student.user.hidden_mail end end json.students_count @students_count diff --git a/public/react/src/modules/courses/ListPageIndex.js b/public/react/src/modules/courses/ListPageIndex.js index a487cddcb..0a0ff0daf 100644 --- a/public/react/src/modules/courses/ListPageIndex.js +++ b/public/react/src/modules/courses/ListPageIndex.js @@ -91,6 +91,7 @@ class ListPageIndex extends Component{ this.state={ yslGuideone:undefined, yslElearning:false, + isexcellent:false } } comyslElearning(bool){ @@ -163,6 +164,11 @@ class ListPageIndex extends Component{ }); } } + ispostexcellenttype=(excellent)=>{ + this.setState({ + isexcellent:excellent + }) + } render() { let {yslGuideone} =this.state; // console.log("98"); @@ -175,7 +181,7 @@ class ListPageIndex extends Component{