dev_trainings
hjm 6 years ago
parent d7d6b220b6
commit 3eef8d7fd6

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save