Commit b96b7472 by 徐忆琳

Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'

js小数失真问题---乘以100或除以100之后保留两位小数

See merge request !510
2 parents f7b2406c 351cac3c
......@@ -83,12 +83,13 @@ export default {
}
)
},
handleRates() {
const {marketingCustomerCount, reachCustomerCount, potentialCustomerCount, dealCustomerCount} = this.list
this.rates.reachRate = (reachCustomerCount / marketingCustomerCount).toFixed(2) * 100
this.rates.reachRate = parseFloat(((reachCustomerCount / marketingCustomerCount) * 100).toFixed(2))
this.rates.percentConversion
= (potentialCustomerCount / marketingCustomerCount).toFixed(2) * 100
this.rates.turnoverRatio = (dealCustomerCount / marketingCustomerCount).toFixed(2) * 100
= parseFloat(((potentialCustomerCount / marketingCustomerCount)*100).toFixed(2))
this.rates.turnoverRatio = parseFloat(((dealCustomerCount / marketingCustomerCount)*100).toFixed(2))
}
}
}
......@@ -195,7 +196,7 @@ export default {
}
}
.text-box{
.text-box {
background: #E2E1FF;
display: flex;
font-size: 14px;
......@@ -204,9 +205,9 @@ export default {
line-height: 25px;
margin: 0 50px;
//justify-content: space-between;
.box-line{
.box-line {
width: 2px;
height:100px;
height: 100px;
background: #0e0b4f52;
margin: 0 60px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!