|
@@ -271,12 +271,25 @@ const getAccountList = async () => {
|
|
|
}
|
|
}
|
|
|
loading.value = false
|
|
loading.value = false
|
|
|
}
|
|
}
|
|
|
|
|
+ const groupCurrency1 = (type) => {
|
|
|
|
|
+ if (type == "GBP") {
|
|
|
|
|
+ return "£";
|
|
|
|
|
+ } else if (type == "USD") {
|
|
|
|
|
+ return "$";
|
|
|
|
|
+ } else if (type == "EUR") {
|
|
|
|
|
+ return "€";
|
|
|
|
|
+ } else if (type == "USC") {
|
|
|
|
|
+ return "¢";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return "$";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
// 格式化数值函数
|
|
// 格式化数值函数
|
|
|
-function formatMoney(value) {
|
|
|
|
|
|
|
+function formatMoney(value,currency) {
|
|
|
if (value === null || value === undefined) value = 0;
|
|
if (value === null || value === undefined) value = 0;
|
|
|
const sign = value >= 0 ? '' : '-';
|
|
const sign = value >= 0 ? '' : '-';
|
|
|
const absoluteValue = Math.abs(value);
|
|
const absoluteValue = Math.abs(value);
|
|
|
- return '$' + sign + numberDecimal(absoluteValue);
|
|
|
|
|
|
|
+ return groupCurrency1(currency) + sign + numberDecimal(absoluteValue);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 转换数组
|
|
// 转换数组
|
|
@@ -316,7 +329,7 @@ const accounts = computed(() => {
|
|
|
equityWithSymbol: acc.equityWithSymbol ?? '$0.00',
|
|
equityWithSymbol: acc.equityWithSymbol ?? '$0.00',
|
|
|
currency,
|
|
currency,
|
|
|
actualLeverage: '1:' + (acc.leverage ?? 0),
|
|
actualLeverage: '1:' + (acc.leverage ?? 0),
|
|
|
- floatingPL: formatMoney(floating),
|
|
|
|
|
|
|
+ floatingPL: formatMoney(floating,currency),
|
|
|
platform: acc.platform || 'MT4',
|
|
platform: acc.platform || 'MT4',
|
|
|
server: acc.groupCode || '',
|
|
server: acc.groupCode || '',
|
|
|
login: acc.login.toString(),
|
|
login: acc.login.toString(),
|