固定六个交易品种并修正 1/5/9 月合约轮换规则

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-05-03 16:09:50 +08:00
parent a1355d91aa
commit dc22799985
2 changed files with 49 additions and 6 deletions

View File

@@ -4,6 +4,8 @@ import { ElMessage } from 'element-plus'
import { listContracts } from '@/api/scores'
import { runPipeline, type RunResponse } from '@/api/run'
const SYMBOLS = ['FG', 'SA', 'RB', 'MA', 'CF', 'M']
const form = reactive<{
ts_code: string
symbol: string
@@ -83,12 +85,10 @@ onMounted(async () => {
/>
</el-select>
</el-form-item>
<el-form-item label="品种代号">
<el-input
v-model="form.symbol"
placeholder="未选合约时按此品种选主力,如 FG"
clearable
/>
<el-form-item label="品种">
<el-select v-model="form.symbol" style="width: 100%">
<el-option v-for="s in SYMBOLS" :key="s" :label="s" :value="s" />
</el-select>
</el-form-item>
<el-form-item label="打分日期">
<el-date-picker