From 7f86642a11240976b10f8c27d1608d427343e1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 10 Mar 2020 15:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E5=A0=82url=E6=8A=8Acourses=E6=94=B9?= =?UTF-8?q?=E6=88=90classrooms=20=2078=E5=A4=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/ecs/EcSetting/index.js | 4 +- public/react/src/modules/tpm/TPMIndexHOC.js | 2 +- .../react/src/modules/user/usersInfo/Infos.js | 2 +- .../src/modules/user/usersInfo/InfosBanner.js | 4 +- .../src/modules/user/usersInfo/banner_out.js | 380 +++++++++--------- 5 files changed, 196 insertions(+), 196 deletions(-) diff --git a/public/react/src/modules/ecs/EcSetting/index.js b/public/react/src/modules/ecs/EcSetting/index.js index e1f16be93..2c4653719 100644 --- a/public/react/src/modules/ecs/EcSetting/index.js +++ b/public/react/src/modules/ecs/EcSetting/index.js @@ -10,7 +10,7 @@ import Loadable from 'react-loadable'; import Loading from "../../../Loading"; const { Step } = Steps; 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 stepTypes = ["training_objectives", "graduation_requirement", "requirement_vs_objective", "requirement_vs_standard", "students", "classrooms", "requirement_vs_courses", "reach_calculation_info"]; const EcStudentList=Loadable({ loader: () => import('../subroute/ecStudentList/EcStudentList'), loading: Loading, @@ -83,7 +83,7 @@ class EcSetting extends React.Component { let type = stepTypes[stepIndex]; this.setState({ stepIndex: stepIndex }); - // if(type==="courses"){ + // if(type==="classrooms"){ // 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}`); diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index 86d6034f7..27ed40437 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -466,7 +466,7 @@ export function TPMIndexHOC(WrappedComponent) { let courseId; let query = this.props.location.pathname; const type = query.split('/'); - if (type[1] == 'courses' && type[2]) { + if (type[1] == 'classrooms' && type[2]) { courseId = parseInt(type[2]) // url += `?course_id=${courseId}` } diff --git a/public/react/src/modules/user/usersInfo/Infos.js b/public/react/src/modules/user/usersInfo/Infos.js index 488668421..dc999d228 100644 --- a/public/react/src/modules/user/usersInfo/Infos.js +++ b/public/react/src/modules/user/usersInfo/Infos.js @@ -60,7 +60,7 @@ class Infos extends Component{ type:0, login:undefined, isRenders:false, - moduleName:"courses", + moduleName:"classrooms", next_gold:undefined } } diff --git a/public/react/src/modules/user/usersInfo/InfosBanner.js b/public/react/src/modules/user/usersInfo/InfosBanner.js index 3e09adf82..e7d695d71 100644 --- a/public/react/src/modules/user/usersInfo/InfosBanner.js +++ b/public/react/src/modules/user/usersInfo/InfosBanner.js @@ -117,9 +117,9 @@ class InfosBanner extends Component{
- { - is_edit && is_current ? - - : - is_current ? - {sign || "这家伙很懒,什么都没留下~"} - : - {sign || "这家伙很懒,什么都没留下~"} - } -
- { - is_current ? - - : -+ { + is_edit && is_current ? + + : + is_current ? + {sign || "这家伙很懒,什么都没留下~"} + : + {sign || "这家伙很懒,什么都没留下~"} + } +
+ { + is_current ? + + : +