dev_trainings
hjm 6 years ago
parent d7d6b220b6
commit 3eef8d7fd6

@ -27,6 +27,6 @@ class CareersController < ApplicationController
private private
def render_react def render_react
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
end end

@ -32,6 +32,6 @@ class CategoriesController < ApplicationController
private private
def render_react def render_react
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
end end

@ -88,7 +88,7 @@ class EcCoursesController < ApplicationController
def ec_course_support_setting def ec_course_support_setting
respond_to do |format| respond_to do |format|
format.html { format.html {
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
} }
format.json { format.json {
course_targets = @ec_course.ec_course_targets.includes(:ec_graduation_subitems) course_targets = @ec_course.ec_course_targets.includes(:ec_graduation_subitems)
@ -152,19 +152,19 @@ class EcCoursesController < ApplicationController
# 课程体系(课程考核与数据来源) # 课程体系(课程考核与数据来源)
# /ec_courses/1/ec_course_reach_setting # /ec_courses/1/ec_course_reach_setting
def ec_course_reach_setting def ec_course_reach_setting
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 课程体系(课程目标评价方法) # 课程体系(课程目标评价方法)
# /ec_courses/1/evaluation_methods # /ec_courses/1/evaluation_methods
def evaluation_methods def evaluation_methods
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 课程达成详情蓝胡12 # 课程达成详情蓝胡12
# GET /ec_courses/1/competition_calculation_info # GET /ec_courses/1/competition_calculation_info
def competition_calculation_info def competition_calculation_info
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 评价详情的导出 # 评价详情的导出
@ -425,7 +425,7 @@ class EcCoursesController < ApplicationController
format.html{ format.html{
Rails.logger.info("1111111111111111111template_major: #{@template_major}") Rails.logger.info("1111111111111111111template_major: #{@template_major}")
Rails.logger.info("1111111111111111111is_manager: #{@is_manager}") Rails.logger.info("1111111111111111111is_manager: #{@is_manager}")
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
} }
format.json{ format.json{
levels = @ec_course.ec_score_levels levels = @ec_course.ec_score_levels

@ -46,7 +46,7 @@ class EcYearsController < ApplicationController
def student_lists def student_lists
respond_to do |format| respond_to do |format|
format.html { format.html {
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
} }
end end
end end
@ -217,7 +217,7 @@ class EcYearsController < ApplicationController
# 本专业必要要求VS课程支撑体系 # 本专业必要要求VS课程支撑体系
def requirement_vs_courses def requirement_vs_courses
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 导出课程支撑体系 # 导出课程支撑体系
@ -251,7 +251,7 @@ class EcYearsController < ApplicationController
# 课程达成点计算蓝胡13 # 课程达成点计算蓝胡13
# GET /ec_courses/1/competition_calculation_info # GET /ec_courses/1/competition_calculation_info
def reach_calculation_info def reach_calculation_info
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 蓝胡13数据获取 # 蓝胡13数据获取

@ -28,7 +28,7 @@ class ForumsController < ApplicationController
private private
def render_react def render_react
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
end end
@ -163,7 +163,7 @@ end
# # id: 1 问题反馈 3 操作指南 5 技术分享 # # id: 1 问题反馈 3 操作指南 5 技术分享
# def index # def index
# #
# render "/common/index", :layout => false # render file: 'public/react/build/index.html', :layout => false
# end # end
# #
# # GET /forums/1 # # GET /forums/1

@ -29,7 +29,7 @@ class MemosController < ApplicationController
# 这样处理是为了 前端react显示图片所使用 # 这样处理是为了 前端react显示图片所使用
def new def new
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
def create def create

@ -1088,7 +1088,7 @@ class ShixunsController < ApplicationController
def shixun_discuss def shixun_discuss
if User.current.logged? if User.current.logged?
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
else else
redirect_to signin_path redirect_to signin_path
end end

@ -6,7 +6,7 @@ class StatisticsController < ApplicationController
before_filter :find_rate before_filter :find_rate
def index def index
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
# 用户活跃度(按月份的) # 用户活跃度(按月份的)
@ -187,7 +187,7 @@ class StatisticsController < ApplicationController
unless User.curren.admin? unless User.curren.admin?
render_403 render_403
end end
render "/common/index", :layout => false render file: 'public/react/build/index.html', :layout => false
end end
def set_rate def set_rate

@ -3,7 +3,6 @@ class TasksController < ApplicationController
layout false layout false
def show def show
# redirect_to "/react/build/index.html" render file: 'public/react/build/index.html', :layout => false
render "/common/index"
end end
end end

@ -1,4 +1,4 @@
top_level: _top_level:
id: 1 id: 1
name: Top Level name: Top Level
lft: 1 lft: 1

Loading…
Cancel
Save