已平仓页面切换品种时底部统计跟随当前品种汇总
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -240,8 +240,9 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% set summary_trades = closed_trades if closed_tab == '全部' else grouped_closed.get(closed_tab, []) %}
|
||||
{% set ns = namespace(total_pnl=0, total_open_fee=0, total_close_fee=0) %}
|
||||
{% for t in closed_trades %}
|
||||
{% for t in summary_trades %}
|
||||
{% set ns.total_pnl = ns.total_pnl + (t.pnl or 0) %}
|
||||
{% set ns.total_open_fee = ns.total_open_fee + (t.open_fee or 0) %}
|
||||
{% set ns.total_close_fee = ns.total_close_fee + (t.close_fee or 0) %}
|
||||
|
||||
Reference in New Issue
Block a user