li.shaoyi 3 年 前
コミット
abb0dfa2b3

+ 1 - 2
src/views/order/funding_information/components/funding_information_funding_summary/setup.ts

@@ -275,7 +275,6 @@ export function useHazardRates() {
         const { usedmargin, mortgagecredit } = taaccount
         // 风险净值
         const riskValue = handleRiskValue(taaccount)
-        const decimalplace = getDecimalplace()
         //   风险率	根据系统参数“132   风险率计算公式”:
         // 1. 风险率=占用/风险净值
         // 2. 风险率=(占用-授信金额)/(风险净值-授信金额)
@@ -285,7 +284,7 @@ export function useHazardRates() {
             result = (usedmargin - credit) / (riskValue - credit)
         }
         result = result ? result * 100 : 0
-        return result.toFixed(decimalplace) + '%'
+        return result.toFixed(2) + '%'
     }
 
     // 可用资金