|
|
|
@ -1290,8 +1290,14 @@ class ExercisesController < ApplicationController
|
|
|
|
|
if params[:export].present? && params[:export]
|
|
|
|
|
normal_status(0,"正在下载中")
|
|
|
|
|
else
|
|
|
|
|
set_export_cookies
|
|
|
|
|
render pdf: 'exercise_export/blank_exercise', filename: filename_, stylesheets: stylesheets, disposition: 'inline', type:"pdf_attachment.content_type"
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
set_export_cookies
|
|
|
|
|
format.pdf do
|
|
|
|
|
render pdf: 'exercise_export/blank_exercise', filename: filename_, stylesheets: stylesheets, disposition: 'inline', type:"pdf_attachment.content_type",stream:false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
# set_export_cookies
|
|
|
|
|
# render pdf: 'exercise_export/blank_exercise', filename: filename_, stylesheets: stylesheets, disposition: 'inline', type:"pdf_attachment.content_type",stream:false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|