|
@@ -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">\
|