feat(approval): 审批详情展示内容采集时间
- 快照单显示「内容采集时间(送审版本)」;live 单显示「打开详情时实时 读取(非送审版本)」,让复核者明确看到的是哪个时点的内容 - live 分支不展示 new Date() 生成的时刻:渲染函数里的时间非响应式, 且 toISOString 为 UTC 会差 8 小时 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
1 parent
9964281c14
commit
ebc9595de2
1 file changed
+15
@@ -246,6 +246,15 @@ async function submitAction(): Promise<void> {
|
|||||||
<!-- 审批内容:优先提交时快照;历史单缺快照时读当前并显式标注 -->
|
<!-- 审批内容:优先提交时快照;历史单缺快照时读当前并显式标注 -->
|
||||||
<div class="content-section">
|
<div class="content-section">
|
||||||
<div class="content-title">审批内容</div>
|
<div class="content-title">审批内容</div>
|
||||||
|
<!-- 采集时间让复核者明确「看到的是哪个时点的内容」:快照=送审时刻;
|
||||||
|
live=打开详情时的当前内容(不做时刻展示——渲染函数里的
|
||||||
|
new Date() 非响应式且 toISOString 是 UTC,会差 8 小时) -->
|
||||||
|
<div v-if="detail.content_source === 'snapshot'" class="content-captured">
|
||||||
|
内容采集时间:{{ formatDateTime(detail.snapshot?.captured_at) }}(送审版本)
|
||||||
|
</div>
|
||||||
|
<div v-else-if="detail.content_source === 'live'" class="content-captured">
|
||||||
|
内容读取时间:打开详情时实时读取(非送审版本)
|
||||||
|
</div>
|
||||||
<el-alert
|
<el-alert
|
||||||
v-if="detail.content_source === 'live'"
|
v-if="detail.content_source === 'live'"
|
||||||
type="warning"
|
type="warning"
|
||||||
@@ -466,6 +475,12 @@ async function submitAction(): Promise<void> {
|
|||||||
color: var(--ys-ink);
|
color: var(--ys-ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content-captured {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--ys-ink-2);
|
||||||
|
}
|
||||||
|
|
||||||
.content-desc {
|
.content-desc {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user