From d4c390aa3bd85aa00de25a1c451317b14e90d50f Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 31 Aug 2019 14:26:05 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E9=87=91=E8=AF=BE=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index c16f8a97b..be75e26fb 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1238,7 +1238,7 @@ class CoursesController < ApplicationController tip_exception("开始时间不能为空") if params[:start_date].blank? tip_exception("结束时间不能为空") if params[:end_date].blank? tip_exception("结束时间必须晚于开始时间") if strf_date(params[:end_date]) <= strf_date(params[:start_date]) - tip_exception("开始时间和结束时间不能与往期开课时间重叠") if @course.nil? && @subject.max_course_end_date && strf_date(params[:start_date]) <= strf_date(@subject.max_course_end_date) + tip_exception("开始时间和结束时间不能小于往期开课时间") if @course.nil? && @subject.max_course_end_date && strf_date(params[:start_date]) <= strf_date(@subject.max_course_end_date) validate_start_end_date if @course.present? tip_exception("开放课堂必须包含公告栏和在线学习模块") unless params[:course_module_types].include?("announcement") && params[:course_module_types].include?("online_learning") end From 06c3725dbb8382989d567065815883136d148026 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 31 Aug 2019 14:46:20 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index be75e26fb..a26b1c23b 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1238,7 +1238,7 @@ class CoursesController < ApplicationController tip_exception("开始时间不能为空") if params[:start_date].blank? tip_exception("结束时间不能为空") if params[:end_date].blank? tip_exception("结束时间必须晚于开始时间") if strf_date(params[:end_date]) <= strf_date(params[:start_date]) - tip_exception("开始时间和结束时间不能小于往期开课时间") if @course.nil? && @subject.max_course_end_date && strf_date(params[:start_date]) <= strf_date(@subject.max_course_end_date) + tip_exception("开始时间和结束时间不能早于往期开课时间") if @course.nil? && @subject.max_course_end_date && strf_date(params[:start_date]) <= strf_date(@subject.max_course_end_date) validate_start_end_date if @course.present? tip_exception("开放课堂必须包含公告栏和在线学习模块") unless params[:course_module_types].include?("announcement") && params[:course_module_types].include?("online_learning") end From 2f0d5714730108325720b232c4058d4ce0b6096d Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Mon, 2 Sep 2019 09:36:35 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=88=86=E7=BB=84=E4=BD=9C=E4=B8=9A-?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/busyWork/CommonWorkQuestion.js | 4 +- .../user/usersInfo/banks/BanksIndex.js | 214 ++++++++++++++++++ 2 files changed, 216 insertions(+), 2 deletions(-) create mode 100644 public/react/src/modules/user/usersInfo/banks/BanksIndex.js diff --git a/public/react/src/modules/courses/busyWork/CommonWorkQuestion.js b/public/react/src/modules/courses/busyWork/CommonWorkQuestion.js index b14f7b209..472ebd557 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkQuestion.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkQuestion.js @@ -105,12 +105,12 @@ class CommonWorkQuestion extends Component{ {isGroup &&
+ {crumbData && crumbData.title} + {crumbData.is_public == true ? '公开':'私有'} +
+ } + +
- 翻转课堂
+
+ {this.props.match.params.coursesId === undefined ?"翻转课堂":dataname}
+
>
-
{this.props.match.params.coursesId === undefined ? "新建课堂" : "编辑课堂"}
- 返回 +{this.props.match.params.coursesId === undefined ? "新建课堂" : "编辑课堂"}
+ this.goback(this.props.match.params.coursesId)} className="color-grey-6 fr font-16 ml30 line15 mr20">返回
- 翻转课堂
+ {Whethertocreateanewclassroom===true?"翻转课堂":name}
>
-