From 349c48e168b9f2580334422228acde7d1b21bede Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Fri, 05 Jun 2026 11:19:15 +0800
Subject: [PATCH] 1

---
 src/components/Transform/deliveryContract/hold.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/Transform/deliveryContract/hold.vue b/src/components/Transform/deliveryContract/hold.vue
index 1fe45a8..f80d863 100644
--- a/src/components/Transform/deliveryContract/hold.vue
+++ b/src/components/Transform/deliveryContract/hold.vue
@@ -10,7 +10,7 @@
               {{ item.direction == 'buy' ? $t('开多') : $t('开空') }}
             </div>
             <div class="ml-22 font-31 font-600">
-              <span class="textColor">{{ item.name }} {{ $t('交割') }}</span>
+              <span class="textColor">{{ item.name }} {{ $t('AI量化') }}</span>
               <!-- <span class="text-grey font-28 font-400 ml-17 mr-17">
                 {{ $t('全仓') }} {{ item.lever_rate }}x
               </span> -->
@@ -42,12 +42,16 @@
           <div class="text-grey text-center">{{ $t('数量') }}</div>
           <div class="mt-20 text-center textColor">{{ item.volume }}</div>
         </div>
-        <div class="flex-1 flex flex-col items-end font-28">
+        <div class="flex-1 flex flex-col items-end font-28" v-if="item.state === 'created'">
           <div class="text-grey">{{ $t('盈亏') }}</div>
           <div class="mt-20" :class="item.profit / 1 > 0 ? 'text-green' : 'text-red'">
             {{ item.profit / 1 > 0 ? '+' + item.profit : item.profit }}
           </div>
         </div>
+        <div class="flex-1 flex flex-col items-end font-28" v-else>
+          <div class="text-grey">{{ $t('盈亏') }}</div>
+          <div class="mt-20 textColor">--</div>
+        </div>
       </div>
       <div class="flex pb-32 font-28">
         <div class="flex-1">

--
Gitblit v1.9.3