|
|
|
@ -6,16 +6,31 @@ import axios from 'axios';
|
|
|
|
|
import './index.scss';
|
|
|
|
|
|
|
|
|
|
import CustomLoadable from "../../../CustomLoadable";
|
|
|
|
|
import Curriculum from "../../../modules/ecs/curriculum/Curriculum"
|
|
|
|
|
import Loadable from 'react-loadable';
|
|
|
|
|
import Loading from "../../../Loading";
|
|
|
|
|
const { Step } = Steps;
|
|
|
|
|
|
|
|
|
|
const TrainingObjective = CustomLoadable(() => import('./TrainingObjective/index'))
|
|
|
|
|
const GraduationRequirement = CustomLoadable(() => import('./GraduationRequirement/index'))
|
|
|
|
|
const CourseSupports = CustomLoadable(() => import('./CourseSupports/index'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const steps = ["培养目标", "毕业要求", "培养目标VS毕业要求", "毕业要求VS通用标准", "学生", "课程体系", "课程体系VS毕业要求", "达成度评价结果"];
|
|
|
|
|
const stepTypes = ["training_objectives", "graduation_requirement", "requirement_vs_objective", "requirement_vs_standard", "students", "courses", "requirement_vs_courses", "reach_calculation_info"];
|
|
|
|
|
const EcStudentList=Loadable({
|
|
|
|
|
loader: () => import('../subroute/ecStudentList/EcStudentList'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
});
|
|
|
|
|
const Curriculum=Loadable({
|
|
|
|
|
loader: () => import('../../../modules/ecs/curriculum/Curriculum'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
});
|
|
|
|
|
const TrainingObjective=Loadable({
|
|
|
|
|
loader: () => import('./TrainingObjective/index'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
});
|
|
|
|
|
const GraduationRequirement=Loadable({
|
|
|
|
|
loader: () => import('./GraduationRequirement/index'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
});
|
|
|
|
|
const CourseSupports=Loadable({
|
|
|
|
|
loader: () => import('./CourseSupports/index'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
class EcSetting extends React.Component {
|
|
|
|
|
constructor (props) {
|
|
|
|
@ -50,8 +65,12 @@ class EcSetting extends React.Component {
|
|
|
|
|
let type = stepTypes[stepIndex];
|
|
|
|
|
|
|
|
|
|
this.setState({ stepIndex: stepIndex });
|
|
|
|
|
if(type==="courses"){
|
|
|
|
|
this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}/ec_course_support_setting/1`);
|
|
|
|
|
}else {
|
|
|
|
|
this.props.history.push(`/ecs/major_schools/${majorId}/years/${yearId}/${type}`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setupStep = () => {
|
|
|
|
|
let type = this.props.match.params.type;
|
|
|
|
@ -101,6 +120,11 @@ class EcSetting extends React.Component {
|
|
|
|
|
<Switch>
|
|
|
|
|
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/training_objectives'
|
|
|
|
|
render={ (props) => (<TrainingObjective {...this.props} {...props} {...this.state} />) }></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*学生*/}
|
|
|
|
|
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/students'
|
|
|
|
|
render={ (props) => (<EcStudentList {...this.props} {...props} {...this.state} />) }></Route>
|
|
|
|
|
{/*课程体系*/}
|
|
|
|
|
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses'
|
|
|
|
|
render={ (props) => (<Curriculum {...this.props} {...props} {...this.state} />) }></Route>
|
|
|
|
|