1
PC-20250623MANY\Administrator
2025-08-30 9f5adc78ec0e386684a12f3b4f26a0fff4a3286f
src/views/home/Home.vue
@@ -5,10 +5,14 @@
        <home-ltl @choice="choice"></home-ltl>
        <home-ltr :obj="singDetails"></home-ltr>
      </div>
      <home-lb class="bottom" @choice="choice"></home-lb>
      <home-lb class="bottom" @choice="choice" ref="BottomLb"></home-lb>
    </div>
    <div class="right">
      <HomeRight :obj="singDetails" :positionSn.sync="positionSn"></HomeRight>
      <HomeRight
        :obj="singDetails"
        :positionSn.sync="positionSn"
        @Refresh="Refresh"
      ></HomeRight>
    </div>
  </div>
</template>
@@ -39,7 +43,7 @@
        if (this.timer) clearInterval(this.timer);
        this.timer = setInterval(() => {
          this.getSingDetails(val);
        }, 3000);
        }, 2000);
      },
    },
  },
@@ -52,7 +56,6 @@
      this.cId = val;
      this.positionSn = positionSn;
    },
    async getSingDetails(code) {
      let opts = {
        code,
@@ -69,6 +72,10 @@
        }
      });
    },
    // 刷新持仓/平仓列表
    Refresh() {
      this.$refs.BottomLb.init();
    },
  },
};
</script>