|
|
|
@ -1221,7 +1221,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
@user_activity_level = []
|
|
|
|
|
course_user_level = []
|
|
|
|
|
course_activity_title = "课堂活跃度统计"
|
|
|
|
|
user_cell_head = %w(排名 真实姓名 登录名 邮箱 学号 分班 作业完成数(*10) 试卷完成数(*10) 问卷完成数(*7) 资源发布数(*5) 帖子发布数(*2) 帖子回复数(*1) 作业回复数(*1) 活跃度)
|
|
|
|
|
user_cell_head = %w(排名 真实姓名 登录名 邮箱 学号 学校 分班 作业完成数(*10) 试卷完成数(*10) 问卷完成数(*7) 资源发布数(*5) 帖子发布数(*2) 帖子回复数(*1) 作业回复数(*1) 活跃度)
|
|
|
|
|
all_members.each do |u|
|
|
|
|
|
#用户的基本信息
|
|
|
|
|
user = u.user
|
|
|
|
@ -1229,8 +1229,9 @@ class CoursesController < ApplicationController
|
|
|
|
|
user_name = user.real_name
|
|
|
|
|
user_mail = user.mail
|
|
|
|
|
user_stu_id = u.student_id.present? ? (u.student_id.to_s + "\t") : "--"
|
|
|
|
|
user_school = user.school_name
|
|
|
|
|
user_course_group = u.course_group_name
|
|
|
|
|
user_info_array = [user_login,user_name,user_mail,user_stu_id,user_course_group] #用户的信息集合
|
|
|
|
|
user_info_array = [user_login,user_name,user_mail,user_stu_id,user_school,user_course_group] #用户的信息集合
|
|
|
|
|
user_work_scores = []
|
|
|
|
|
|
|
|
|
|
#课堂活跃度统计
|
|
|
|
@ -1254,15 +1255,16 @@ class CoursesController < ApplicationController
|
|
|
|
|
u_2: user_login,
|
|
|
|
|
u_2_1: user_mail,
|
|
|
|
|
u_3: user_stu_id,
|
|
|
|
|
u_4: user_course_group,
|
|
|
|
|
u_5: c_works_num,
|
|
|
|
|
u_6: c_exercise_num,
|
|
|
|
|
u_7: c_poll_num,
|
|
|
|
|
u_8: c_file_num,
|
|
|
|
|
u_9: c_message_num,
|
|
|
|
|
u_10: c_reply_num,
|
|
|
|
|
u_11: user_work_reply_num,
|
|
|
|
|
u_12: user_activity_levels
|
|
|
|
|
u_4: user_school,
|
|
|
|
|
u_5: user_course_group,
|
|
|
|
|
u_6: c_works_num,
|
|
|
|
|
u_7: c_exercise_num,
|
|
|
|
|
u_8: c_poll_num,
|
|
|
|
|
u_9: c_file_num,
|
|
|
|
|
u_10: c_message_num,
|
|
|
|
|
u_11: c_reply_num,
|
|
|
|
|
u_12: user_work_reply_num,
|
|
|
|
|
u_13: user_activity_levels
|
|
|
|
|
}
|
|
|
|
|
course_user_level.push(user_ac_level)
|
|
|
|
|
|
|
|
|
@ -1372,7 +1374,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
course_user_score_title = "学生总成绩"
|
|
|
|
|
score_title_cells = shixun_titles + common_titles + group_titles + task_titles + exercise_titles
|
|
|
|
|
score_title_counts = [shixun_titles.count,common_titles.count,group_titles.count,task_titles.count,exercise_titles.count]
|
|
|
|
|
score_cell_head = %w(序号 真实姓名 登录名 邮箱 学号 分班) + score_title_cells + ["个人总成绩"]
|
|
|
|
|
score_cell_head = %w(序号 真实姓名 登录名 邮箱 学号 学校 分班) + score_title_cells + ["个人总成绩"]
|
|
|
|
|
@course_user_scores = [course_user_score_title,score_cell_head,score_title_counts,total_user_score_array]
|
|
|
|
|
|
|
|
|
|
#作业的全部集合
|
|
|
|
|