|
@@ -94,19 +94,19 @@ MarkStatus.prototype.render = function(status) {
|
|
|
var markedCount = status.markedCount;
|
|
|
var exceptionCount = status.exceptionCount;
|
|
|
var personCount = status.personCount;
|
|
|
- var leftCount = leftCount;
|
|
|
+ var leftCount = status.leftCount;
|
|
|
var markedPercent = totalCount > 0 ? new Number((totalCount - leftCount) * 100 / totalCount).toFixed(0) : '0';
|
|
|
if (markedPercent == '100' && leftCount > 0) {
|
|
|
markedPercent = '99';
|
|
|
} else if (markedPercent == '0' && markedCount > 0) {
|
|
|
markedPercent = '1';
|
|
|
}
|
|
|
- if(topCount > 0){
|
|
|
- if(this.blockProgress.find('#top-count').length == 0) {
|
|
|
- this.blockProgress.find('#todo-count').after('<i>任务数<em id="top-count"></em></i>');
|
|
|
- this.blockProgress.find('#top-count').html(topCount);
|
|
|
- }
|
|
|
- }
|
|
|
+ if(topCount > 0){
|
|
|
+ if(this.blockProgress.find('#top-count').length == 0){
|
|
|
+ this.blockProgress.find('#todo-count').after('<i>任务数<em id="top-count"></em></i>');
|
|
|
+ this.blockProgress.find('#top-count').html(topCount);
|
|
|
+ }
|
|
|
+ }
|
|
|
this.blockProgress.find('#total-count').html(totalCount);
|
|
|
this.blockProgress.find('#marked-count').html(markedCount);
|
|
|
this.blockProgress.find('#person-count').html(personCount);
|