feat:精度丢失
This commit is contained in:
@@ -66,6 +66,8 @@ import Header from '@/components/header.vue';
|
||||
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList, getBonusStat, getAcctBalance } from '@/api/finance.js';
|
||||
import { getValue, BALANCE_TYPE } from '@/utils/enumUtils.js';
|
||||
import { formatDate, handleAmount } from '@/utils/index.js';
|
||||
import BigNumber from 'bignumber.js';
|
||||
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
@@ -233,6 +235,10 @@ export default {
|
||||
{
|
||||
name: "锁定次数",
|
||||
key: "lockAmount"
|
||||
},
|
||||
{
|
||||
name: "预发放次数",
|
||||
key: "preAmount"
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -293,7 +299,8 @@ export default {
|
||||
console.log("流水贡献值", resp);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
if (resp.data.ratio) {
|
||||
resp.data.ratio = resp.data.ratio * 100 + '%';
|
||||
const ratio = new Decimal(resp.data.ratio);
|
||||
resp.data.ratio = ratio.times(100).toNumber() + '%';
|
||||
}
|
||||
this.headerData = resp.data || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user