#撤销screen电量百分比,还原成具体数据,由接口统一处理
This commit is contained in:
parent
53c83abfbf
commit
26a9311bb2
|
@ -41,7 +41,7 @@
|
|||
</span>
|
||||
</li>
|
||||
<li class="signal">Signal: <span>{{lastItem.signal}}/31</span></li>
|
||||
<li>Power: <span>{{powerPrecentages}}%</span></li>
|
||||
<li>Power: <span>{{lastItem.energy}}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -73,11 +73,6 @@ export default {
|
|||
const count = this.lastItem.count
|
||||
const qty = 'Qty.' + ' '.repeat(10 - count.length) + '00' + count
|
||||
return qty.split('')
|
||||
},
|
||||
powerPrecentages() {
|
||||
const powerMin = 3000
|
||||
const powerMax = 4950
|
||||
return parseFloat((this.lastItem.energy - powerMin) / (powerMax - powerMin) * 100).toFixed(1)
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue