1
PC-20250623MANY\Administrator
2025-08-23 6555f7b959fcfbbfe7d3c16047be620c26f363e5
src/views/account/components/Position.vue
@@ -10,6 +10,7 @@
      <el-table
        :data="tableData"
        style="width: 100%; flex: 1"
        height="250"
        empty-text="No Data"
      >
        <el-table-column prop="stockSpell" :label="$t('hj313')">
@@ -86,7 +87,8 @@
              {{ scope.row.now_price }}
            </span>
            <div v-if="scope.row.stockGid != $mc">
              ≈ $ {{ (scope.row.now_price * rate(scope.row.stockGid)).toFixed(2) }}
              ≈ $
              {{ (scope.row.now_price * rate(scope.row.stockGid)).toFixed(2) }}
            </div>
          </template>
        </el-table-column>
@@ -113,7 +115,9 @@
export default {
  data() {
    return {
      opt: {}, // 列表参数,必须是opt和myMixins混入配合使用
      opt: {
        state: 0,
      }, // 列表参数,必须是opt和myMixins混入配合使用
    };
  },
  mixins: [mixins],
@@ -129,7 +133,7 @@
  },
  watch: {},
  async created() {
    await this.getExchangeRate(); // 获取汇率
    // await this.getExchangeRate(); // 获取汇率
    this.opt.stockType = this.type;
    this.apiInterface = api.getchicang; // 赋值接口
    this.init(); // 获取记录列表