feat: 打通Word导出文件生成与下载闭环
This commit is contained in:
@@ -133,6 +133,12 @@
|
||||
<div class="button-row" style="margin-top: 16px;">
|
||||
<a class="button" href="{% url 'documents:upload' %}">导入新资料包</a>
|
||||
</div>
|
||||
<form method="post" action="{% url 'chat:export-word' conversation.conversation_id %}" class="stack" style="margin-top: 16px;">
|
||||
{% csrf_token %}
|
||||
<div class="button-row">
|
||||
<button type="submit">生成导出草稿</button>
|
||||
</div>
|
||||
</form>
|
||||
{% else %}
|
||||
<div class="notice">暂无绑定资料包。</div>
|
||||
{% endif %}
|
||||
@@ -159,7 +165,13 @@
|
||||
</li>
|
||||
<li class="detail-item">
|
||||
<strong>导出下载地址</strong>
|
||||
<div>{{ workspace_summary.download_url|default:"-" }}</div>
|
||||
<div>
|
||||
{% if workspace_summary.download_url %}
|
||||
<a href="{{ workspace_summary.download_url }}">下载导出文件</a>
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
<li class="detail-item">当前会话围绕 `conversation_id / batch_id / product_name` 串联。</li>
|
||||
{% if audit_log %}
|
||||
|
||||
Reference in New Issue
Block a user