this.addDir()}
diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js
index 9f98b9294..584965039 100644
--- a/public/react/src/modules/courses/busyWork/commonWork.js
+++ b/public/react/src/modules/courses/busyWork/commonWork.js
@@ -124,7 +124,7 @@ class commonWork extends Component{
if(search!=""){
url+="&search="+search;
}
- axios.get((url)).then((result)=>{
+ axios.get(encodeURI(url)).then((result)=>{
if(result.status==200){
this.setState({
mainList:result.data,
diff --git a/public/react/src/modules/courses/members/modal/AddStudentModal.js b/public/react/src/modules/courses/members/modal/AddStudentModal.js
index cf7583a51..9113ba6ab 100644
--- a/public/react/src/modules/courses/members/modal/AddStudentModal.js
+++ b/public/react/src/modules/courses/members/modal/AddStudentModal.js
@@ -80,8 +80,9 @@ class AddStudentModal extends Component{
}
setVisible = (visible) => {
if (visible) {
- this.setState({school_name: this.props.user.user_school})
- this.fetchMemberList()
+ this.setState({school_name: this.props.user.user_school},()=>{
+ this.fetchMemberList();
+ })
this.fetchOptions()
}
this.refs.modalWrapper.setVisible(visible)
diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js
index 46e6ad77d..47d387e5d 100644
--- a/public/react/src/modules/courses/members/studentsList.js
+++ b/public/react/src/modules/courses/members/studentsList.js
@@ -324,7 +324,7 @@ class studentsList extends Component{
if(!!searchValue){
url+='&search='+searchValue;
}
- axios.get((url)).then((result)=>{
+ axios.get(encodeURI(url)).then((result)=>{
if (result.data.students) {
this.setState({
students: result.data.students,
@@ -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;