From 9d7de030d38f8d71fdf54ddfe26e46e71f17e9c0 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 20 Sep 2025 15:21:43 +0800
Subject: [PATCH] 1

---
 src/views/home/components/HomeLb.vue |   52 ++++++++++++++++++++++------------------------------
 1 files changed, 22 insertions(+), 30 deletions(-)

diff --git a/src/views/home/components/HomeLb.vue b/src/views/home/components/HomeLb.vue
index c03e487..5229331 100644
--- a/src/views/home/components/HomeLb.vue
+++ b/src/views/home/components/HomeLb.vue
@@ -9,9 +9,9 @@
 
     <div class="order_list" v-if="activeName == '0'">
       <el-table
+        height="100%"
         :data="tableData"
         style="width: 100%"
-        height="100%"
         size="small"
         empty-text="No Data"
         @row-click="Choice"
@@ -19,21 +19,12 @@
         <el-table-column prop="stockSpell" :label="$t('hj313')">
           <template slot-scope="scope">
             <el-tag
-              v-if="scope.row.stockGid == 'MEX'"
+              :type="scope.row.stockGid != $mc ? 'success' : ''"
               size="small"
               style="margin-right: 8px"
             >
-              MEX
+              {{ scope.row.stockGid }}
             </el-tag>
-            <el-tag
-              type="success"
-              size="small"
-              style="margin-right: 8px"
-              v-else-if="scope.row.stockGid == 'US'"
-            >
-              US
-            </el-tag>
-
             <span>{{ scope.row.stockName }}</span>
           </template>
         </el-table-column>
@@ -83,8 +74,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>
@@ -95,8 +89,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>
@@ -121,19 +116,11 @@
         <el-table-column prop="stockSpell" :label="$t('hj313')" min-width="150">
           <template slot-scope="scope">
             <el-tag
-              v-if="scope.row.stockGid == 'MEX'"
+              :type="scope.row.stockGid != $mc ? 'success' : ''"
               size="small"
               style="margin-right: 8px"
             >
-              MEX
-            </el-tag>
-            <el-tag
-              type="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>
@@ -186,8 +173,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>
@@ -198,8 +188,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>
@@ -262,6 +253,7 @@
     // 股票选择
     Choice(val) {
       this.$emit("choice", val.stockCode, val.positionSn);
+      console.log("1");
     },
   },
 };

--
Gitblit v1.9.3