|
|
|
@ -495,6 +495,7 @@
|
|
|
|
.tr-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
|
|
|
|
.tr-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
|
|
|
|
.tr-toolbar-left, .tr-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
|
|
.tr-toolbar-left, .tr-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
|
|
.tr-btn { padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; display: flex; align-items: center; gap: 8px; transition: all 0.2s; font-family: inherit; }
|
|
|
|
.tr-btn { padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; display: flex; align-items: center; gap: 8px; transition: all 0.2s; font-family: inherit; }
|
|
|
|
|
|
|
|
.tr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
|
|
.tr-btn-primary { background: var(--color-brand); color: #fff; }
|
|
|
|
.tr-btn-primary { background: var(--color-brand); color: #fff; }
|
|
|
|
.tr-btn-primary:hover { background: #0066d6; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }
|
|
|
|
.tr-btn-primary:hover { background: #0066d6; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }
|
|
|
|
.tr-btn-secondary { background: #fff; color: var(--text-secondary); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); }
|
|
|
|
.tr-btn-secondary { background: #fff; color: var(--text-secondary); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); }
|
|
|
|
@ -582,12 +583,146 @@
|
|
|
|
.tr-empty-icon { font-size: 56px; opacity: 0.3; }
|
|
|
|
.tr-empty-icon { font-size: 56px; opacity: 0.3; }
|
|
|
|
.tr-empty-text { font-size: 15px; color: var(--text-tertiary); }
|
|
|
|
.tr-empty-text { font-size: 15px; color: var(--text-tertiary); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ============================================
|
|
|
|
|
|
|
|
交易反思子系统样式
|
|
|
|
|
|
|
|
============================================ */
|
|
|
|
|
|
|
|
.tr-subtabs { display: flex; gap: 8px; margin-bottom: 24px; background: rgba(255,255,255,0.6); padding: 4px; border-radius: 14px; backdrop-filter: blur(8px); width: fit-content; }
|
|
|
|
|
|
|
|
.tr-subtab { padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); transition: all 0.2s; font-family: inherit; }
|
|
|
|
|
|
|
|
.tr-subtab:hover { background: rgba(0,0,0,0.03); color: var(--text-primary); }
|
|
|
|
|
|
|
|
.tr-subtab.active { background: #fff; color: var(--color-brand); box-shadow: var(--shadow-sm); font-weight: 600; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tr-tab-panel { display: none; }
|
|
|
|
|
|
|
|
.tr-tab-panel.active { display: block; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 交易反思 - 日期导航 */
|
|
|
|
|
|
|
|
.tr-refl-datebar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
|
|
|
|
|
|
|
|
.tr-refl-datebtn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: var(--text-secondary); cursor: pointer; box-shadow: var(--shadow-sm); transition: all 0.2s; font-size: 16px; }
|
|
|
|
|
|
|
|
.tr-refl-datebtn:hover { background: var(--color-brand); color: #fff; }
|
|
|
|
|
|
|
|
.tr-refl-datetext { font-size: 20px; font-weight: 700; color: var(--text-primary); min-width: 120px; text-align: center; }
|
|
|
|
|
|
|
|
.tr-refl-actions { display: flex; gap: 10px; margin-left: auto; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 反思统计卡片 */
|
|
|
|
|
|
|
|
.tr-refl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
|
|
|
|
|
|
|
|
.tr-refl-statcard { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
|
|
|
|
|
|
|
|
.tr-refl-statcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
|
|
|
|
|
|
|
|
.tr-refl-statlabel { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; font-weight: 600; }
|
|
|
|
|
|
|
|
.tr-refl-statvalue { font-size: 26px; font-weight: 700; }
|
|
|
|
|
|
|
|
.tr-refl-statvalue.profit { color: var(--color-down); }
|
|
|
|
|
|
|
|
.tr-refl-statvalue.loss { color: var(--color-up); }
|
|
|
|
|
|
|
|
.tr-refl-reflected { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
|
|
|
|
|
|
|
|
.tr-refl-reflected.yes { background: rgba(52,199,89,0.12); color: var(--color-down); }
|
|
|
|
|
|
|
|
.tr-refl-reflected.no { background: rgba(255,59,48,0.12); color: var(--color-up); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 当日反思区域 */
|
|
|
|
|
|
|
|
.tr-refl-daily { background: var(--bg-card); border-radius: var(--radius-card); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
|
|
|
|
|
|
|
|
.tr-refl-daily-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
|
|
|
|
|
|
|
|
.tr-refl-daily-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
|
|
|
|
|
|
|
|
.tr-refl-daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
|
|
|
|
|
|
|
|
.tr-refl-daily-item { background: #F5F5F7; border-radius: 12px; padding: 14px; }
|
|
|
|
|
|
|
|
.tr-refl-daily-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; }
|
|
|
|
|
|
|
|
.tr-refl-daily-value { font-size: 14px; color: var(--text-primary); font-weight: 500; line-height: 1.4; }
|
|
|
|
|
|
|
|
.tr-refl-daily-value.empty { color: var(--text-tertiary); font-style: italic; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 交易配对卡片 */
|
|
|
|
|
|
|
|
.tr-refl-section-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
|
|
|
|
|
|
|
|
.tr-refl-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; }
|
|
|
|
|
|
|
|
.tr-refl-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
|
|
|
|
|
|
|
|
.tr-refl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
|
|
|
|
|
|
|
|
.tr-refl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-brand); }
|
|
|
|
|
|
|
|
.tr-refl-card.profit::before { background: var(--color-down); }
|
|
|
|
|
|
|
|
.tr-refl-card.loss::before { background: var(--color-up); }
|
|
|
|
|
|
|
|
.tr-refl-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
|
|
|
|
|
|
|
|
.tr-refl-card-symbol { font-size: 16px; font-weight: 700; }
|
|
|
|
|
|
|
|
.tr-refl-card-dir { font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
|
|
|
|
|
|
|
|
.tr-refl-card-dir.long { background: rgba(52,199,89,0.12); color: var(--color-down); }
|
|
|
|
|
|
|
|
.tr-refl-card-dir.short { background: rgba(255,59,48,0.12); color: var(--color-up); }
|
|
|
|
|
|
|
|
.tr-refl-card-pnl { font-size: 20px; font-weight: 700; text-align: right; }
|
|
|
|
|
|
|
|
.tr-refl-card-pnl.profit { color: var(--color-down); }
|
|
|
|
|
|
|
|
.tr-refl-card-pnl.loss { color: var(--color-up); }
|
|
|
|
|
|
|
|
.tr-refl-card-nodes { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
|
|
|
|
|
|
|
|
.tr-refl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
|
|
|
|
|
|
|
|
.tr-refl-tag { font-size: 11px; padding: 4px 10px; border-radius: 9999px; background: #F5F5F7; color: var(--text-secondary); font-weight: 500; }
|
|
|
|
|
|
|
|
.tr-refl-tag.active { background: rgba(0,122,255,0.12); color: var(--color-brand); }
|
|
|
|
|
|
|
|
.tr-refl-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
|
|
|
|
|
|
.tr-refl-card-actions .tr-btn { padding: 6px 12px; font-size: 12px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 未配对交易 */
|
|
|
|
|
|
|
|
.tr-refl-unpaired { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-header .tr-refl-section-title { margin-bottom: 0; }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-table th { background: #F5F5F7; padding: 10px 8px; text-align: left; font-weight: 600; color: var(--text-tertiary); font-size: 12px; }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,0.04); color: var(--text-primary); }
|
|
|
|
|
|
|
|
.tr-refl-unpaired-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-brand); cursor: pointer; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 经验库 */
|
|
|
|
|
|
|
|
.tr-exp-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
|
|
|
|
|
|
|
|
.tr-exp-search { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; padding: 0 14px; height: 40px; font-size: 14px; width: 260px; outline: none; }
|
|
|
|
|
|
|
|
.tr-exp-search:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(0,122,255,0.15); }
|
|
|
|
|
|
|
|
.tr-exp-filter { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 10px; padding: 0 12px; height: 36px; font-size: 13px; color: var(--text-primary); outline: none; }
|
|
|
|
|
|
|
|
.tr-exp-viewtabs { display: flex; gap: 6px; margin-left: auto; }
|
|
|
|
|
|
|
|
.tr-exp-viewtab { padding: 6px 14px; border-radius: 10px; font-size: 13px; cursor: pointer; border: none; background: #fff; color: var(--text-secondary); transition: all 0.2s; }
|
|
|
|
|
|
|
|
.tr-exp-viewtab:hover { background: #F5F5F7; }
|
|
|
|
|
|
|
|
.tr-exp-viewtab.active { background: var(--color-brand); color: #fff; }
|
|
|
|
|
|
|
|
.tr-exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
|
|
|
|
|
|
|
|
.tr-exp-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
|
|
|
|
|
|
|
|
.tr-exp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
|
|
|
|
|
|
|
|
.tr-exp-card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
|
|
|
|
|
|
|
|
.tr-exp-card-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px; }
|
|
|
|
|
|
|
|
.tr-exp-card-content { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
|
|
|
|
|
|
|
|
.tr-exp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
|
|
|
|
|
|
.tr-exp-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
|
|
|
|
|
|
|
|
.tr-exp-pageinfo { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
|
|
|
|
|
|
|
|
.tr-exp-detail-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }
|
|
|
|
|
|
|
|
.tr-exp-detail-content { font-size: 14px; color: var(--text-primary); line-height: 1.8; background: #F5F5F7; border-radius: 12px; padding: 16px; margin-bottom: 16px; white-space: pre-wrap; }
|
|
|
|
|
|
|
|
.tr-exp-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
|
|
|
|
|
|
|
|
.tr-exp-detail-source { font-size: 13px; color: var(--text-secondary); }
|
|
|
|
|
|
|
|
.tr-exp-detail-source .link { cursor: pointer; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Modal 表单 */
|
|
|
|
|
|
|
|
.tr-form-group { margin-bottom: 18px; }
|
|
|
|
|
|
|
|
.tr-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
|
|
|
|
|
|
|
|
.tr-form-input, .tr-form-select, .tr-form-textarea { width: 100%; background: #F5F5F7; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text-primary); font-family: inherit; outline: none; transition: all 0.2s; }
|
|
|
|
|
|
|
|
.tr-form-input:focus, .tr-form-select:focus, .tr-form-textarea:focus { border-color: var(--color-brand); background: #fff; box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }
|
|
|
|
|
|
|
|
.tr-form-textarea { min-height: 90px; resize: vertical; }
|
|
|
|
|
|
|
|
.tr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
|
|
|
|
|
|
|
.tr-form-rating { display: flex; gap: 6px; }
|
|
|
|
|
|
|
|
.tr-form-star { font-size: 22px; color: #E5E5E7; cursor: pointer; transition: color 0.15s; }
|
|
|
|
|
|
|
|
.tr-form-star.active { color: #FF9F0A; }
|
|
|
|
|
|
|
|
.tr-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 标签管理 */
|
|
|
|
|
|
|
|
.tr-tag-section { margin-bottom: 18px; }
|
|
|
|
|
|
|
|
.tr-tag-section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
|
|
|
|
|
|
|
|
.tr-tag-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
|
|
|
|
|
|
|
|
.tr-tag-chip { padding: 6px 12px; border-radius: 9999px; font-size: 12px; cursor: pointer; border: 1px solid rgba(0,0,0,0.06); background: #fff; color: var(--text-secondary); transition: all 0.15s; }
|
|
|
|
|
|
|
|
.tr-tag-chip:hover { border-color: var(--color-brand); color: var(--color-brand); }
|
|
|
|
|
|
|
|
.tr-tag-chip.selected { background: rgba(0,122,255,0.12); border-color: var(--color-brand); color: var(--color-brand); font-weight: 500; }
|
|
|
|
|
|
|
|
.tr-tag-custom { display: flex; gap: 8px; margin-top: 12px; }
|
|
|
|
|
|
|
|
.tr-tag-custom .tr-form-input { flex: 1; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* AI 分析结果 */
|
|
|
|
|
|
|
|
.tr-ai-version-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 16px; background: #F5F5F7; border-radius: 12px; }
|
|
|
|
|
|
|
|
.tr-ai-version-label { font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
|
|
|
|
|
|
|
|
.tr-ai-version-row .tr-form-select { flex: 1; min-width: 200px; margin: 0; }
|
|
|
|
|
|
|
|
.tr-ai-result-section { margin-bottom: 18px; }
|
|
|
|
|
|
|
|
.tr-ai-result-title { font-size: 14px; font-weight: 700; color: var(--color-brand); margin-bottom: 8px; }
|
|
|
|
|
|
|
|
.tr-ai-result-content { font-size: 14px; color: var(--text-primary); line-height: 1.8; background: #F5F5F7; border-radius: 12px; padding: 14px; }
|
|
|
|
|
|
|
|
.tr-ai-list { padding-left: 18px; margin: 0; }
|
|
|
|
|
|
|
|
.tr-ai-list li { margin-bottom: 6px; line-height: 1.6; }
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
.tr-stats-grid { grid-template-columns: repeat(3, 1fr); }
|
|
|
|
.tr-stats-grid { grid-template-columns: repeat(3, 1fr); }
|
|
|
|
|
|
|
|
.tr-refl-stats { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
|
|
|
|
.tr-refl-daily-grid { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.tr-stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
.tr-stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
.tr-overview-grid { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
.tr-overview-grid { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
|
|
|
|
.tr-refl-stats { grid-template-columns: 1fr; }
|
|
|
|
|
|
|
|
.tr-refl-daily-grid { grid-template-columns: 1fr; }
|
|
|
|
|
|
|
|
.tr-form-row { grid-template-columns: 1fr; }
|
|
|
|
|
|
|
|
.tr-refl-pairs { grid-template-columns: 1fr; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
@ -974,82 +1109,429 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 交易复盘视图 -->
|
|
|
|
<!-- 交易复盘视图 -->
|
|
|
|
<div id="trade-review-view" class="view">
|
|
|
|
<div id="trade-review-view" class="view">
|
|
|
|
<!-- 工具栏 -->
|
|
|
|
<!-- 子 Tab 切换栏 -->
|
|
|
|
<div class="tr-toolbar">
|
|
|
|
<div class="tr-subtabs" id="tr-subtabs">
|
|
|
|
<div class="tr-toolbar-left">
|
|
|
|
<button class="tr-subtab active" data-subtab="stats">统计分析</button>
|
|
|
|
<input type="file" id="tr-file-input" accept=".xls,.xlsx" style="display:none" />
|
|
|
|
<button class="tr-subtab" data-subtab="reflection">交易反思</button>
|
|
|
|
<input type="file" id="tr-batch-file-input" accept=".xls,.xlsx" multiple style="display:none" />
|
|
|
|
<button class="tr-subtab" data-subtab="experience">经验库</button>
|
|
|
|
<button id="tr-btn-import" class="tr-btn tr-btn-primary">
|
|
|
|
</div>
|
|
|
|
<span>📥</span><span>导入结算单</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
<!-- 统计分析子 Tab -->
|
|
|
|
<button id="tr-btn-batch-import" class="tr-btn tr-btn-primary" title="同时导入多个结算单文件">
|
|
|
|
<div id="tr-tab-stats" class="tr-tab-panel active">
|
|
|
|
<span>📂</span><span>批量导入</span>
|
|
|
|
<!-- 工具栏 -->
|
|
|
|
</button>
|
|
|
|
<div class="tr-toolbar">
|
|
|
|
<input type="date" id="tr-start-date" class="tr-date-input" title="开始日期" />
|
|
|
|
<div class="tr-toolbar-left">
|
|
|
|
<span style="color:var(--text-tertiary);font-size:13px;">~</span>
|
|
|
|
<input type="file" id="tr-file-input" accept=".xls,.xlsx" style="display:none" />
|
|
|
|
<input type="date" id="tr-end-date" class="tr-date-input" title="结束日期" />
|
|
|
|
<input type="file" id="tr-batch-file-input" accept=".xls,.xlsx" multiple style="display:none" />
|
|
|
|
<button id="tr-btn-query" class="tr-btn tr-btn-secondary">查询</button>
|
|
|
|
<button id="tr-btn-import" class="tr-btn tr-btn-primary">
|
|
|
|
|
|
|
|
<span>📥</span><span>导入结算单</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button id="tr-btn-batch-import" class="tr-btn tr-btn-primary" title="同时导入多个结算单文件">
|
|
|
|
|
|
|
|
<span>📂</span><span>批量导入</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<input type="date" id="tr-start-date" class="tr-date-input" title="开始日期" />
|
|
|
|
|
|
|
|
<span style="color:var(--text-tertiary);font-size:13px;">~</span>
|
|
|
|
|
|
|
|
<input type="date" id="tr-end-date" class="tr-date-input" title="结束日期" />
|
|
|
|
|
|
|
|
<button id="tr-btn-query" class="tr-btn tr-btn-secondary">查询</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-toolbar-right">
|
|
|
|
|
|
|
|
<button id="tr-btn-delete-date" class="tr-btn tr-btn-danger" title="删除当前查询日期的所有交易记录">
|
|
|
|
|
|
|
|
<span>🗑️</span><span>删除当日</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button id="tr-btn-batches" class="tr-btn tr-btn-secondary">
|
|
|
|
|
|
|
|
<span>📋</span><span>批次管理</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tr-toolbar-right">
|
|
|
|
|
|
|
|
<button id="tr-btn-delete-date" class="tr-btn tr-btn-danger" title="删除当前查询日期的所有交易记录">
|
|
|
|
<!-- 6个统计卡片 -->
|
|
|
|
<span>🗑️</span><span>删除当日</span>
|
|
|
|
<div id="tr-stats-grid" class="tr-stats-grid"></div>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button id="tr-btn-batches" class="tr-btn tr-btn-secondary">
|
|
|
|
<!-- 账户权益曲线 -->
|
|
|
|
<span>📋</span><span>批次管理</span>
|
|
|
|
<div class="tr-chart-box">
|
|
|
|
</button>
|
|
|
|
<div class="tr-chart-title">账户权益曲线(累计净盈亏 + 每日盈亏)</div>
|
|
|
|
|
|
|
|
<div class="tr-chart-container" id="tr-equity-chart"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 品种盈亏分布气泡图 -->
|
|
|
|
|
|
|
|
<div class="tr-chart-box">
|
|
|
|
|
|
|
|
<div class="tr-chart-title">品种盈亏分布(气泡大小=手续费占比,颜色=净盈亏)</div>
|
|
|
|
|
|
|
|
<div class="tr-bubble-container" id="tr-bubble-chart"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 每日交易详情表 -->
|
|
|
|
|
|
|
|
<div class="tr-tbl-box">
|
|
|
|
|
|
|
|
<div class="tr-tbl-title">每日交易详情(点击日期查看详情)</div>
|
|
|
|
|
|
|
|
<table class="tr-table">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th>日期</th><th>笔数</th><th>平仓盈亏</th><th>手续费</th>
|
|
|
|
|
|
|
|
<th>净盈亏</th><th>盈利笔</th><th>亏损笔</th><th>胜率</th>
|
|
|
|
|
|
|
|
<th>最大盈利</th><th>最大亏损</th><th>品种数</th><th>操作</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tr-daily-body"></tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div id="tr-daily-empty" class="tr-empty" style="display:none;">
|
|
|
|
|
|
|
|
<div class="tr-empty-icon">📊</div>
|
|
|
|
|
|
|
|
<div class="tr-empty-text">暂无交易数据,请先导入结算单</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 品种盈亏排行表 -->
|
|
|
|
|
|
|
|
<div class="tr-tbl-box">
|
|
|
|
|
|
|
|
<div class="tr-tbl-title">品种盈亏排行(点击查看品种详情)</div>
|
|
|
|
|
|
|
|
<table class="tr-table">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th>排名</th><th>代码</th><th>名称</th><th>净盈亏</th>
|
|
|
|
|
|
|
|
<th>平仓盈亏</th><th>手续费</th><th>胜率</th>
|
|
|
|
|
|
|
|
<th>盈亏比</th><th>笔数</th><th>操作</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tr-variety-body"></tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div id="tr-variety-empty" class="tr-empty" style="display:none;">
|
|
|
|
|
|
|
|
<div class="tr-empty-icon">📋</div>
|
|
|
|
|
|
|
|
<div class="tr-empty-text">暂无品种数据</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 交易反思子 Tab -->
|
|
|
|
|
|
|
|
<div id="tr-tab-reflection" class="tr-tab-panel">
|
|
|
|
|
|
|
|
<div class="tr-refl-datebar">
|
|
|
|
|
|
|
|
<button class="tr-refl-datebtn" id="tr-refl-prev" title="前一天">‹</button>
|
|
|
|
|
|
|
|
<span class="tr-refl-datetext" id="tr-refl-current-date">-</span>
|
|
|
|
|
|
|
|
<button class="tr-refl-datebtn" id="tr-refl-next" title="后一天">›</button>
|
|
|
|
|
|
|
|
<div class="tr-refl-actions">
|
|
|
|
|
|
|
|
<button class="tr-btn tr-btn-secondary" id="tr-refl-edit-daily">
|
|
|
|
|
|
|
|
<span>✏️</span><span>当日反思编辑</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tr-refl-stats">
|
|
|
|
|
|
|
|
<div class="tr-refl-statcard">
|
|
|
|
|
|
|
|
<div class="tr-refl-statlabel">总盈亏</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statvalue" id="tr-refl-stat-pnl">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statcard">
|
|
|
|
|
|
|
|
<div class="tr-refl-statlabel">交易笔数</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statvalue" id="tr-refl-stat-trades">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statcard">
|
|
|
|
|
|
|
|
<div class="tr-refl-statlabel">胜率</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statvalue" id="tr-refl-stat-winrate">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-statcard">
|
|
|
|
|
|
|
|
<div class="tr-refl-statlabel">已反思</div>
|
|
|
|
|
|
|
|
<div id="tr-refl-stat-reflected">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tr-refl-daily">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-header">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-title">当日反思</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-grid">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-item">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-label">情绪状态</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-value" id="tr-refl-emotion">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-item">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-label">执行纪律</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-value" id="tr-refl-discipline">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-item">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-label">总体评价</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-value" id="tr-refl-overall">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-item">
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-label">市场判断</div>
|
|
|
|
|
|
|
|
<div class="tr-refl-daily-value" id="tr-refl-market">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tr-refl-section-title">交易配对</div>
|
|
|
|
|
|
|
|
<div id="tr-refl-pairs" class="tr-refl-pairs"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tr-refl-unpaired">
|
|
|
|
|
|
|
|
<div class="tr-refl-unpaired-header">
|
|
|
|
|
|
|
|
<div class="tr-refl-section-title">未配对交易</div>
|
|
|
|
|
|
|
|
<button class="tr-btn tr-btn-primary" id="tr-refl-manual-pair-btn">
|
|
|
|
|
|
|
|
<span>🔗</span><span>手动配对</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="tr-refl-unpaired-table">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr><th><input type="checkbox" id="tr-refl-unpaired-select-all" title="全选"></th><th>时间</th><th>品种</th><th>开平</th><th>方向</th><th>价格</th><th>手数</th><th>盈亏</th></tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tr-refl-unpaired-body"></tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div id="tr-refl-unpaired-empty" class="tr-empty" style="display:none;">
|
|
|
|
|
|
|
|
<div class="tr-empty-text">暂无未配对交易</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 6个统计卡片 -->
|
|
|
|
<!-- 经验库子 Tab -->
|
|
|
|
<div id="tr-stats-grid" class="tr-stats-grid"></div>
|
|
|
|
<div id="tr-tab-experience" class="tr-tab-panel">
|
|
|
|
|
|
|
|
<div class="tr-exp-toolbar">
|
|
|
|
|
|
|
|
<input type="text" class="tr-exp-search" id="tr-exp-search" placeholder="搜索经验...">
|
|
|
|
|
|
|
|
<select class="tr-exp-filter" id="tr-exp-tag-filter">
|
|
|
|
|
|
|
|
<option value="">全部标签</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select class="tr-exp-filter" id="tr-exp-type-filter">
|
|
|
|
|
|
|
|
<option value="">全部类型</option>
|
|
|
|
|
|
|
|
<option value="lesson">教训</option>
|
|
|
|
|
|
|
|
<option value="insight">心得</option>
|
|
|
|
|
|
|
|
<option value="strategy">策略</option>
|
|
|
|
|
|
|
|
<option value="discipline">纪律</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="tr-exp-viewtabs">
|
|
|
|
|
|
|
|
<button class="tr-exp-viewtab active" data-view="list">列表</button>
|
|
|
|
|
|
|
|
<button class="tr-exp-viewtab" data-view="timeline">时间线</button>
|
|
|
|
|
|
|
|
<button class="tr-exp-viewtab" data-view="category">分类</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="tr-exp-container" class="tr-exp-grid"></div>
|
|
|
|
|
|
|
|
<div id="tr-exp-empty" class="tr-empty" style="display:none;">
|
|
|
|
|
|
|
|
<div class="tr-empty-icon">📚</div>
|
|
|
|
|
|
|
|
<div class="tr-empty-text">暂无经验记录</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-exp-pagination" id="tr-exp-pagination" style="display:none;">
|
|
|
|
|
|
|
|
<button class="tr-btn tr-btn-secondary" id="tr-exp-prev">上一页</button>
|
|
|
|
|
|
|
|
<span class="tr-exp-pageinfo" id="tr-exp-pageinfo"></span>
|
|
|
|
|
|
|
|
<button class="tr-btn tr-btn-secondary" id="tr-exp-next">下一页</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 账户权益曲线 -->
|
|
|
|
<!-- 反思编辑 Modal -->
|
|
|
|
<div class="tr-chart-box">
|
|
|
|
<div id="tr-refl-edit-modal" class="tr-modal-overlay" onclick="if(event.target===this)trReflCloseEditModal()">
|
|
|
|
<div class="tr-chart-title">账户权益曲线(累计净盈亏 + 每日盈亏)</div>
|
|
|
|
<div class="tr-modal" style="max-width:720px;">
|
|
|
|
<div class="tr-chart-container" id="tr-equity-chart"></div>
|
|
|
|
<div class="tr-modal-header">
|
|
|
|
|
|
|
|
<span class="tr-modal-title">写反思</span>
|
|
|
|
|
|
|
|
<button class="tr-modal-close" onclick="trReflCloseEditModal()">✕</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-modal-body">
|
|
|
|
|
|
|
|
<form id="tr-refl-edit-form">
|
|
|
|
|
|
|
|
<input type="hidden" id="tr-refl-edit-pair-id">
|
|
|
|
|
|
|
|
<div class="tr-form-row">
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">入场理由</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-entry-reason" placeholder="当时为什么入场?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">出场理由</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-exit-reason" placeholder="为什么在这个位置出场?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-row">
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">入场时机评价</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-entry-timing">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option value="excellent">优秀</option>
|
|
|
|
|
|
|
|
<option value="good">良好</option>
|
|
|
|
|
|
|
|
<option value="average">一般</option>
|
|
|
|
|
|
|
|
<option value="poor">较差</option>
|
|
|
|
|
|
|
|
<option value="bad">糟糕</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">出场时机评价</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-exit-timing">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option value="excellent">优秀</option>
|
|
|
|
|
|
|
|
<option value="good">良好</option>
|
|
|
|
|
|
|
|
<option value="average">一般</option>
|
|
|
|
|
|
|
|
<option value="poor">较差</option>
|
|
|
|
|
|
|
|
<option value="bad">糟糕</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">仓位管理反思</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-position" placeholder="仓位是否合理?是否有改进空间?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">纪律评分</label>
|
|
|
|
|
|
|
|
<div class="tr-form-rating" id="tr-refl-discipline-score">
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="1">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="2">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="3">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="4">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="5">★</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">自由反思</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-free" placeholder="还有什么想记录的?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">标签</label>
|
|
|
|
|
|
|
|
<div id="tr-refl-edit-tags" class="tr-tag-pool"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-actions">
|
|
|
|
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trReflCloseEditModal()">取消</button>
|
|
|
|
|
|
|
|
<button type="submit" class="tr-btn tr-btn-primary">保存反思</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 品种盈亏分布气泡图 -->
|
|
|
|
<!-- 当日反思编辑 Modal -->
|
|
|
|
<div class="tr-chart-box">
|
|
|
|
<div id="tr-refl-daily-modal" class="tr-modal-overlay" onclick="if(event.target===this)trReflCloseDailyModal()">
|
|
|
|
<div class="tr-chart-title">品种盈亏分布(气泡大小=手续费占比,颜色=净盈亏)</div>
|
|
|
|
<div class="tr-modal" style="max-width:640px;">
|
|
|
|
<div class="tr-bubble-container" id="tr-bubble-chart"></div>
|
|
|
|
<div class="tr-modal-header">
|
|
|
|
|
|
|
|
<span class="tr-modal-title">当日反思编辑</span>
|
|
|
|
|
|
|
|
<button class="tr-modal-close" onclick="trReflCloseDailyModal()">✕</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-modal-body">
|
|
|
|
|
|
|
|
<form id="tr-refl-daily-form">
|
|
|
|
|
|
|
|
<div class="tr-form-row">
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">情绪状态</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-daily-emotion">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option value="calm">平静</option>
|
|
|
|
|
|
|
|
<option value="confident">自信</option>
|
|
|
|
|
|
|
|
<option value="anxious">焦虑</option>
|
|
|
|
|
|
|
|
<option value="greedy">贪婪</option>
|
|
|
|
|
|
|
|
<option value="fearful">恐惧</option>
|
|
|
|
|
|
|
|
<option value="impulsive">冲动</option>
|
|
|
|
|
|
|
|
<option value="tired">疲惫</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">执行纪律评分</label>
|
|
|
|
|
|
|
|
<div class="tr-form-rating" id="tr-refl-daily-discipline-score">
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="1">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="2">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="3">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="4">★</span>
|
|
|
|
|
|
|
|
<span class="tr-form-star" data-score="5">★</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-row">
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">总体评价</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-daily-overall">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option value="excellent">优秀</option>
|
|
|
|
|
|
|
|
<option value="good">良好</option>
|
|
|
|
|
|
|
|
<option value="average">一般</option>
|
|
|
|
|
|
|
|
<option value="poor">较差</option>
|
|
|
|
|
|
|
|
<option value="bad">糟糕</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">市场判断</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-daily-market">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option value="accurate">准确</option>
|
|
|
|
|
|
|
|
<option value="basically">基本准确</option>
|
|
|
|
|
|
|
|
<option value="deviated">有所偏差</option>
|
|
|
|
|
|
|
|
<option value="wrong">错误</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">总结</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-daily-summary" placeholder="今天交易的最大收获是什么?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-group">
|
|
|
|
|
|
|
|
<label class="tr-form-label">改进方向</label>
|
|
|
|
|
|
|
|
<textarea class="tr-form-textarea" id="tr-refl-daily-improvement" placeholder="明天要注意什么?"></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-actions">
|
|
|
|
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trReflCloseDailyModal()">取消</button>
|
|
|
|
|
|
|
|
<button type="submit" class="tr-btn tr-btn-primary">保存当日反思</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 每日交易详情表 -->
|
|
|
|
<!-- 标签管理 Modal -->
|
|
|
|
<div class="tr-tbl-box">
|
|
|
|
<div id="tr-refl-tags-modal" class="tr-modal-overlay" onclick="if(event.target===this)trReflCloseTagsModal()">
|
|
|
|
<div class="tr-tbl-title">每日交易详情(点击日期查看详情)</div>
|
|
|
|
<div class="tr-modal" style="max-width:560px;">
|
|
|
|
<table class="tr-table">
|
|
|
|
<div class="tr-modal-header">
|
|
|
|
<thead>
|
|
|
|
<span class="tr-modal-title">标签管理</span>
|
|
|
|
<tr>
|
|
|
|
<button class="tr-modal-close" onclick="trReflCloseTagsModal()">✕</button>
|
|
|
|
<th>日期</th><th>笔数</th><th>平仓盈亏</th><th>手续费</th>
|
|
|
|
</div>
|
|
|
|
<th>净盈亏</th><th>盈利笔</th><th>亏损笔</th><th>胜率</th>
|
|
|
|
<div class="tr-modal-body">
|
|
|
|
<th>最大盈利</th><th>最大亏损</th><th>品种数</th>
|
|
|
|
<input type="hidden" id="tr-refl-tags-pair-id">
|
|
|
|
</tr>
|
|
|
|
<div id="tr-refl-tags-preset"></div>
|
|
|
|
</thead>
|
|
|
|
<div class="tr-tag-custom">
|
|
|
|
<tbody id="tr-daily-body"></tbody>
|
|
|
|
<input type="text" class="tr-form-input" id="tr-refl-tag-input" placeholder="输入自定义标签">
|
|
|
|
</table>
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trReflAddCustomTag()">添加</button>
|
|
|
|
<div id="tr-daily-empty" class="tr-empty" style="display:none;">
|
|
|
|
</div>
|
|
|
|
<div class="tr-empty-icon">📊</div>
|
|
|
|
<div class="tr-form-actions">
|
|
|
|
<div class="tr-empty-text">暂无交易数据,请先导入结算单</div>
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trReflCloseTagsModal()">取消</button>
|
|
|
|
|
|
|
|
<button type="button" class="tr-btn tr-btn-primary" onclick="trReflSaveTags()">保存标签</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 品种盈亏排行表 -->
|
|
|
|
<!-- 经验详情 Modal -->
|
|
|
|
<div class="tr-tbl-box">
|
|
|
|
<div id="tr-exp-detail-modal" class="tr-modal-overlay" onclick="if(event.target===this)trExpCloseDetailModal()">
|
|
|
|
<div class="tr-tbl-title">品种盈亏排行(点击查看品种详情)</div>
|
|
|
|
<div class="tr-modal" style="max-width:600px;">
|
|
|
|
<table class="tr-table">
|
|
|
|
<div class="tr-modal-header">
|
|
|
|
<thead>
|
|
|
|
<span class="tr-modal-title" id="tr-exp-detail-title">经验详情</span>
|
|
|
|
<tr>
|
|
|
|
<button class="tr-modal-close" onclick="trExpCloseDetailModal()">✕</button>
|
|
|
|
<th>排名</th><th>代码</th><th>名称</th><th>净盈亏</th>
|
|
|
|
</div>
|
|
|
|
<th>平仓盈亏</th><th>手续费</th><th>胜率</th>
|
|
|
|
<div class="tr-modal-body">
|
|
|
|
<th>盈亏比</th><th>笔数</th><th>操作</th>
|
|
|
|
<div class="tr-exp-detail-meta" id="tr-exp-detail-meta"></div>
|
|
|
|
</tr>
|
|
|
|
<div class="tr-exp-detail-content" id="tr-exp-detail-content"></div>
|
|
|
|
</thead>
|
|
|
|
<div class="tr-exp-detail-tags" id="tr-exp-detail-tags"></div>
|
|
|
|
<tbody id="tr-variety-body"></tbody>
|
|
|
|
<div class="tr-exp-detail-source" id="tr-exp-detail-source"></div>
|
|
|
|
</table>
|
|
|
|
<div class="tr-form-actions">
|
|
|
|
<div id="tr-variety-empty" class="tr-empty" style="display:none;">
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trExpCloseDetailModal()">关闭</button>
|
|
|
|
<div class="tr-empty-icon">📋</div>
|
|
|
|
</div>
|
|
|
|
<div class="tr-empty-text">暂无品种数据</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- AI 分析结果 Modal -->
|
|
|
|
|
|
|
|
<div id="tr-refl-ai-modal" class="tr-modal-overlay" onclick="if(event.target===this)trReflCloseAIModal()">
|
|
|
|
|
|
|
|
<div class="tr-modal" style="max-width:680px;">
|
|
|
|
|
|
|
|
<div class="tr-modal-header">
|
|
|
|
|
|
|
|
<span class="tr-modal-title">AI 分析结果</span>
|
|
|
|
|
|
|
|
<button class="tr-modal-close" onclick="trReflCloseAIModal()">✕</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-modal-body">
|
|
|
|
|
|
|
|
<input type="hidden" id="tr-refl-ai-pair-id">
|
|
|
|
|
|
|
|
<div class="tr-ai-version-row">
|
|
|
|
|
|
|
|
<label class="tr-ai-version-label" for="tr-refl-ai-version">版本</label>
|
|
|
|
|
|
|
|
<select class="tr-form-select" id="tr-refl-ai-version"></select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-section">
|
|
|
|
|
|
|
|
<div class="tr-ai-result-title">综合评价</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-content" id="tr-refl-ai-overall">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-section">
|
|
|
|
|
|
|
|
<div class="tr-ai-result-title">优点</div>
|
|
|
|
|
|
|
|
<ul class="tr-ai-list" id="tr-refl-ai-strengths"></ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-section">
|
|
|
|
|
|
|
|
<div class="tr-ai-result-title">不足</div>
|
|
|
|
|
|
|
|
<ul class="tr-ai-list" id="tr-refl-ai-weaknesses"></ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-section">
|
|
|
|
|
|
|
|
<div class="tr-ai-result-title">经验提炼建议</div>
|
|
|
|
|
|
|
|
<div class="tr-ai-result-content" id="tr-refl-ai-suggestion">-</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tr-form-actions">
|
|
|
|
|
|
|
|
<button type="button" class="tr-btn tr-btn-secondary" onclick="trReflCloseAIModal()">关闭</button>
|
|
|
|
|
|
|
|
<button type="button" class="tr-btn tr-btn-primary" onclick="trReflSaveExperience()">保存到经验库</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|