Browse Source

修复轨迹模式下回评全零分给分板问题

ting.yin 5 years ago
parent
commit
7c28c58eaf

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

@@ -22,6 +22,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();
     });
@@ -438,6 +441,10 @@ MarkBoard.prototype.allZeroSubmit = function() {
 			    positionY: 0
 			});
 		}
+		for (var i in this.task.markStepList) {
+        	this.task.markStepList[i].markScore = 0;
+        	this.task.markStepList[i].trackList = [];
+        }
 		this.onTaskSubmit();
 	}
 }