feat(regulatory): 展示法规核查工作流卡片
This commit is contained in:
@@ -177,6 +177,7 @@
|
||||
data-attachment-url-template="/api/review-agent/conversations/__conversation_id__/attachments/"
|
||||
data-message-url-template="/api/review-agent/conversations/__conversation_id__/messages/"
|
||||
data-status-url-template="/api/review-agent/file-summary/__batch_id__/status/"
|
||||
data-regulatory-status-url-template="/api/review-agent/regulatory-review/__batch_id__/status/"
|
||||
data-events-url-template="/api/review-agent/file-summary/__batch_id__/events/"
|
||||
>
|
||||
<section class="summary-section upload-section">
|
||||
@@ -221,10 +222,11 @@
|
||||
<h3>工作流</h3>
|
||||
</div>
|
||||
<div class="workflow-card-list workflow-batch-carousel" id="workflowCardList" data-active-index="0">
|
||||
{% for batch in summary_batches %}
|
||||
{% for batch in workflow_cards %}
|
||||
<article
|
||||
class="workflow-card{% if forloop.first %} active{% endif %}"
|
||||
data-batch-id="{{ batch.pk }}"
|
||||
data-batch-id="{{ batch.id }}"
|
||||
data-workflow-type="{{ batch.workflow_type }}"
|
||||
data-workflow-index="{{ forloop.counter0 }}"
|
||||
aria-hidden="{% if forloop.first %}false{% else %}true{% endif %}"
|
||||
>
|
||||
@@ -232,11 +234,14 @@
|
||||
<strong>{{ batch.batch_no }}</strong>
|
||||
<span class="workflow-status status-{{ batch.status }}">{{ batch.status }}</span>
|
||||
</header>
|
||||
{% if batch.risk_label %}
|
||||
<p class="workflow-risk-summary">{{ batch.risk_label }}</p>
|
||||
{% endif %}
|
||||
{% if batch.error_message %}
|
||||
<p class="workflow-error">{{ batch.error_message }}</p>
|
||||
{% endif %}
|
||||
<ol>
|
||||
{% for node in batch.node_runs.all %}
|
||||
{% for node in batch.nodes %}
|
||||
<li class="node-status status-{{ node.status }}" data-node-code="{{ node.node_code }}">
|
||||
<div>
|
||||
<span>{{ node.node_name }}</span>
|
||||
@@ -250,11 +255,11 @@
|
||||
{% empty %}
|
||||
<div class="panel-empty">暂无工作流</div>
|
||||
{% endfor %}
|
||||
{% if summary_batches %}
|
||||
{% if workflow_cards %}
|
||||
<div class="workflow-batch-controls">
|
||||
<button type="button" class="workflow-batch-btn" data-workflow-action="prev" aria-label="上一个工作流">‹</button>
|
||||
<div class="workflow-batch-dots" aria-label="工作流批次">
|
||||
{% for batch in summary_batches %}
|
||||
{% for batch in workflow_cards %}
|
||||
<button
|
||||
type="button"
|
||||
class="workflow-batch-dot{% if forloop.first %} active{% endif %}"
|
||||
|
||||
Reference in New Issue
Block a user