ソースを参照

随机题目的简答题得分,优化

lizhen_gitee 7 ヶ月 前
コミット
fab86b890c
1 ファイル変更5 行追加2 行削除
  1. 5 2
      application/admin/view/exam/grade/detail.html

+ 5 - 2
application/admin/view/exam/grade/detail.html

@@ -257,7 +257,7 @@
                                 return score;
                             }
                         } else if (question.kind === 'SHORT') {
-                            let score = 0;
+                            /*let score = 0;
                             if (this.row.user_answers && this.row.user_answers[questionIndex]) {
 
                                 if (this.row.user_answers[questionIndex].answer_score) {
@@ -268,7 +268,10 @@
                                 }
                               // return this.row.user_answers[questionIndex].answer.join(',');
                             }
-                            return score;
+                            return score;*/
+                            if (this.row.user_answers[questionIndex].is_right) {
+                                return score;
+                            }
                         } else {
                             if (this.row.user_answers[questionIndex].answer === question.answer) {
                                 return score;