123
dcc
2024-06-05 f15ad3456b47e43646234b9c91c3ddd77ab2cd02
src/page/user/Warehouse.vue
@@ -86,6 +86,24 @@
          symbolCode: "HKD",
          symbol: "HK$",
        },
        {
          title: this.$t("yg"),
          assname: this.$t("印股总资产"),
          name: "6",
          bgc: "rgb(255 91 180)",
          laber: "IN",
          symbolCode: "IND",
          symbol: "₹",
        },
        {
          title: this.$t("日股"),
          assname: this.$t("日股总资产"),
          name: "7",
          bgc: "rgb(255 91 100)",
          laber: "JP",
          symbolCode: "JPN",
          symbol: "¥",
        },
      ],
      getMoneyList: [],
    };
@@ -94,13 +112,11 @@
    this.getMoneys();
  },
  mounted() {
    if (this.$route.query.index == "0") {
      let arr = this.tabsArr.filter((item) => item.name == 4)[0];
    if (this.$route.query.buyType) {
      let arr = this.tabsArr.filter(
        (item) => item.laber == this.$route.query.buyType
      )[0];
      this.onClick(arr);
    } else if (this.$route.query.index == "1") {
      let arr = this.tabsArr.filter((item) => item.name == 2)[0];
      this.onClick(arr);
    } else {
    }
  },
  methods: {
@@ -125,8 +141,10 @@
        });
        let obj = arr.filter((item) => item.name == this.active)[0];
        this.activeObj = obj;
        console.log(this.activeObj,'obj')
        console.log(obj, "0000000", this.tabsArr);
        this.tabsArr = arr;
        console.log(this.tabsArr,'arr')
        this.$forceUpdate(); // 强制Vue重新渲染
      }
    },