diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 4a3db9694..a6acc2081 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -445,7 +445,7 @@ class CoursesBanner extends Component { {excellent===true? - 国家精品 + 国家精品 :""} { @@ -136,6 +138,7 @@ class Goldsubject extends Component { credit: parseFloat(data.credit), course_module_types: data.course_module_types, school:data.school, + Whethertocreateanewclassroom:false, }); this.handleSearchschool(data.school); }).catch((error) => { @@ -154,6 +157,7 @@ class Goldsubject extends Component { }); this.setState({ school:user_school, + Whethertocreateanewclassroom:true, }); this.handleSearchschool(user_school); @@ -412,7 +416,12 @@ class Goldsubject extends Component { // this.props.history.push(this.props.current_user.first_category_url); // } // window.history.go(-1) - this.props.history.goBack() + if(this.state.Whethertocreateanewclassroom===true){ + var subjectids=this.props.match.params.subjectid; + window.location.href=`/paths/${subjectids}` + }else{ + this.props.history.goBack(); + } } onCheckAllChange = (e) => { @@ -543,7 +552,7 @@ class Goldsubject extends Component { this.applyForAddOrgForm.setVisible(true) } render() { - let {datatime,datatimetwo,school,searchlistscholl} = this.state; + let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom} = this.state; const {getFieldDecorator} = this.props.form; const propsWithoutForm = Object.assign({}, this.props) delete propsWithoutForm.form @@ -581,11 +590,19 @@ class Goldsubject extends Component { modalsBottomval={this.state.ModalsBottomval} loadtype={this.state.Loadtype} /> +
+
+ + + 首页 + + {Whethertocreateanewclassroom===true?"新建课堂":"编辑课堂"} +
-

{this.props.match.params.coursesId === undefined ? "新建课堂" : "编辑课堂"}

- 返回 +

{Whethertocreateanewclassroom===true ? "新建课堂" : "编辑课堂"}

+