|
|
|
@ -78,7 +78,6 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
shixun_score += shixun_score_array.sum
|
|
|
|
|
shixun_score_array.push(shixun_score) #shixun_score_array的最后一行为总分
|
|
|
|
|
user_work_scores += user_info_array + shixun_score_array #单个用户的实训作业得分信息
|
|
|
|
|
|
|
|
|
|
#普通作业
|
|
|
|
|
if common_homeworks.size > 0
|
|
|
|
@ -94,7 +93,6 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
common_score += common_score_array.sum
|
|
|
|
|
common_score_array.push(common_score) #shixun_score_array的最后一行为总分
|
|
|
|
|
user_work_scores += common_score_array #单个用户的普通作业得分信息
|
|
|
|
|
|
|
|
|
|
#分组作业
|
|
|
|
|
if group_homeworks.size > 0
|
|
|
|
@ -110,7 +108,6 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
group_score += group_score_array.sum
|
|
|
|
|
group_score_array.push(group_score) #shixun_score_array的最后一行为总分
|
|
|
|
|
user_work_scores += group_score_array #单个用户的分组作业得分信息
|
|
|
|
|
|
|
|
|
|
#毕设作业
|
|
|
|
|
if tasks.size > 0
|
|
|
|
@ -126,7 +123,6 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
task_score += task_score_array.sum
|
|
|
|
|
task_score_array.push(task_score)
|
|
|
|
|
user_work_scores += task_score_array #单个用户的分组作业得分信息
|
|
|
|
|
|
|
|
|
|
#试卷
|
|
|
|
|
if exercises.size > 0
|
|
|
|
@ -143,9 +139,9 @@ module ExportHelper
|
|
|
|
|
exercise_score += exercise_score_array.sum
|
|
|
|
|
exercise_score_array.push(exercise_score)
|
|
|
|
|
|
|
|
|
|
user_work_scores += exercise_score_array #单个用户的分组作业得分信息
|
|
|
|
|
total_user_scores = shixun_score + common_score + group_score + task_score + exercise_score
|
|
|
|
|
user_info_array.push(total_user_scores) #个人的行内容添加总成绩
|
|
|
|
|
user_work_scores += user_info_array + shixun_score_array + common_score_array + group_score_array + task_score_array + exercise_score_array
|
|
|
|
|
total_user_score_array.push(user_work_scores) # 全部成员的集合
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|