From 9bb4bda8a47975b40ee103880898fd97a66871a8 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sun, 16 Aug 2026 18:40:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20#86a=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E9=80=89=E6=A0=87=E7=9A=84=E2=80=94=E2=80=94?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AE=9A=E7=A8=BF=E3=80=8C=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E4=B8=8D=E9=80=89=E6=A0=87=E7=9A=84,=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F/=E5=AE=9E=E7=9B=98=E6=97=B6=E5=86=8D?= =?UTF-8?q?=E5=AE=9A=E3=80=8D:=E5=AE=9E=E4=BE=8B=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=88=A0=E3=80=8C=E6=A0=87=E7=9A=84/=E6=B1=A0=E3=80=8D?= =?UTF-8?q?=E6=95=B4=E5=8D=A1(POOL=5FOPTIONS/isPortfolio=E9=9A=8F=E5=88=A0?= =?UTF-8?q?),symbol=5For=5Fpool=E4=B8=8D=E5=86=8D=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E5=B1=95=E7=A4=BA;=E7=AD=96=E7=95=A5=E5=BA=93=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=A0=87=E7=9A=84=E7=A9=BA=E6=98=BE'=E2=80=94?= =?UTF-8?q?=EF=BC=88=E5=8F=91=E8=B5=B7=E6=97=B6=E5=AE=9A=EF=BC=89';?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E8=A1=A8=E5=8D=95=E6=9C=AC=E5=B0=B1=E6=9C=89?= =?UTF-8?q?=E5=8F=AF=E7=BC=96=E8=BE=91=E6=A0=87=E7=9A=84=E8=BE=93=E5=85=A5?= =?UTF-8?q?(=E5=AE=9E=E4=BE=8B=E5=80=BC=E4=BB=85=E4=BD=9C=E9=A2=84?= =?UTF-8?q?=E5=A1=AB=E5=85=9C=E5=BA=95,=E6=96=B0=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E7=A9=BA=E2=86=92=E9=BB=98=E8=AE=A4600000/=E6=B1=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4),=E5=8F=91=E8=B5=B7=E6=97=B6=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=8D=B3=E6=9D=83=E5=A8=81(=E5=90=8E=E7=AB=AFpaper=20create?= =?UTF-8?q?=E6=9C=AC=E5=B0=B1=E7=94=A8=E8=A1=A8=E5=8D=95=E5=80=BC,?= =?UTF-8?q?=E6=97=A0=E8=A6=86=E7=9B=96=E9=9B=B7);=E8=80=81=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=B7=B2=E5=AD=98=E5=80=BC=E4=B8=8D=E5=8F=97=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E7=BB=A7=E7=BB=AD=E9=A2=84=E5=A1=AB;build=E7=BB=BF(vu?= =?UTF-8?q?e-tsc)=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/strategy/InstanceEdit.vue | 21 -------------------- frontend/src/views/strategy/List.vue | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/frontend/src/views/strategy/InstanceEdit.vue b/frontend/src/views/strategy/InstanceEdit.vue index bfd377d..393eafc 100644 --- a/frontend/src/views/strategy/InstanceEdit.vue +++ b/frontend/src/views/strategy/InstanceEdit.vue @@ -41,15 +41,7 @@ const form = reactive({ const paramValues = reactive>({}) const selectedCode = computed(() => codes.value.find((c) => c.name === form.code_file)) -const isPortfolio = computed(() => selectedCode.value?.type === 'portfolio') -const POOL_OPTIONS = [ - { label: '沪深300', value: 'HS300' }, - { label: '中证500', value: 'ZZ500' }, - { label: '中证1000', value: 'ZZ1000' }, - { label: '中证2000', value: 'ZZ2000' }, - { label: '全市场', value: 'ALL' }, -] // miniQMT 成品K线周期全量选项(共享常量,默认日线) const SESSION_OPTIONS = [ { label: '下一根 K线 · 开盘价(防未来函数,推荐)', value: 'next_open', dayOnly: false }, @@ -201,19 +193,6 @@ async function onDelete(): Promise { - - - - - - - - - {{ isPortfolio ? '组合策略选预设池(成分股由数据层展开)' : 'CTA 输入单标的代码' }} - - - - diff --git a/frontend/src/views/strategy/List.vue b/frontend/src/views/strategy/List.vue index a7193fd..50d4de2 100644 --- a/frontend/src/views/strategy/List.vue +++ b/frontend/src/views/strategy/List.vue @@ -318,7 +318,7 @@ const runningRows = computed(() => #{{ i.id }} · {{ i.interval }} · 更新 {{ i.updated_at }}
{{ paramSummary(i.params) }}
-
{{ i.symbol_or_pool }}
+
{{ i.symbol_or_pool || '—(发起时定)' }}
{{ pct(latestRet(i)) }}{{ retInfoOf(i).label }}