|
|
@@ -582,10 +582,10 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
tofixed2(time){ |
|
|
|
if(time){ |
|
|
|
tofixed2(time) { |
|
|
|
if (time) { |
|
|
|
return time.toFixed(2) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
}, |
|
|
@@ -712,7 +712,7 @@ |
|
|
|
...res.zkMessage, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.weekObj.level1List && this.weekObj.level2List) { |
|
|
|
if (this.weekObj.level1List[0] && this.weekObj.level1List[0].total) { |
|
|
|
let max1 = this.weekObj.level1List[0].total || 1 |
|
|
@@ -724,10 +724,10 @@ |
|
|
|
item.percent = 0 |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.weekObj.level2List[0] && this.weekObj.level2List[0].total) { |
|
|
|
let max2 = this.weekObj.level2List[0].total || 1 |
|
|
|
|
|
|
|
|
|
|
|
this.weekObj.level2List.forEach(item => { |
|
|
|
item.percent = Math.floor((item.total / max2) * 100) |
|
|
|
}) |
|
|
|