feat(frontend): 验收UX批A: CTA回测提交统一跳任务中心; 代码编辑「运行回测」直接发起(默认参数+最近1年,CTA/组合分流); 模拟盘策略改下拉; 状态徽标实走文案+去排队兜底 [nas]
This commit is contained in:
@@ -97,7 +97,7 @@ function num(v: number | undefined | null): string {
|
||||
return Math.round(v).toLocaleString('zh-CN')
|
||||
}
|
||||
function statusLabel(s: string): string {
|
||||
return ({ running: '运行中', done: '完成', failed: '失败', created: '已创建', pending: '排队' } as Record<string, string>)[s] || s
|
||||
return ({ running: '运行中', done: '完成', failed: '失败', created: '已创建', pending: '排队', stopped: '已停止' } as Record<string, string>)[s] || s
|
||||
}
|
||||
function rowClass({ row }: { row: PaperTrade }): string {
|
||||
return row.rejected ? 'rejected-row' : ''
|
||||
@@ -119,7 +119,11 @@ function toLive(): void {
|
||||
</p>
|
||||
</div>
|
||||
<div class="head-actions">
|
||||
<span class="chip" :class="`st-${account?.status ?? 'pending'}`">{{ statusLabel(account?.status ?? '') }}</span>
|
||||
<span v-if="account" class="chip" :class="`st-${account.status}`">{{
|
||||
account.mode === 'live' && account.status === 'running'
|
||||
? '实走中 · 每日 20:30 结算'
|
||||
: statusLabel(account.status)
|
||||
}}</span>
|
||||
<el-button v-if="account?.mode === 'live'" type="primary" @click="toLive">实走监控 →</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user