From 814016d4b181852d27dc3a59c341efb595e4c94e Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Thu, 21 Aug 2025 17:31:33 +0800
Subject: [PATCH] 1

---
 src/views/account/components/Position.vue |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/src/views/account/components/Position.vue b/src/views/account/components/Position.vue
index f0ef08a..cc5e7df 100644
--- a/src/views/account/components/Position.vue
+++ b/src/views/account/components/Position.vue
@@ -8,28 +8,28 @@
   >
     <div class="drawer-content">
       <el-table
+        height="100%"
         :data="tableData"
         style="width: 100%; flex: 1"
         empty-text="No Data"
       >
         <el-table-column prop="stockSpell" :label="$t('hj313')">
           <template slot-scope="scope">
-            <span class="market-tag sc_c" v-if="scope.row.stockGid == 'MEX'">
-              MEX
-            </span>
             <el-tag
-              type="success"
+              :type="scope.row.stockGid != $mc ? 'success' : ''"
               size="small"
               style="margin-right: 8px"
-              v-else-if="scope.row.stockGid == 'US'"
             >
-              US
+              {{ scope.row.stockGid }}
             </el-tag>
             <span>{{ scope.row.stockName }}</span>
           </template>
         </el-table-column>
 
-        <el-table-column prop="positionType" :label="`${$t('hj313')} ${$t('類型')}`">
+        <el-table-column
+          prop="positionType"
+          :label="`${$t('hj313')} ${$t('類型')}`"
+        >
           <template slot-scope="scope">
             <el-tag type="warning">
               {{ dictionary.gplx[scope.row.positionType] }}
@@ -71,8 +71,11 @@
               {{ scope.row.stockGid | currencySymbol }}
               {{ scope.row.buyOrderPrice }}
             </span>
-            <div v-if="scope.row.stockGid == 'US'">
-              ≈ MX$ {{ (scope.row.buyOrderPrice * utm).toFixed(2) }}
+            <div v-if="scope.row.stockGid != $mc">
+              ≈ $
+              {{
+                (scope.row.buyOrderPrice * rate(scope.row.stockGid)).toFixed(2)
+              }}
             </div>
           </template>
         </el-table-column>
@@ -83,8 +86,9 @@
               {{ scope.row.stockGid | currencySymbol }}
               {{ scope.row.now_price }}
             </span>
-            <div v-if="scope.row.stockGid == 'US'">
-              ≈ MX$ {{ (scope.row.now_price * utm).toFixed(2) }}
+            <div v-if="scope.row.stockGid != $mc">
+              ≈ $
+              {{ (scope.row.now_price * rate(scope.row.stockGid)).toFixed(2) }}
             </div>
           </template>
         </el-table-column>

--
Gitblit v1.9.3