|
|
@@ -14,7 +14,7 @@
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td class="text-small">
|
|
|
- {{ $t('account.profitLoss') + `(${currency(item.currencyid)})` }}
|
|
|
+ {{ t('account.profitLoss') + `(${currency(item.currencyid)})` }}
|
|
|
</td>
|
|
|
<td :class="item.profitLossClass">
|
|
|
<b>{{ formatDecimal(item.profitLoss, item.decimalplace) }}</b>
|
|
|
@@ -22,7 +22,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="text-small">
|
|
|
- {{ $t('position.goods.enableqty') + `(${item.goodscode})` }}
|
|
|
+ {{ t('position.goods.enableqty') + `(${item.goodscode})` }}
|
|
|
</td>
|
|
|
<td>
|
|
|
{{ item.holderqty - item.freezeqty }}
|
|
|
@@ -30,7 +30,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="text-small">
|
|
|
- {{ $t('position.goods.holderprice') + `(${currency(item.currencyid)})` }}
|
|
|
+ {{ t('position.goods.holderprice') + `(${currency(item.currencyid)})` }}
|
|
|
</td>
|
|
|
<td>{{ item.holderprice }}</td>
|
|
|
</tr>
|
|
|
@@ -43,7 +43,7 @@
|
|
|
<td>{{ formatDecimal(item.tpsl_slprice, item.decimalplace) }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="text-small">{{ $t('position.goods.tradetime') }}</td>
|
|
|
+ <td class="text-small">{{ t('position.goods.tradetime') }}</td>
|
|
|
<td>{{ formatDate(item.tradetime) }}</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -51,14 +51,14 @@
|
|
|
<tr>
|
|
|
<td colspan="2">
|
|
|
<Button size="small" @click="showComponent('Close', index)">
|
|
|
- {{ $t('operation.close') }}
|
|
|
+ {{ t('operation.close') }}
|
|
|
</Button>
|
|
|
<Button size="small" @click="showComponent('MarketClose', index)">
|
|
|
- {{ $t('digital.marketclose') }}
|
|
|
+ {{ t('digital.marketclose') }}
|
|
|
</Button>
|
|
|
<Button size="small" @click="showComponent('TPSL', index)"
|
|
|
v-if="item?.tpslflag === 1 && item.riskcontrolmode === 2">
|
|
|
- {{ $t('digital.spsl') }}
|
|
|
+ {{ t('digital.spsl') }}
|
|
|
</Button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -77,7 +77,7 @@ import { getBuyOrSellName, getGoodsCurrencyItemName } from '@/constants/order'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { queryTradeHolderDetail } from '@/services/api/order'
|
|
|
-import { useFuturesStore } from '@/stores'
|
|
|
+import { i18n, useFuturesStore } from '@/stores'
|
|
|
import eventBus from '@/services/bus'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
|
|
|
@@ -94,6 +94,7 @@ const componentMap = new Map<string, unknown>([
|
|
|
['TPSL', defineAsyncComponent(() => import('./tpsl/index.vue'))], // 止盈止损
|
|
|
])
|
|
|
|
|
|
+const { t } = i18n.global
|
|
|
const futuresStore = useFuturesStore()
|
|
|
const pullRefreshRef = shallowRef()
|
|
|
const showModal = shallowRef(true) // 是否刷新父组件数据
|