1
PC-20250623MANY\Administrator
2025-08-10 335dfbdf38b9e37c1383da28232ee725bb92185e
src/views/account/components/Position.vue
@@ -14,22 +14,21 @@
      >
        <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 +70,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 +85,8 @@
              {{ 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>