|
|
@@ -38,8 +38,8 @@
|
|
|
<!-- 持仓盈亏 -->
|
|
|
<template #profitloss="{ record }">
|
|
|
<span
|
|
|
- :class="handleQuotePriceColor(+getDetailProfitloss(record), 0)"
|
|
|
- >{{ getDetailProfitloss(record) }}</span>
|
|
|
+ :class="[+getDetailProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) > 0 ? 'up-quote-color' : +getDetailProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) < 0 ? 'down-quote-color' : '']"
|
|
|
+ >{{ getDetailProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) }}</span>
|
|
|
</template>
|
|
|
<!-- 市值 -->
|
|
|
<template #marketamount="{ record }">
|
|
|
@@ -63,7 +63,9 @@
|
|
|
</template>
|
|
|
<!-- 持仓盈亏 -->
|
|
|
<template #profitloss="{ record }">
|
|
|
- <span>{{ record.averageprice ? useProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) : '--' }}</span>
|
|
|
+ <span
|
|
|
+ :class="[+useProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) > 0 ? 'up-quote-color' : +useProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) < 0 ? 'down-quote-color' : '']"
|
|
|
+ >{{ record.averageprice ? useProfitloss(record, findGoodsCode(record.goodsid, record.goodscode, swapList)) : '--' }}</span>
|
|
|
</template>
|
|
|
<template #buyorsell="{ record }">
|
|
|
<span>{{ getBuyOrSellName(record.buyorsell) }}</span>
|