lxf
2025-04-24 6ae727d83d6e42428711fa2337528679aae239eb
src/page/user/Warehouse.vue
@@ -1,7 +1,7 @@
<template>
  <div class="ware">
    <div style="padding: 0 0.4rem 0.4rem">
      <van-tabs v-model="active" color="#0066ed" @change="handleTabChange">
      <van-tabs v-model="active" color="#0066ed">
        <van-tab :title="$t('hj52')" name="2"></van-tab>
        <van-tab :title="$t('黄金原油')" name="1"></van-tab>
      </van-tabs>
@@ -52,16 +52,16 @@
          laber: "ST",
          symbolCode: "INR",
          symbol: "₹"
        },
        {
          title: this.$t("黄金原油"),
          assname: this.$t("黄金原油"),
          name: "1",
          bgc: "rgb(12, 175, 226)",
          laber: "USDT",
          symbolCode: "MYR",
          symbol: "RM"
        }
        // {
        //   title: this.$t("黄金原油"),
        //   assname: this.$t("黄金原油"),
        //   name: "2",
        //   bgc: "rgb(12, 175, 226)",
        //   laber: "IN",
        //   symbolCode: "INR",
        //   symbol: "₹"
        // }
        // {
        //   title: this.$t("马来西亚"),
        //   assname: this.$t("馬股总资产"),
@@ -116,7 +116,7 @@
          });
        });
        let obj = arr.filter(item => item.name == this.active)[0];
        console.log("getMoneys: ", arr);
        console.log("getMoneys: ", arr, obj);
        this.activeObj = obj;
        this.tabsArr = arr;
        this.$forceUpdate(); // 强制Vue重新渲染
@@ -128,13 +128,6 @@
      this.getMoneys();
      if (e.name !== "1") {
        this.$refs.dataListref.getList(e.laber);
      }
    },
    handleTabChange(name) {
      const arr = this.tabsArr.filter(item => item.name === name);
      if (arr.length > 0) {
        this.activeObj = arr[0];
        this.$refs.dataListref.getList(this.activeObj.laber);
      }
    }
  }