|
|
@ -448,8 +448,6 @@ class EcCoursesController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def score_level_data
|
|
|
|
def score_level_data
|
|
|
|
respond_to do |format|
|
|
|
|
|
|
|
|
format.json{
|
|
|
|
|
|
|
|
levels = @ec_course.ec_score_levels
|
|
|
|
levels = @ec_course.ec_score_levels
|
|
|
|
ls = []
|
|
|
|
ls = []
|
|
|
|
if levels.present?
|
|
|
|
if levels.present?
|
|
|
@ -463,8 +461,6 @@ class EcCoursesController < ApplicationController
|
|
|
|
{score: 60, level: "差"}]
|
|
|
|
{score: 60, level: "差"}]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
render :json => {levels: ls, is_manager: @is_manager}
|
|
|
|
render :json => {levels: ls, is_manager: @is_manager}
|
|
|
|
}
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def crud_score_level
|
|
|
|
def crud_score_level
|
|
|
|