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 }}