ae480cb3e7
Co-authored-by: Cursor <cursoragent@cursor.com>
48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}交易记录与复盘 - 国内期货监控系统{% endblock %}
|
|
{% block content %}
|
|
<h1 class="page-title">交易记录与复盘</h1>
|
|
|
|
<div class="card">
|
|
<h2>全部记录</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>品种</th>
|
|
<th>类型</th>
|
|
<th>方向</th>
|
|
<th>触发价</th>
|
|
<th>止损</th>
|
|
<th>止盈</th>
|
|
<th>结果</th>
|
|
<th>时间</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for r in records %}
|
|
<tr>
|
|
<td>{{ r.symbol_name or r.symbol }}</td>
|
|
<td>{{ r.monitor_type }}</td>
|
|
<td><span class="badge dir">{{ '做多' if r.direction == 'long' else '做空' }}</span></td>
|
|
<td>{{ r.trigger_price }}</td>
|
|
<td>{{ r.stop_loss }}</td>
|
|
<td>{{ r.take_profit }}</td>
|
|
<td>
|
|
{% if r.result == '止盈' %}
|
|
<span class="badge profit">止盈</span>
|
|
{% else %}
|
|
<span class="badge loss">止损</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ r.created_at[:16] if r.created_at else '' }}</td>
|
|
<td><a href="{{ url_for('del_record', rid=r.id) }}" class="btn-del" onclick="return confirm('删除?')">删</a></td>
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="9" style="color:#888">暂无交易记录</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|