1
0
Pārlūkot izejas kodu

修复间隔必须大于0.1和给分板相加问题

ting.yin 4 gadi atpakaļ
vecāks
revīzija
087b6fc1a6

+ 1 - 1
stmms-web/src/main/java/cn/com/qmth/stmms/admin/dto/SubjectiveQuestionDTO.java

@@ -87,7 +87,7 @@ public class SubjectiveQuestionDTO implements QuestionDTO {
         question.setGroupNumber(groupNumber);
         question.setObjective(false);
         question.setTotalScore(totalScore);
-        question.setIntervalScore(intervalScore != null && intervalScore > 0 ? intervalScore : 1d);
+        question.setIntervalScore(intervalScore != null && intervalScore >= 0.1 ? intervalScore : 1d);
         question.setPicList(picList);
         question.setDoubleRate(doubleRate);
         question.setArbitrateThreshold(arbitrateThreshold);

+ 1 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/groupEditSimple.jsp

@@ -158,7 +158,7 @@
         var fill = true;
         $('.interval-score-input').each(function () {
             var score = $(this).val();
-            if (score == '' || score<=0) {
+            if (score == '' || score<0.1) {
                 fill = false;
             } else {
                 array.push(score);

+ 1 - 1
stmms-web/src/main/webapp/static/mark-track/js/modules/mark-board.js

@@ -438,7 +438,7 @@ MarkBoard.prototype.updateTotalScore = function () {
                 if (totalScore == '') {
                     totalScore = 0;
                 }
-                totalScore += this.stepList[i].markScore;
+                totalScore = numberAdd(totalScore,this.stepList[i].markScore);
             } else {
                 finish = false;
             }