You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/exercises/_exercise_scores.json.jbuilder

16 lines
1004 B

6 years ago
json.exercise_types do
json.q_counts @exercise_ques_count #全部问题数
json.q_scores @exercise_ques_scores.round(1).to_s #试卷总分
json.q_singles @exercise_single_ques_count #单选题的数量
json.q_singles_scores @exercise_single_ques_scores.round(1).to_s #单选题的分数
json.q_doubles @exercise_double_ques_count #多选题的数量
json.q_doubles_scores @exercise_double_ques_scores.round(1).to_s #多选题的总分
json.q_judges @exercise_ques_judge_count #判断题的数量
json.q_judges_scores @exercise_ques_judge_scores.round(1).to_s #判断题的分数
json.q_nulls @exercise_ques_null_count #填空题的数量
json.q_nulls_scores @exercise_ques_null_scores.round(1).to_s #填空题的分数
json.q_mains @exercise_ques_main_count #简答题
json.q_mains_scores @exercise_ques_main_scores.round(1).to_s
json.q_shixuns @exercise_ques_shixun_count #实训题
json.q_shixuns_scores @exercise_ques_shixun_scores.round(1).to_s
end