fix: totalFlow

This commit is contained in:
100011797 2023-07-24 18:09:49 +08:00
parent 8d874e27a6
commit e65a7c4c6d
1 changed files with 5 additions and 5 deletions

View File

@ -193,11 +193,11 @@
<div class="progress-text"> <div class="progress-text">
<div> <div>
{{ {{
( slotProps.totalFlow ? (
(slotProps.usedFlow / (slotProps.usedFlow /
slotProps.totalFlow) * slotProps.totalFlow) *
100 100
).toFixed(2) ).toFixed(2) : '0.00'
}} }}
% %
</div> </div>
@ -209,9 +209,9 @@
:strokeColor="'#ADC6FF'" :strokeColor="'#ADC6FF'"
:showInfo="false" :showInfo="false"
:percent=" :percent="
(slotProps.usedFlow / slotProps.totalFlow ? (slotProps.usedFlow /
slotProps.totalFlow) * slotProps.totalFlow) *
100 100 : 0
" "
/> />
</div> </div>