【课堂】学生的成绩导出,增加邮箱信息的导出

dev_ec
daiao 6 years ago
parent fa2cc5b867
commit 9bb4442121

@ -2394,9 +2394,10 @@ class CoursesController < ApplicationController
sheet1[4,0] = "排名"
sheet1[4,1] = "学生姓名"
sheet1[4,2] = "昵称"
sheet1[4,3] = "学号"
sheet1[4,4] = "分班"
current_col = 4
sheet1[4,3] = "邮箱"
sheet1[4,4] = "学号"
sheet1[4,5] = "分班"
current_col = 5
homeworks.where(:homework_type => 4).each do |homework|
sheet1[4,current_col+=1] = "#{homework.name}"
end
@ -2428,6 +2429,7 @@ class CoursesController < ApplicationController
sheet1[count_row,column]= i+1
sheet1[count_row,column+=1] = member.user.show_real_name
sheet1[count_row,column+=1] = member.user.login
sheet1[count_row,column+=1] = member.user.mail
sheet1[count_row,column+=1] = member.user.user_extensions.student_id
sheet1[count_row,column+=1] = member.course_group_id == 0 ? "暂无" : member.course_group.name
# current_col = 5

@ -86,7 +86,7 @@
<% if @current_myshixun %>
<% current_game = challenge.games.where(:user_id => User.current).first %>
<% case current_game.try(:status) %>
<% when 0, 1 %>
<% when 0, 1 %>
<% if @current_modify %>
<a href='javascript:void(0)' class="edu-default-btn edu-blueback-btn fr" onclick="begin_sXun('<%= @current_myshixun.try(:id) %>')">直接挑战</a>
<% else %>

Loading…
Cancel
Save