|
|
@@ -148,19 +148,19 @@ export const useHazardRates = () => {
|
|
|
holdsList.value = res;
|
|
|
})
|
|
|
}
|
|
|
- // 交割商品
|
|
|
+ // 交割商品
|
|
|
const swapList = ref<QueryQuoteGoodsListRsp[]>([]);
|
|
|
function getSwapList() {
|
|
|
- const { queryTable } = queryTableList<QueryQuoteGoodsListRsp>();
|
|
|
- // 组装 参数
|
|
|
- const marketids = getMarketIdsByTradeMode(TradeMode.DiaoQi)
|
|
|
- const param: QueryQuoteGoodsListReq = {
|
|
|
- usertype: getUserAccountType(),
|
|
|
- }
|
|
|
- if (marketids) {
|
|
|
- param.marketids = marketids
|
|
|
- }
|
|
|
- queryTable(queryQuoteGoodsList, param).then(res => swapList.value = res)
|
|
|
+ const { queryTable } = queryTableList<QueryQuoteGoodsListRsp>();
|
|
|
+ // 组装 参数
|
|
|
+ const marketids = getMarketIdsByTradeMode(TradeMode.DiaoQi)
|
|
|
+ const param: QueryQuoteGoodsListReq = {
|
|
|
+ usertype: getUserAccountType(),
|
|
|
+ }
|
|
|
+ if (marketids) {
|
|
|
+ param.marketids = marketids
|
|
|
+ }
|
|
|
+ queryTable(queryQuoteGoodsList, param).then(res => swapList.value = res)
|
|
|
}
|
|
|
// 获取报价小数位
|
|
|
function getDecimalplace() {
|
|
|
@@ -264,9 +264,10 @@ export const useHazardRates = () => {
|
|
|
}
|
|
|
}
|
|
|
const decimalplace = getDecimalplace()
|
|
|
+ console.log('result.toFixed(decimalplace)', result.toFixed(decimalplace))
|
|
|
return result.toFixed(decimalplace)
|
|
|
}
|
|
|
|
|
|
- return { handleProfitloss,getSwapList, hazardRates, netWorth, canUseMoney, getHoldsList, handleHoldPrice }
|
|
|
+ return { handleProfitloss, getSwapList, hazardRates, netWorth, canUseMoney, getHoldsList, handleHoldPrice }
|
|
|
}
|
|
|
|