|
@@ -32,7 +32,7 @@
|
|
|
<div class="Cube">
|
|
|
<div class="Cube-list totalBack">
|
|
|
<div class="title">抄表成功率</div>
|
|
|
- <div class="number">{{ deftot.rate * 100 || 0 }}%</div>
|
|
|
+ <div class="number">{{ toFe(deftot.rate) }}%</div>
|
|
|
</div>
|
|
|
<div class="Cube-list normalBack">
|
|
|
<div class="title">应抄{{ mixins_query.categoryId == 1 ? '水' : '电' }}表总数</div>
|
|
@@ -140,6 +140,13 @@ export default {
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
+ toFe(val) {
|
|
|
+ if (!!val) {
|
|
|
+ return parseFloat((val * 100).toFixed(2));
|
|
|
+ } else {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ },
|
|
|
searchs() {
|
|
|
this.mixins_search();
|
|
|
this.getTo();
|