From dce10d37ad35efe8ed1d39d6e5fcf7e4904381df Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Fri, 12 Jun 2026 13:19:53 +0800
Subject: [PATCH] 1

---
 src/views/cryptos/PerpetualContract/index.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/views/cryptos/PerpetualContract/index.vue b/src/views/cryptos/PerpetualContract/index.vue
index a56b5b5..9b5855e 100644
--- a/src/views/cryptos/PerpetualContract/index.vue
+++ b/src/views/cryptos/PerpetualContract/index.vue
@@ -94,7 +94,7 @@
           <!-- 委托/持仓-->
           <PerpetualOrder class="pl-8 pr-8" :key="keyIndex + 'b'" :symbol="symbol" :order-cur="orderCur"
             :order-hold="orderHold" :topIndex="selectIndex" :futrue-hold="futrueHold" :futrue-histroy="futrueHistroy"
-            @tab="onTab" @recall="onRecall">
+            :perpetual-histroy="perpetualHistroy" :symbol-type="type" @tab="onTab" @recall="onRecall">
           </PerpetualOrder>
         </div>
       </div>
@@ -180,7 +180,8 @@
           <!-- 委托/持仓-->
           <PerpetualOrder class="pl-8 pr-8" :key="keyIndex + 'd'" :symbol="symbol" :order-cur="orderCur"
             :order-hold="orderHold" :price="price" :topIndex="selectIndex" :futrue-hold="futrueHold"
-            :futrue-histroy="futrueHistroy" @tab="onTab" @recall="onRecall">
+            :futrue-histroy="futrueHistroy" :perpetual-histroy="perpetualHistroy" :symbol-type="type" @tab="onTab"
+            @recall="onRecall">
           </PerpetualOrder>
         </div>
       </div>
@@ -304,6 +305,7 @@
       bids: initArr, // 买单
       orderCur: [], // 当前委托
       orderHold: [], // 持有仓位
+      perpetualHistroy: [], // 永续历史
       futrueHold: [], // 交割持仓
       futrueHistroy: [], // 交割历史
       sockets: {
@@ -656,6 +658,18 @@
         // this.clearTimeout()
       })
     },
+    fetchPerpetualHistory(symbol) { // 永续历史仓位
+      if (this.userInfo.token) {
+        contractOrder({
+          symbol,
+          type: 'hisorders',
+          page_no: 1,
+          symbolType: this.type || 'cryptos'
+        }).then(data => {
+          this.perpetualHistroy = data || []
+        })
+      }
+    },
     init(symbol) { // 初始化页面
       this.symbol = symbol
       this.fetchQoutes(symbol)

--
Gitblit v1.9.3