|
|
@@ -46,10 +46,16 @@
|
|
|
{{ (((row.nowAmount - row.startAmount) / (row.startAmount || 1)) * 100).toFixed(2) || 0 }}%
|
|
|
</span>
|
|
|
</template>
|
|
|
+ <template v-slot:startAmount="{ row }">
|
|
|
+ {{ row.startAmount.toFixed(2) || 0 }}
|
|
|
+ </template>
|
|
|
+ <template v-slot:nowAmount="{ row }">
|
|
|
+ {{ row.nowAmount.toFixed(2) || 0 }}
|
|
|
+ </template>
|
|
|
<template v-slot:configs="{ row }">
|
|
|
- <lay-tooltip :content="`资金比例:${row.fundRatio * 100}%;`">
|
|
|
+ <lay-tooltip :content="`资金比例:${row.fundRatio * 100}%;账户止损比例:${row.stopLoss * 100}%`">
|
|
|
<div class="ellipsis-2" @click="handleUpdate(row)">
|
|
|
- {{ `资金比例:${row.fundRatio * 100}%;` }}
|
|
|
+ {{ `资金比例:${row.fundRatio * 100}%;账户止损比例:${row.stopLoss * 100}%` }}
|
|
|
</div>
|
|
|
</lay-tooltip>
|
|
|
</template>
|
|
|
@@ -139,10 +145,10 @@ const columns = ref([
|
|
|
{ title: "名称", key: "name", customSlot: "name", ellipsisTooltip: true },
|
|
|
{ title: "账户", key: "accountName", ellipsisTooltip: true },
|
|
|
{ title: "币对", key: "symbol", align: "center", ellipsisTooltip: true },
|
|
|
- { title: "初始余额", width: "100px", key: "startAmount", align: "center" },
|
|
|
- { title: "当前余额", width: "100px", key: "nowAmount", align: "center" },
|
|
|
+ { title: "初始余额", width: "100px", key: "startAmount", customSlot: "startAmount",align: "center" },
|
|
|
+ { title: "当前余额", width: "100px", key: "nowAmount", customSlot: "nowAmount",align: "center" },
|
|
|
{ title: "收益", width: "80px", key: "earningRate", customSlot: "earningRate", align: "center" },
|
|
|
- { title: "配置信息", width: "200px", key: "configs", customSlot: "configs" },
|
|
|
+ { title: "配置信息", width: "240px", key: "configs", customSlot: "configs" },
|
|
|
{ title: "状态", width: "90px", key: "status", customSlot: "status", align: "center" },
|
|
|
{ title: "IP", width: "120px", key: "serverName", ellipsisTooltip: true },
|
|
|
// { title: "持仓信息", width: "80px", key: "posNum", customSlot: "posNum", align: "center", ellipsisTooltip: true },
|