fix(web): 监控页列宽四修(用户验收08-20)——①本策略持仓(实例账本):新增『数量(可用)』列(=总持仓−冻结,T+1可用股数直读),标的100→90,总持仓/冻结/均价同步收紧②今日成交/全部成交两表:时间160→150定宽,策略160→110(超长省略号悬浮),标的100→90——挤出~120px,治后列折行③账户实况-实例分解:实例180→140+省略号悬浮④账户持仓(QMT全账户):标的110→90;npm run build绿 [vps]
This commit is contained in:
@@ -240,11 +240,14 @@ async function onStop(): Promise<void> {
|
||||
<el-card shadow="never">
|
||||
<template #header><span class="section-title">本策略持仓(实例账本)</span></template>
|
||||
<el-table :data="positions" size="small" empty-text="无持仓">
|
||||
<el-table-column prop="symbol" label="标的" min-width="100" />
|
||||
<el-table-column prop="volume" label="总持仓" width="100" class-name="num" />
|
||||
<el-table-column prop="frozen" label="冻结" width="90" class-name="num" />
|
||||
<el-table-column prop="avg_price" label="均价" width="100" class-name="num" />
|
||||
<el-table-column prop="updated_at" label="更新时间" min-width="160">
|
||||
<el-table-column prop="symbol" label="标的" width="90" />
|
||||
<el-table-column prop="volume" label="总持仓" width="90" class-name="num" />
|
||||
<el-table-column prop="frozen" label="冻结" width="80" class-name="num" />
|
||||
<el-table-column label="数量(可用)" width="100" class-name="num">
|
||||
<template #default="{ row }">{{ row.volume - row.frozen }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="avg_price" label="均价" width="90" class-name="num" />
|
||||
<el-table-column prop="updated_at" label="更新时间" min-width="150">
|
||||
<template #default="{ row }">{{ fmtTime(row.updated_at) }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -254,9 +257,9 @@ async function onStop(): Promise<void> {
|
||||
<el-card shadow="never">
|
||||
<template #header><span class="section-title">本策略今日成交(归因)</span></template>
|
||||
<el-table :data="todayTrades" size="small" empty-text="今日无成交">
|
||||
<el-table-column prop="traded_at" label="时间" min-width="160" />
|
||||
<el-table-column prop="strategy_name" label="策略" min-width="160" />
|
||||
<el-table-column prop="symbol" label="标的" width="100" />
|
||||
<el-table-column prop="traded_at" label="时间" width="150" />
|
||||
<el-table-column prop="strategy_name" label="策略" width="110" show-overflow-tooltip />
|
||||
<el-table-column prop="symbol" label="标的" width="90" />
|
||||
<el-table-column label="方向" width="70">
|
||||
<template #default="{ row }">
|
||||
<span :class="row.direction === '多' || row.direction === 'buy' ? 'up' : 'down'">
|
||||
@@ -274,9 +277,9 @@ async function onStop(): Promise<void> {
|
||||
<el-card shadow="never">
|
||||
<template #header><span class="section-title">本策略全部成交(归因,最新在上)</span></template>
|
||||
<el-table :data="[...trades].reverse()" size="small" empty-text="无成交" max-height="400">
|
||||
<el-table-column prop="traded_at" label="时间" min-width="160" />
|
||||
<el-table-column prop="strategy_name" label="策略" min-width="160" />
|
||||
<el-table-column prop="symbol" label="标的" width="100" />
|
||||
<el-table-column prop="traded_at" label="时间" width="150" />
|
||||
<el-table-column prop="strategy_name" label="策略" width="110" show-overflow-tooltip />
|
||||
<el-table-column prop="symbol" label="标的" width="90" />
|
||||
<el-table-column label="方向" width="70">
|
||||
<template #default="{ row }">
|
||||
<span :class="row.direction === '多' || row.direction === 'buy' ? 'up' : 'down'">
|
||||
@@ -329,7 +332,7 @@ async function onStop(): Promise<void> {
|
||||
<div class="acct-sub-title">实例分解</div>
|
||||
<el-table :data="snap.instances" size="small" empty-text="无实例">
|
||||
<el-table-column prop="id" label="#" width="60" />
|
||||
<el-table-column prop="name" label="实例" min-width="180" />
|
||||
<el-table-column prop="name" label="实例" width="140" show-overflow-tooltip />
|
||||
<el-table-column label="状态" width="90">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="row.status === 'running' ? 'success' : 'info'" size="small">{{ row.status }}</el-tag>
|
||||
@@ -351,7 +354,7 @@ async function onStop(): Promise<void> {
|
||||
|
||||
<div class="acct-sub-title">账户持仓(QMT 全账户)</div>
|
||||
<el-table :data="snap.positions" size="small" empty-text="账户无持仓" max-height="300">
|
||||
<el-table-column prop="symbol" label="标的" min-width="110" />
|
||||
<el-table-column prop="symbol" label="标的" width="90" />
|
||||
<el-table-column prop="volume" label="持仓" width="100" class-name="num" />
|
||||
<el-table-column prop="can_use" label="可卖(T+1)" width="100" class-name="num" />
|
||||
<el-table-column prop="avg_price" label="成本" width="100" class-name="num" />
|
||||
|
||||
Reference in New Issue
Block a user