diff --git a/app/views/homework_commons/_student_btn_check.json.jbuilder b/app/views/homework_commons/_student_btn_check.json.jbuilder index 7b34622fa..c3cca6b48 100644 --- a/app/views/homework_commons/_student_btn_check.json.jbuilder +++ b/app/views/homework_commons/_student_btn_check.json.jbuilder @@ -5,6 +5,8 @@ if identity == Course::STUDENT json.task_operation task_operation_url(myshixun, shixun) json.view_report work.work_status > 0 json.commit_des commit_des_status(work, homework) + json.redo_work (homework.end_or_late ? false : student_redo_work(work, homework)) + json.myshixun_identifier myshixun&.identifier else json.work_statuses student_work_status(homework, work.user_id, homework.course, work) end diff --git a/app/views/homework_commons/works_list.json.jbuilder b/app/views/homework_commons/works_list.json.jbuilder index 09a7cbcc5..08c269670 100644 --- a/app/views/homework_commons/works_list.json.jbuilder +++ b/app/views/homework_commons/works_list.json.jbuilder @@ -40,8 +40,6 @@ elsif @user_course_identity == Course::STUDENT json.efficiency work_score_format(@work.efficiency, true, @score_open) json.eff_score work_score_format(@work.eff_score, true, @score_open) json.complete_count @work.myshixun.try(:passed_count) - json.redo_work (@homework.end_or_late ? false : student_redo_work(@work, @homework)) - json.myshixun_identifier @work.myshixun&.identifier else json.(@work, :id, :work_status, :update_time, :ultimate_score) diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 6e52cd279..76e0a7b7c 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -683,7 +683,7 @@ class studentsList extends Component{ {isAdmin &&
  • 删除
  • } {isAdmin &&
  • 移动到... -