持仓监控平仓自动记入交易记录,新增交易记录页与实盘资金设置

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-15 14:56:21 +08:00
parent 38ff40111a
commit 5aa9f11733
12 changed files with 733 additions and 23 deletions
+17 -1
View File
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}交易记录与复盘 - 国内期货监控系统{% endblock %}
{% block title %}复盘 - 国内期货监控系统{% endblock %}
{% block content %}
<div class="split-grid records-split">
<div class="card">
@@ -178,4 +178,20 @@
{% endblock %}
{% block extra_js %}
<script src="{{ url_for('static', filename='js/review.js') }}"></script>
{% if prefill %}
<script>
document.addEventListener('DOMContentLoaded', function () {
var form = document.getElementById('review-form');
if (!form) return;
var map = {{ prefill | tojson }};
Object.keys(map).forEach(function (k) {
var el = form.querySelector('[name="' + k + '"]');
if (el && map[k] != null && map[k] !== '') el.value = map[k];
});
var symInput = form.querySelector('.symbol-input');
if (symInput && map.symbol_name) symInput.value = map.symbol_name;
if (typeof recalc === 'function') recalc();
});
</script>
{% endif %}
{% endblock %}