Browse Source

修复回评全零分后停留在当前任务的给分板分数问题

ting.yin 5 years ago
parent
commit
b847dcb870

+ 6 - 0
stmms-web/src/main/webapp/static/mark-new/js/modules/mark-board.js

@@ -24,6 +24,9 @@ function MarkBoard(option) {
     this.markControl.on('task.load.finish', this, function(event, context, eventObject) {
         this.initByTask(context.task);
     });
+    this.markControl.on('history.submit.success', this, function(event, context, eventObject) {
+        this.initByTask(context.task);
+    });
     this.markControl.on('mark.focus.change', this, function(event, context, eventObject) {
         this.onFocusChange();
     });
@@ -410,6 +413,9 @@ MarkBoard.prototype.allZeroSubmit = function() {
         for (var i in this.stepList) {
             this.stepList[i].markScore = 0;
         }
+        for (var i in this.task.markStepList) {
+        	this.task.markStepList[i].markScore = 0;
+        }
         this.onTaskSubmit();
     }
 }