From 085652c2ddbf3323dd6d196868bcb09ea28e0665 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 26 Jul 2026 11:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E6=98=93=E8=AE=B0=E5=BD=95=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=A1=B6=E9=83=A8Tab=E5=88=87=E6=8D=A2=EF=BC=8C?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/base.html | 17 +++-------------- ft-app/app/templates/trades.html | 26 ++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/ft-app/app/templates/base.html b/ft-app/app/templates/base.html index 4361eb8..6a2d8f6 100644 --- a/ft-app/app/templates/base.html +++ b/ft-app/app/templates/base.html @@ -206,20 +206,9 @@ 📐 仓位管理 - + + 📝 交易记录 + ⚙️ 系统管理 diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html index b920c07..ea81a21 100644 --- a/ft-app/app/templates/trades.html +++ b/ft-app/app/templates/trades.html @@ -1,14 +1,33 @@ {% extends "base.html" %} {% block title %}交易记录{% endblock %} {% block heading %}交易记录{% endblock %} -{% block breadcrumb %}{% if request.query_params.get('view') == 'closed' %}已平仓记录{% else %}开平仓记录{% endif %}{% endblock %} +{% block breadcrumb %}开平仓记录{% endblock %} {% block content %} {% set view = request.query_params.get('view', '') %} + + + + {% if view != 'closed' %} -{# ═══════════════ 持仓 ═══════════════ #} +
{# ── 新建开仓 ── #}
新建开仓
@@ -109,7 +128,9 @@
+ {% else %} +
{# ═══════════════ 已平仓 ═══════════════ #} {% if closed_trades %} @@ -171,6 +192,7 @@
暂无已平仓记录
{% endif %} +
{% endif %} {% if view != 'closed' %}