Commit f02f0895 by 姜雷

Merge branch 'develop' into 'test'

修改数据首页的数据保留小数 See merge request !75
parents 91953842 1d34e885
...@@ -46,6 +46,9 @@ export default { ...@@ -46,6 +46,9 @@ export default {
.color('serviceName', ['#4e82fb', '#fb774e', '#ffc934', '#41bf52']) .color('serviceName', ['#4e82fb', '#fb774e', '#ffc934', '#41bf52'])
.label('payableMoney', { .label('payableMoney', {
offset: 10, offset: 10,
formatter: val => {
return this.$formatPrice(Number(val));
},
}); });
this.chart.render(); this.chart.render();
...@@ -64,7 +67,7 @@ export default { ...@@ -64,7 +67,7 @@ export default {
if (this.totalDom && this.countDom) { if (this.totalDom && this.countDom) {
let money = let money =
this.consumeCount && this.consumeCount.payableMoney this.consumeCount && this.consumeCount.payableMoney
? this.consumeCount.payableMoney ? this.$formatPrice(this.consumeCount.payableMoney)
: '0.00'; : '0.00';
let menCount = let menCount =
this.consumeCount && this.consumeCount.payMen this.consumeCount && this.consumeCount.payMen
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
class="CustomerRecharge-tooltip" class="CustomerRecharge-tooltip"
style="background-color:#4e82fb;" style="background-color:#4e82fb;"
></span> 总充值: ></span> 总充值:
<span style="color:#f00;">{{ rechargeCount && rechargeCount.rechargeMoney ? (rechargeCount.rechargeMoney).toFixed(2) : '0.00' }}</span> <span style="color:#f00;">{{ rechargeCount && rechargeCount.rechargeMoney ? $formatPrice(rechargeCount.rechargeMoney) : '0.00' }}</span>
<span <span
class="CustomerRecharge-tooltip" class="CustomerRecharge-tooltip"
style="background-color:#26c9a8;" style="background-color:#26c9a8;"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment