资源的二级目录调整

courseware
cxt 5 years ago
parent aa82337dbd
commit 5512b845fa

@ -4,9 +4,11 @@ json.course_modules do
json.id course_module.id
json.module_name course_module.module_name
json.course_second_categories course_module.first_categories do |category|
json.(category, :id, :name)
json.course_third_categories category.children do |child|
json.(child, :id, :name)
json.title category.name
json.value category.id
json.children category.children do |child|
json.title child.name
json.value child.id
end
end
end

Loading…
Cancel
Save