修正历史操作误报当日风控及失败提示
This commit is contained in:
parent
c882819097
commit
b96ce9fba6
|
|
@ -1247,8 +1247,8 @@ body.dock-r:not(.r-fold) .side-r .strip{display:none;}
|
|||
<div class="muted" style="margin-bottom:6px">记录操作结果及未执行原因。</div>
|
||||
<div class="muted" v-if="!opLog.length">还没有操作记录。</div>
|
||||
<div v-for="(o,i) in opLog" :key="i" class="feed-row">
|
||||
<span class="muted mono">{{ (o.at||'').slice(11,16) }}</span>
|
||||
<el-tag size="small" :type="o.result==='OK'?'primary':(o.result==='BLOCKED'?'warning':'info')" style="margin:0 6px">{{ o.result==='OK'?'已执行':(o.result==='BLOCKED'?'被挡下':o.result) }}</el-tag>
|
||||
<span class="muted mono">{{ (o.at||'').slice(0,16) }}</span>
|
||||
<el-tag size="small" :type="o.result==='OK'?'primary':(o.result==='BLOCKED'?'warning':'info')" style="margin:0 6px">{{ o.result==='OK'?'已完成':(o.result==='BLOCKED'?'未完成':o.result) }}</el-tag>
|
||||
<b :title="o.op">{{ opCn(o) }}</b><span v-if="o.ts_code" class="muted"> · {{ nm(o.ts_code) }}</span>
|
||||
<span v-if="o.reason" style="color:var(--warn)"> — {{ o.reason }}</span>
|
||||
</div>
|
||||
|
|
@ -3139,6 +3139,8 @@ createApp({
|
|||
archive_instruction: '从列表移除这笔下单', unarchive_instruction: '重新显示这笔下单',
|
||||
archive_proposal: '从列表移除这条提议', unarchive_proposal: '重新显示这条提议',
|
||||
archive_strategy: '从列表移除这个交易方案', unarchive_strategy: '重新显示这个交易方案',
|
||||
check_qmt_connection: '检查QMT连接', retest_qmt_connection: '复查QMT连接',
|
||||
qmt_postfix_reconcile: 'QMT修复后对账',
|
||||
};
|
||||
const opCn = (o) => {
|
||||
const raw = String((o && o.op) || '').trim();
|
||||
|
|
@ -4981,8 +4983,11 @@ createApp({
|
|||
}
|
||||
for (const o of (opLog.value || [])) {
|
||||
if (o.result === 'OK') continue; // 顺利做完的不占消息栏, 在「操作日志」里查
|
||||
// 操作日志保留历史;当前提醒只收服务端北京时间的当日失败记录。
|
||||
// BLOCKED也用于连接检查或资料不可用,不等于交易合规拒绝。
|
||||
if (!todayDateStr.value || String(o.at || '').slice(0, 10) !== todayDateStr.value) continue;
|
||||
out.push({ kind:'strat', time:_hm(o.at), sort:_hms(o.at), ts_code:o.ts_code || '',
|
||||
cat:opCn(o) + ' ' + (o.result === 'BLOCKED' ? '被合规检查挡下' : ('结果 ' + o.result)),
|
||||
cat:opCn(o) + ' ' + (o.result === 'BLOCKED' ? '未完成' : ('结果 ' + o.result)),
|
||||
strong:true, why:o.reason || '', goLabel:'看记录', go:'ins' });
|
||||
}
|
||||
out.sort((a, b) => String(b.sort).localeCompare(String(a.sort)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue