|
|
@@ -39,6 +39,10 @@
|
|
|
<template #accountname="{ record }">
|
|
|
<span>{{ hazardRates(record) }}</span>
|
|
|
</template>
|
|
|
+ <!-- 持仓市值 -->
|
|
|
+ <template #curamount="{ record }">
|
|
|
+ <span>{{ handleHoldPrice(record.accountid) }}</span>
|
|
|
+ </template>
|
|
|
<!-- 净值 -->
|
|
|
<template #netWorth="{ record }">
|
|
|
<span>{{ netWorth(record) }}</span>
|
|
|
@@ -87,7 +91,7 @@ export default defineComponent({
|
|
|
setup() {
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<Taaccount>();
|
|
|
- const { handleProfitloss, hazardRates, netWorth, canUseMoney, getHoldsList } = useHazardRates();
|
|
|
+ const { handleProfitloss, hazardRates, netWorth, canUseMoney, getHoldsList, handleHoldPrice } = useHazardRates();
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
const param: GetTaAccountsReq = {
|
|
|
@@ -159,6 +163,7 @@ export default defineComponent({
|
|
|
openComponentAction, // 控制异步组件
|
|
|
btnList, // 表格按钮
|
|
|
handleQuotePriceColor,
|
|
|
+ handleHoldPrice,
|
|
|
};
|
|
|
},
|
|
|
});
|