lxf
2025-04-30 b4c4556a5eddf6708ec55b07e3edc15b2217842e
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">
      <van-tabs v-model="active" color="#0066ed" @change="handleTabChange">
        <van-tab :title="$t('hj52')" name="2"></van-tab>
        <van-tab :title="$t('黄金原油')" name="1"></van-tab>
      </van-tabs>
@@ -51,7 +51,16 @@
          bgc: "rgb(12, 175, 226)",
          laber: "ST",
          symbolCode: "INR",
          symbol: "₹"
          symbol: "  "
        },
        {
          title: this.$t("黄金原油"),
          assname: this.$t("黄金原油"),
          name: "1",
          bgc: "rgb(12, 175, 226)",
          laber: "USD",
          symbolCode: "USD",
          symbol: "RM"
        }
        // {
        //   title: this.$t("黄金原油"),
@@ -60,7 +69,7 @@
        //   bgc: "rgb(12, 175, 226)",
        //   laber: "IN",
        //   symbolCode: "INR",
        //   symbol: "₹"
        //   symbol: "  "
        // }
        // {
        //   title: this.$t("马来西亚"),
@@ -129,6 +138,13 @@
      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);
      }
    }
  }
};