ソースを参照

优化评卷状态栏,正在加载时不显示考生信息

luoshi 6 年 前
コミット
e4ea04bc5b

+ 4 - 2
stmms-web/src/main/webapp/static/mark-new/js/modules/mark-status.js

@@ -10,6 +10,8 @@ function MarkStatus(option) {
     this.init(option);
     this.markControl.on('task.get.before', this, function(event, context, statusInfo) {
         this.topStatus.find('#stage-name').html('正在加载');
+        this.studentTitle.hide();
+        this.objectiveArea.hide();
     });
     this.markControl.on('task.get.success', this, function(event, context, eventObject) {
         var task = context.task;
@@ -122,8 +124,8 @@ MarkStatus.prototype.render = function(status) {
 MarkStatus.prototype.status_dom = '<p class="text">\
 <i id="subject-title" style="cursor:pointer"><em id="subject-name"></em></i>\
 <i id="stage-name"></i>\
-<i id="student-title">考生编号<em id="student-number"></em></i>\
-<i id="objective-area">客观得分<em id="objective-score"></em></i>\
+<i id="student-title" style="display:none">考生编号<em id="student-number"></em></i>\
+<i id="objective-area" style="display:none">客观得分<em id="objective-score"></em></i>\
 <i>评卷数<em id="mark-count"></em></i>\
 </p>';
 

+ 4 - 2
stmms-web/src/main/webapp/static/mark-track/js/modules/mark-status.js

@@ -10,6 +10,8 @@ function MarkStatus(option) {
     this.init(option);
     this.markControl.on('task.get.before', this, function(event, context, statusInfo) {
         this.topStatus.find('#stage-name').html('正在加载');
+        this.studentTitle.hide();
+        this.objectiveArea.hide();
     });
     this.markControl.on('task.get.success', this, function(event, context, eventObject) {
         var task = context.task;
@@ -122,8 +124,8 @@ MarkStatus.prototype.render = function(status) {
 MarkStatus.prototype.status_dom = '<p class="text">\
 <i id="subject-title" style="cursor:pointer"><em id="subject-name"></em></i>\
 <i id="stage-name"></i>\
-<i id="student-title">考生编号<em id="student-number"></em></i>\
-<i id="objective-area">客观得分<em id="objective-score"></em></i>\
+<i id="student-title" style="display:none">考生编号<em id="student-number"></em></i>\
+<i id="objective-area" style="display:none">客观得分<em id="objective-score"></em></i>\
 <i>评卷数<em id="mark-count"></em></i>\
 </p>';