diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 43e44c500..8bb95e330 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -49,20 +49,28 @@ class CoursesBanner extends Component { componentDidMount() { - this.updatabanner() + this.onloadupdatabanner() } - updatabanner=()=>{ - let courseId = this.props.match.params.coursesId; - let url = "/courses/" + courseId + "/top_banner.json" - axios.get(url).then((result) => { - if( result!=undefined){ - let data = result.data; - this.setState({ - coursedata: data - }) - } - }) - } + + onloadupdatabanner=()=>{ + this.updatabanner() + } + + updatabanner=()=>{ + let courseId = this.props.match.params.coursesId; + let url = "/courses/" + courseId + "/top_banner.json" + axios.get(url).then((result) => { + if( result!=undefined){ + let data = result.data; + this.setState({ + coursedata: data + }) + }else{ + this.onloadupdatabanner() + } + }) + } + showeditmenu = () => { this.setState({ show: true, diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index c842d02f2..3971cab0f 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -17,8 +17,6 @@ const CheckboxGroup = Checkbox.Group; const Search = Input.Search; const qs = require('qs'); - - class GraduationTaskssettinglist extends Component{ constructor(props){ @@ -1538,8 +1536,10 @@ class GraduationTaskssettinglist extends Component{
{order==="updated_at"?"更新时间":order==="work_score"?"最终成绩":order==="student_id"?"学生学号":""}排序 @@ -1555,6 +1555,24 @@ class GraduationTaskssettinglist extends Component{