|
|
@ -16,27 +16,29 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix minH-280">
|
|
|
|
<div class="clearfix minH-280">
|
|
|
|
<table cellpadding="0" cellspacing="0" class="edu-txt-center edu-pop-table aroundRange">
|
|
|
|
<table class="edu-pop-table edu-txt-center hover-td" cellspacing="0" cellpadding="0">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th width="4%">序号</th>
|
|
|
|
<th>序号</th>
|
|
|
|
<th width="10%">姓名</th>
|
|
|
|
<th width="10%">姓名</th>
|
|
|
|
<th class="flex1">学号</th>
|
|
|
|
<% if User.current.admin || User.current.member_of_course?(@course) %>
|
|
|
|
<th width="7%">分班</th>
|
|
|
|
<th>学号</th>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<th>分班</th>
|
|
|
|
<% if @task.task_type == 2 %>
|
|
|
|
<% if @task.task_type == 2 %>
|
|
|
|
<th width="7%">分组</th>
|
|
|
|
<th>分组</th>
|
|
|
|
<% if @task.base_on_project %>
|
|
|
|
<% if @task.base_on_project %>
|
|
|
|
<th width="12%">关联项目</th>
|
|
|
|
<th>关联项目</th>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<th width="6%">提交状态</th>
|
|
|
|
<th>提交状态</th>
|
|
|
|
<th width="12%">更新时间</th>
|
|
|
|
<th>更新时间</th>
|
|
|
|
<th width="8%">教师评分</th>
|
|
|
|
<th>教师评分</th>
|
|
|
|
<% if @task.cross_comment %>
|
|
|
|
<% if @task.cross_comment %>
|
|
|
|
<th width="8%">交叉评分</th>
|
|
|
|
<th>交叉评分</th>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<th width="8%">最终成绩</th>
|
|
|
|
<th>最终成绩</th>
|
|
|
|
<th width="11%">操作</th>
|
|
|
|
<th>操作</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
@ -44,16 +46,20 @@
|
|
|
|
<% @works.each_with_index do |work, i| %>
|
|
|
|
<% @works.each_with_index do |work, i| %>
|
|
|
|
<% score_open = task_score_open || work.user == User.current %>
|
|
|
|
<% score_open = task_score_open || work.user == User.current %>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td width="4%"><%= (@page - 1) * @limit + i + 1 %></td>
|
|
|
|
<td><%= (@page - 1) * @limit + i + 1 %></td>
|
|
|
|
<td width="10%"><%= link_to work.user.show_real_name, user_path(work.user), :target => "_blank" %></td>
|
|
|
|
<td><%= link_to work.user.show_real_name, user_path(work.user), :target => "_blank" %></td>
|
|
|
|
<% student_id = work.user.user_extensions.nil? ? "--" : work.user.user_extensions.student_id %>
|
|
|
|
<% if User.current.admin || User.current.member_of_course?(@course) %>
|
|
|
|
<td class="task-hide flex1"><%= student_id %></td>
|
|
|
|
<% student_id = work.user.user_extensions.nil? ? "--" : work.user.user_extensions.student_id %>
|
|
|
|
|
|
|
|
<td class="task-hide"><%= student_id %></td>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% group_name = member_group_name @course.members, work.user_id %>
|
|
|
|
<% group_name = member_group_name @course.members, work.user_id %>
|
|
|
|
<td width="7%" class="task-hide" title="<%= group_name %>"><%= group_name %></td>
|
|
|
|
<td title="<%= group_name %>">
|
|
|
|
|
|
|
|
<span class="task-hide" style="display: block;max-width: 120px;"><%= group_name %></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<% if @task.task_type == 2 %>
|
|
|
|
<% if @task.task_type == 2 %>
|
|
|
|
<td width="7%" class="task-hide"><%= work.group_id == 0 ? '--' : '分组'+work.group_id.to_s %></td>
|
|
|
|
<td class="task-hide"><%= work.group_id == 0 ? '--' : '分组'+work.group_id.to_s %></td>
|
|
|
|
<% if @task.base_on_project %>
|
|
|
|
<% if @task.base_on_project %>
|
|
|
|
<td width="12%" class="student_score_info edu-position">
|
|
|
|
<td class="student_score_info edu-position">
|
|
|
|
<% if work.project %>
|
|
|
|
<% if work.project %>
|
|
|
|
<% project = work.project %>
|
|
|
|
<% project = work.project %>
|
|
|
|
<% if project.status != 9 && (project.is_public || User.current.member_of?(project) || @is_teacher) %>
|
|
|
|
<% if project.status != 9 && (project.is_public || User.current.member_of?(project) || @is_teacher) %>
|
|
|
@ -85,18 +91,18 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<td width="6%"><%= (ex_poll_work_status work.work_status).html_safe %></td>
|
|
|
|
<td><%= (ex_poll_work_status work.work_status).html_safe %></td>
|
|
|
|
<td width="12%" class="color-grey-9"><%= work.work_status == 0 ? '--' : format_time(work.update_time) %></td>
|
|
|
|
<td class="color-grey-9"><%= work.work_status == 0 ? '--' : format_time(work.update_time) %></td>
|
|
|
|
<td width="8%" class="<%= score_color (!score_open || work.teacher_score.nil? ? nil : work.teacher_score)%>">
|
|
|
|
<td class="<%= score_color (!score_open || work.teacher_score.nil? ? nil : work.teacher_score)%>">
|
|
|
|
<%= work.work_status == 0 ? '--' : (work.teacher_score.nil? ? "未批阅" : (!score_open ? "**" : format("%.1f", work.teacher_score.round(1)))) %>
|
|
|
|
<%= work.work_status == 0 ? '--' : (work.teacher_score.nil? ? "未批阅" : (!score_open ? "**" : format("%.1f", work.teacher_score.round(1)))) %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<% if @task.cross_comment %>
|
|
|
|
<% if @task.cross_comment %>
|
|
|
|
<td width="8%" class="<%= score_color (!score_open || work.cross_score.nil? ? nil : work.cross_score)%>">
|
|
|
|
<td class="<%= score_color (!score_open || work.cross_score.nil? ? nil : work.cross_score)%>">
|
|
|
|
<%= work.work_status == 0 ? '--' : (work.cross_score.nil? ? "未批阅" : (!score_open ? "**" : (format("%.1f", work.cross_score.round(1)) + "(#{work.graduation_work_scores.where(:reviewer_role => 2).group_by(&:user_id).count})"))) %>
|
|
|
|
<%= work.work_status == 0 ? '--' : (work.cross_score.nil? ? "未批阅" : (!score_open ? "**" : (format("%.1f", work.cross_score.round(1)) + "(#{work.graduation_work_scores.where(:reviewer_role => 2).group_by(&:user_id).count})"))) %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% score = work.work_score %>
|
|
|
|
<% score = work.work_score %>
|
|
|
|
<td width="8%" class="<%= score_color (!score_open || score.nil? ? nil : score)%> edu-position">
|
|
|
|
<td class="<%= score_color (!score_open || score.nil? ? nil : score)%> edu-position">
|
|
|
|
<%= score.nil? ? "--" : (!score_open ? "**" : format("%.1f",score<0 ? 0 : score.round(1)))%>
|
|
|
|
<%= score.nil? ? "--" : (!score_open ? "**" : format("%.1f",score<0 ? 0 : score.round(1)))%>
|
|
|
|
<% if score.present? %>
|
|
|
|
<% if score.present? %>
|
|
|
|
<div class="popup_tip_box-black" style="left: 65px;">
|
|
|
|
<div class="popup_tip_box-black" style="left: 65px;">
|
|
|
@ -110,7 +116,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td width="11%">
|
|
|
|
<td>
|
|
|
|
<% if @is_teacher && @task.cross_comment && @task.comment_status == 2 %>
|
|
|
|
<% if @is_teacher && @task.cross_comment && @task.comment_status == 2 %>
|
|
|
|
<a href="<%= assign_teacher_graduation_work_path(work) %>" data-remote="true" class="color-blue ml5 mr5 allotTeacher">分配</a>
|
|
|
|
<a href="<%= assign_teacher_graduation_work_path(work) %>" data-remote="true" class="color-blue ml5 mr5 allotTeacher">分配</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|