feat: 增强审核智能体页目录与一致性能力卡展示
This commit is contained in:
@@ -115,8 +115,81 @@
|
||||
|
||||
<article class="panel">
|
||||
<h2 class="section-title">节点式结果</h2>
|
||||
{% if export_card or risk_card or notify_card %}
|
||||
{% if analysis_card or export_card or risk_card or notify_card %}
|
||||
<div class="stack">
|
||||
{% if analysis_card %}
|
||||
<div class="detail-item">
|
||||
<strong>{{ analysis_card.title }}</strong>
|
||||
{% if analysis_card.summary %}
|
||||
<div>{{ analysis_card.summary }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="panel" style="padding: 14px;">
|
||||
<h3 class="section-title" style="font-size: 1rem;">摘要指标</h3>
|
||||
<div class="badge-row">
|
||||
{% for item in analysis_card.stats %}
|
||||
<span class="pill pill-accent">{{ item.label }}:{{ item.value }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel" style="padding: 14px;">
|
||||
<h3 class="section-title" style="font-size: 1rem;">节点结果明细</h3>
|
||||
<ul class="detail-list">
|
||||
{% if analysis_card.kind == "overview" %}
|
||||
{% for item in analysis_card.items %}
|
||||
<li class="detail-item">{{ item.chapter_code }} / {{ item.document_count }} 份</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无目录汇总结果。</li>
|
||||
{% endfor %}
|
||||
{% elif analysis_card.kind == "consistency" %}
|
||||
{% for item in analysis_card.items %}
|
||||
<li class="detail-item">
|
||||
<strong>{{ item.field_name|default:"冲突字段" }}</strong>
|
||||
<div>{{ item.issue|default:item }}</div>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无一致性冲突。</li>
|
||||
{% endfor %}
|
||||
{% elif analysis_card.kind == "field_extraction" %}
|
||||
{% for item in analysis_card.items %}
|
||||
<li class="detail-item">
|
||||
<strong>{{ item.field_name|default:item.name }}</strong>
|
||||
<div>{{ item.field_value|default:item.value }}</div>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无抽取字段。</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for item in analysis_card.items %}
|
||||
<li class="detail-item">{{ item }}</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无明细结果。</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel" style="padding: 14px;">
|
||||
<h3 class="section-title" style="font-size: 1rem;">提示与异常</h3>
|
||||
<ul class="detail-list">
|
||||
{% for item in analysis_card.warnings %}
|
||||
<li class="detail-item">
|
||||
{% if analysis_card.kind == "field_extraction" %}
|
||||
<strong>{{ item.field_name|default:item.name|default:"低置信度字段" }}</strong>
|
||||
<div>{{ item.field_value|default:item.value|default:item }}</div>
|
||||
{% else %}
|
||||
{{ item }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无额外提示。</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if risk_card %}
|
||||
<div class="detail-item">
|
||||
<strong>风险预警能力卡</strong>
|
||||
|
||||
Reference in New Issue
Block a user