diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index fb68f23bf..50e349bab 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1085,11 +1085,15 @@ class CoursesController < ApplicationController # 导出课堂信息 def export_couser_info - set_export_cookies - course_info_to_xlsx @course - filename_ = "#{current_user.real_name}_#{@course.name}_课堂信息_#{Time.now.strftime('%Y%m%d_%H%M%S')}" - render xlsx: "#{format_sheet_name filename_.strip}",template: "courses/export_course_info.xlsx.axlsx", - locals: {course_info: @course_info} + if params[:export].present? && params[:export] + normal_status(0,"正在下载中") + else + set_export_cookies + course_info_to_xlsx @course + filename_ = "#{current_user.real_name}_#{@course.name}_课堂信息_#{Time.now.strftime('%Y%m%d_%H%M%S')}" + render xlsx: "#{format_sheet_name filename_.strip}",template: "courses/export_course_info.xlsx.axlsx", + locals: {course_info: @course_info} + end end # 导出活跃度 diff --git a/app/controllers/exercise_questions_controller.rb b/app/controllers/exercise_questions_controller.rb index 8c3a04f61..57116a9e5 100644 --- a/app/controllers/exercise_questions_controller.rb +++ b/app/controllers/exercise_questions_controller.rb @@ -280,11 +280,12 @@ class ExerciseQuestionsController < ApplicationController if null_choice_text_count >= ex_answer_pre_count new_add_choice = null_choice_text_count_array - ex_answer_pre_count_array ex_answer_pre_count_array.each do |n| - standard_option = { - :exercise_question_id => @exercise_question.id, - :exercise_choice_id => null_choice_id, - :answer_text => null_choice_text[n-1] + @hash_symbol_null_ = { + :exercise_question_id => @exercise_question.id, + :exercise_choice_id => null_choice_id, + :answer_text => null_choice_text[n - 1] } + standard_option = @hash_symbol_null_ ex_answer_pre[n-1].update(standard_option) end if new_add_choice.count > 0 #表示有新增的 diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index 1565f5abb..0e2cd7a86 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -493,7 +493,8 @@ class Fileslists extends Component{ let selectpagetype=selectpage===page?true:false this.setState({ page:page, - checkAllValue:selectpagetype + checkAllValue:selectpagetype, + checkBoxValues:[] }) let{pagesize,tagname,searchValue,sort,sorttype,coursesecondcategoryid}=this.state; @@ -801,7 +802,7 @@ class Fileslists extends Component{ {this.props.isAdmin()? files===undefined?'' :files.length===0? "":
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
-
目前该实训项目尚在内测中,将于{shixunsmessage}之后开放,谢谢!
本实训的开启时间:{this.state.shixunsmessages}
开启时间之前不能挑战
目前该实训项目尚在内测中,将于{this.state.shixunsmessages}之后开放,谢谢!
本实训的开启时间:{this.state.shixunsmessage}
开启时间之前不能挑战
目前该实训项目尚在内测中,将于{this.state.shixunsmessage}之后开放,谢谢!
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
-
目前该实训项目尚在内测中,将于{shixunsmessage}之后开放,谢谢!
本实训的开启时间:{this.state.shixunsmessage}
开启时间之前不能挑战
目前该实训项目尚在内测中,将于{this.state.shixunsmessage}之后开放,谢谢!
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
-
目前该实训项目尚在内测中,将于{shixunsmessage}之后开放,谢谢!
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
目前该实训项目尚在内测中,将于{shixunsmessage}之后开放,谢谢!