From 5248062102d7c18e741d80a9e7ca56d04d92ccbd Mon Sep 17 00:00:00 2001 From: claude_dev Date: Thu, 13 Aug 2026 14:04:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(history):=20=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8A=A0=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4(created?= =?UTF-8?q?=5Fat)+=E7=B1=BB=E5=9E=8B=E5=91=BD=E5=90=8D=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E8=8F=9C=E5=8D=95(=E4=B8=AA=E8=82=A1=E5=9B=9E=E6=B5=8B/?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=9B=9E=E6=B5=8B/=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96/=E5=9B=A0=E5=AD=90=E5=88=86=E6=9E=90)+?= =?UTF-8?q?=E5=88=97=E5=AE=BD=E5=9D=87=E8=A1=A1(=E5=8E=BB=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=88=97)=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/backtest/History.vue | 38 ++++++++++--------------- sanguo_api/routes.py | 2 ++ sanguo_backtest/result_store.py | 4 ++- 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/frontend/src/views/backtest/History.vue b/frontend/src/views/backtest/History.vue index 5cf01be..ee50b61 100644 --- a/frontend/src/views/backtest/History.vue +++ b/frontend/src/views/backtest/History.vue @@ -18,8 +18,8 @@ const pageSize = 20 const typeOptions = [ { key: 'all', label: '全部' }, - { key: 'cta', label: '回测' }, - { key: 'portfolio', label: '组合' }, + { key: 'cta', label: '个股回测' }, + { key: 'portfolio', label: '组合回测' }, { key: 'optimize', label: '参数优化' }, { key: 'factor', label: '因子分析' }, ] as const @@ -113,7 +113,7 @@ function open(row: TaskListItem): void { else router.push(`/backtest/result/${row.task_id}`) } -const typeLabelMap: Record = { cta: '回测', portfolio: '组合', optimize: '优化', factor: '因子' } +const typeLabelMap: Record = { cta: '个股回测', portfolio: '组合回测', optimize: '参数优化', factor: '因子分析' } function typeLabel(t: string): string { return typeLabelMap[t] || t } @@ -151,30 +151,22 @@ function statusLabel(s: string): string { - - + + - - + + - - - + + + + - - - + + - - + +