diff --git a/public/react/src/modules/courses/boards/BoardsNew.js b/public/react/src/modules/courses/boards/BoardsNew.js index a08225c1f..0222907d3 100644 --- a/public/react/src/modules/courses/boards/BoardsNew.js +++ b/public/react/src/modules/courses/boards/BoardsNew.js @@ -287,7 +287,7 @@ class BoardsNew extends Component{ const isAdmin = this.props.isAdmin() const courseId=this.props.match.params.coursesId; const boardId = this.props.match.params.boardId - + const isCourseEnd = this.props.isCourseEnd() return(
{menu} { - isAdmin && + isAdmin && !isCourseEnd &&
this.refs['addDirModal'].open()}> diff --git a/public/react/src/modules/courses/boards/index.js b/public/react/src/modules/courses/boards/index.js index 6a563762b..6d1c402ce 100644 --- a/public/react/src/modules/courses/boards/index.js +++ b/public/react/src/modules/courses/boards/index.js @@ -388,7 +388,7 @@ class Boards extends Component{ return
  • this.moveTo(item)} title={item.name}>{item.name}
  • }) } - { isAdmin && + { isAdmin && !isCourseEnd &&

    this.addDir()} diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 3b1d081c2..47d387e5d 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -675,7 +675,7 @@ class studentsList extends Component{ ) }) } { course_groups && course_groups.length > 0 && } - { isAdmin && + { isAdmin && !isCourseEnd &&

    { + axios.get(encodeURI(url)).then((result)=>{ if(result.status===200){ this.setState({ ChooseShixunList:result.data, @@ -369,7 +369,7 @@ class DetailCardsEditAndEdit extends Component{ if(type!=0){ url+="&type="+type; } - axios.get(url).then((result)=>{ + axios.get(encodeURI(url)).then((result)=>{ if(result.status===200){ let list =result.data.shixun_list;