feat: 增强审核智能体页Word导出能力卡展示
This commit is contained in:
@@ -88,7 +88,68 @@
|
||||
|
||||
<article class="panel">
|
||||
<h2 class="section-title">节点式结果</h2>
|
||||
{% if result and result.structured_output %}
|
||||
{% if export_card %}
|
||||
<div class="stack">
|
||||
<div class="detail-item">
|
||||
<strong>Word 导出能力卡</strong>
|
||||
<div>模板:{{ export_card.template_name }} / {{ export_card.template_version|default:"-" }}</div>
|
||||
<div>当前导出状态:{{ export_card.export_status|default:"-" }}</div>
|
||||
</div>
|
||||
|
||||
<div class="panel" style="padding: 14px;">
|
||||
<h3 class="section-title" style="font-size: 1rem;">回填字段表</h3>
|
||||
<div class="table-wrap">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>占位符</th>
|
||||
<th>字段名</th>
|
||||
<th>字段值</th>
|
||||
<th>来源</th>
|
||||
<th>回填状态</th>
|
||||
<th>是否必填</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in export_card.filled_fields %}
|
||||
<tr>
|
||||
<td>{{ item.placeholder }}</td>
|
||||
<td>{{ item.field_name }}</td>
|
||||
<td>{{ item.field_value }}</td>
|
||||
<td>{{ item.source }}</td>
|
||||
<td>{{ item.fill_status }}</td>
|
||||
<td>{{ item.required|yesno:"是,否" }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="6">当前暂无回填字段。</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel" style="padding: 14px;">
|
||||
<h3 class="section-title" style="font-size: 1rem;">拦截项区</h3>
|
||||
<ul class="detail-list">
|
||||
{% for item in export_card.blocked_fields %}
|
||||
<li class="detail-item">
|
||||
<strong>{{ item.field_name }}</strong>
|
||||
<div>拦截原因:{{ item.block_reason }}</div>
|
||||
<div class="muted">来源:{{ item.risk_source }}</div>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li class="detail-item">当前无拦截项。</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="button-row">
|
||||
<a class="button" href="{% url 'platform_ui:knowledge-base' %}?view=template_mappings">维护 Word 模板</a>
|
||||
<a class="button" href="{% url 'platform_ui:knowledge-base' %}?view=field_schemas">维护字段映射</a>
|
||||
<a class="button" href="{% url 'audit:list' %}">查看导出记录</a>
|
||||
</div>
|
||||
</div>
|
||||
{% elif result and result.structured_output %}
|
||||
<table class="kv-table">
|
||||
<tbody>
|
||||
{% for key, value in result.structured_output.items %}
|
||||
|
||||
Reference in New Issue
Block a user