dev_ec
杨树林 5 years ago
parent 4e61419e9c
commit 7032fa8ea7

@ -75,11 +75,11 @@ class EcSetting extends React.Component {
let type = stepTypes[stepIndex]; let type = stepTypes[stepIndex];
this.setState({ stepIndex: stepIndex }); this.setState({ stepIndex: stepIndex });
if(type==="courses"){ // if(type==="courses"){
this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}/ec_course_support_setting/1`); // this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}/ec_course_support_setting/1`);
}else { // }else {
this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}`); this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}`);
} // }
} }
setupStep = () => { setupStep = () => {

@ -233,19 +233,19 @@ class Curriculum extends Component {
<Switch> <Switch>
{/*Curriculumtwo 测试用*/} {/*Curriculumtwo 测试用*/}
{/*课程目标*/} {/*课程目标*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/1' <Route extra path='/ecs/major_schools/:majorId/years/:yearId/subpage/courses/:type/1'
render={ (props) => (<EcCourseSupportSetting {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)} />) }></Route> render={ (props) => (<EcCourseSupportSetting {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)} />) }></Route>
{/*课程考核方式与数据来源*/} {/*课程考核方式与数据来源*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/2' <Route extra path='/ecs/major_schools/:majorId/years/:yearId/subpage/courses/:type/2'
render={ (props) => (<Curriculumtwo {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route> render={ (props) => (<Curriculumtwo {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
{/*成绩等级设置*/} {/*成绩等级设置*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/3' <Route extra path='/ecs/major_schools/:majorId/years/:yearId/subpage/courses/:type/3'
render={ (props) => (<Curriculumtwo {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route> render={ (props) => (<Curriculumtwo {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
{/*4课程目标评价方法*/} {/*4课程目标评价方法*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/4' <Route extra path='/ecs/major_schools/:majorId/years/:yearId/subpage/courses/:type/4'
render={ (props) => (<EcCourseEvaluationsbottom {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route> render={ (props) => (<EcCourseEvaluationsbottom {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
{/*5课程达成评价结果*/} {/*5课程达成评价结果*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/5' <Route extra path='/ecs/major_schools/:majorId/years/:yearId/subpage/courses/:type/5'
render={ (props) => (<EcCompletionCalculation {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route> render={ (props) => (<EcCompletionCalculation {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
</Switch> </Switch>
</div> </div>

@ -16,7 +16,7 @@ class CurriculumSubpage extends Component {
console.log(this.props.match.params); console.log(this.props.match.params);
} }
Curriculumstructure=()=>{ Curriculumstructure=()=>{
this.props.history.push('/ecs/major_schools/:majorId/years/:yearId/subpage/courses') this.props.history.push(`/ecs/major_schools/${this.props.match.params.majorId}/years/${this.props.match.params.yearId}/subpage/courses`);
} }

Loading…
Cancel
Save