From 4c2d6782538d0e102cdf1cb5600fe17289662a5f Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 8 May 2019 12:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercise_controller.rb | 2 +- app/views/exercise/_edit_MC.html.erb | 2 +- app/views/exercise/_edit_MCQ.html.erb | 2 +- app/views/exercise/_edit_multi.html.erb | 2 +- app/views/exercise/_edit_shixun.html.erb | 2 +- app/views/exercise/_edit_single.html.erb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb index 7a4f91fa..23024a78 100644 --- a/app/controllers/exercise_controller.rb +++ b/app/controllers/exercise_controller.rb @@ -448,7 +448,7 @@ class ExerciseController < ApplicationController def update_exercise_question @exercise_question = ExerciseQuestion.find params[:exercise_question] @exercise_question.question_title = params[:question_title].nil? || params[:question_title].empty? ? l(:label_enter_single_title) : params[:question_title] - @exercise_question.question_score = params[:question_score] + @exercise_question.question_score = params[:question_score] if @exercise_question.question_type != 5 # 处理选项:如果选了某个选项,那么则要删除之前的选项 if params[:question_answer] @exercise_question.exercise_choices.each do |answer| diff --git a/app/views/exercise/_edit_MC.html.erb b/app/views/exercise/_edit_MC.html.erb index cb74fa20..a78d5661 100644 --- a/app/views/exercise/_edit_MC.html.erb +++ b/app/views/exercise/_edit_MC.html.erb @@ -51,7 +51,7 @@
  • - +

    温馨提示:[单选题]属于客观题将由系统自动评分,请设置标准答案 diff --git a/app/views/exercise/_edit_MCQ.html.erb b/app/views/exercise/_edit_MCQ.html.erb index 1939ce13..3d41ca10 100644 --- a/app/views/exercise/_edit_MCQ.html.erb +++ b/app/views/exercise/_edit_MCQ.html.erb @@ -56,7 +56,7 @@

  • - +

    温馨提示:[多选题]属于客观题将由系统自动评分,请设置标准答案 diff --git a/app/views/exercise/_edit_multi.html.erb b/app/views/exercise/_edit_multi.html.erb index 9f2b16e0..69691b61 100644 --- a/app/views/exercise/_edit_multi.html.erb +++ b/app/views/exercise/_edit_multi.html.erb @@ -23,7 +23,7 @@

  • - +

    温馨提示:[简答题]属于主观题需要人工评分,未作答的情况下系统将自动评分 diff --git a/app/views/exercise/_edit_shixun.html.erb b/app/views/exercise/_edit_shixun.html.erb index 4d60a41c..b7caa087 100644 --- a/app/views/exercise/_edit_shixun.html.erb +++ b/app/views/exercise/_edit_shixun.html.erb @@ -18,7 +18,7 @@ <%= index + 1 %> <%= exercise_challenge.challenge.subject %> - +

  • diff --git a/app/views/exercise/_edit_single.html.erb b/app/views/exercise/_edit_single.html.erb index 91037d46..4adc14f1 100644 --- a/app/views/exercise/_edit_single.html.erb +++ b/app/views/exercise/_edit_single.html.erb @@ -46,7 +46,7 @@
  • - +

    温馨提示:[填空题]属于客观题将由系统自动评分,请设置标准答案