刘翔宇-旅管家 3 years ago
parent 2fb0b76aaa
commit 35c9217b8a

@ -32,7 +32,7 @@ background: linear-gradient(to right, #ED8F03, #FFB75E); /* W3C, IE 10+/ Edge, F
<div class="card-panel-text"> <div class="card-panel-text">
<p>总人数{{totaldata.visit_enter.total}}</p> <p>总人数{{totaldata.visit_enter.total}}</p>
<p> {{totaldata.visit_enter.today}}</p> <p> {{totaldata.visit_enter.today}}</p>
<p>核销比{{totaldata.visit_enter.per}}</p> <p>当日核销比{{totaldata.visit_enter.per}}</p>
</div> </div>
<!-- <count-to :start-val="0" :end-val="countsData.client_count" :duration="3000" class="card-panel-num" /> --> <!-- <count-to :start-val="0" :end-val="countsData.client_count" :duration="3000" class="card-panel-num" /> -->
</div> </div>

@ -165,7 +165,7 @@
load() { load() {
// this.showData = true; // this.showData = true;
totalRpt().then(res => { totalRpt().then(res => {
res.visit_enter.per = ((res.visit_enter.total / (res.visit_total.total == 0 ? 1 : res.visit_total.total)) * 100).toFixed(2) + "%" res.visit_enter.per = ((res.visit_enter.today / (res.visit_total.today == 0 ? 1 : res.visit_total.today)) * 100).toFixed(2) + "%"
this.totaldata = res; this.totaldata = res;
}) })

Loading…
Cancel
Save