1
0
Prechádzať zdrojové kódy

修复回评标记卷问题

ting.yin 5 rokov pred
rodič
commit
e7bdb230bb

+ 1 - 0
stmms-web/src/main/webapp/static/mark-new/js/mark-control.js

@@ -582,6 +582,7 @@ MarkControl.prototype.submitTask = function(submitUrl) {
                 trackList: [],
                 tagList: task.tagList,
                 markId:task.markId,
+                tags: task.tags,
                 spent: new Date().getTime() - task.spent
             }
         this.trigger('task.submit.before');

+ 8 - 2
stmms-web/src/main/webapp/static/mark-new/js/modules/mark-history.js

@@ -85,7 +85,7 @@ function MarkHistory(option) {
     this.markControl.on('history.submit.success', this, function(event, context, task) {
     	if(task.previous==true){
     		alert('回评成功');
-    		this.updateTaskScore(task.totalScore);
+    		this.updateTaskScore(task.totalScore,task.tags);
     	}
     });
 }
@@ -276,10 +276,15 @@ MarkHistory.prototype.onTaskSelect = function(index) {
     }
 }
 
-MarkHistory.prototype.updateTaskScore = function(score) {
+MarkHistory.prototype.updateTaskScore = function(score,tags) {
 	this.container.list.find('tr').each(function(index, obj) {
         if ($(obj).hasClass("active")) {
         	$(obj).find('td').last().html(score);
+        	if(tags!=undefined && tags!=null ){
+        		$(obj).find('.history-secret-number').addClass('tips');
+            }else{
+            	$(obj).find('.history-secret-number').removeClass('tips');
+            }
         }
     });
 }
@@ -300,6 +305,7 @@ MarkHistory.prototype.paginator_dom = '<div class="c-page">\
 MarkHistory.prototype.history_search_dom = '<div class="c-scbar cl">\
 <table id="history-search" cellpadding="0" cellspacing="0" width="100%">\
 <tr><td class="sc"><span><input type="text" placeholder="查找试卷" id="studentId-in" maxlength="10"/><em id="studentId-search"></em></span></td>\
+<td width="70px"><input type="checkbox" id="history-isTag"><em>标记卷</em></td>\
 </tr></table></div>';
 
 MarkHistory.prototype.history_list_dom = '<div class="sublist"><div class="c-table">\

+ 1 - 0
stmms-web/src/main/webapp/static/mark-track/js/mark-control.js

@@ -598,6 +598,7 @@ MarkControl.prototype.submitTask = function(submitUrl) {
                 trackList: [],
                 tagList: task.tagList,
                 markId:task.markId,
+                tags: task.tags,
                 spent: new Date().getTime() - task.spent
             }
         this.trigger('task.submit.before');