|
|
@ -196,7 +196,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
if params[:format] == "xlsx"
|
|
|
|
if params[:format] == "xlsx"
|
|
|
|
if @user_course_identity >= Course::STUDENT
|
|
|
|
if @user_course_identity >= Course::STUDENT
|
|
|
|
tip_exception(403, "无权限操作")
|
|
|
|
tip_exception(403, "无权限操作")
|
|
|
|
elsif @work_excel.size == 0
|
|
|
|
elsif @work_excel.blank? || @work_excel.size == 0
|
|
|
|
normal_status(-1,"暂无用户提交!")
|
|
|
|
normal_status(-1,"暂无用户提交!")
|
|
|
|
else
|
|
|
|
else
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|