feat(documents): 增强上传反馈与状态展示

This commit is contained in:
2026-05-30 00:29:03 +08:00
parent 905067277a
commit c2b3a3b4f7
7 changed files with 91 additions and 9 deletions

View File

@@ -29,7 +29,7 @@
<td>{{ document.scenario_id }}</td>
<td>{{ document.file_type }}</td>
<td>{{ document.size }}</td>
<td>{{ document.status }}</td>
<td>{{ document.get_status_display_text }}</td>
<td>
{% if document.status != "indexed" %}
<form action="{% url 'documents:index' document.id %}" method="post">
@@ -42,6 +42,7 @@
{% if document.error_message %}
<pre class="code-block" style="margin-top: 10px;">{{ document.error_message }}</pre>
{% endif %}
<p class="muted" style="margin-top: 10px;">上传时间:{{ document.created_at|date:"Y-m-d H:i" }}</p>
</td>
</tr>
{% empty %}