feat: 增强知识库治理台前台入口与维护导航

This commit is contained in:
2026-06-04 02:33:17 +08:00
parent 0250bd360a
commit e9b3f13eec
4 changed files with 163 additions and 2 deletions

View File

@@ -18,6 +18,51 @@
{% endfor %}
</section>
<section class="workspace-grid" style="grid-template-columns: 280px minmax(0, 1fr);">
<article class="panel">
<h2 class="section-title">治理对象导航</h2>
<p class="section-copy">按治理对象切换当前列表和维护入口保持法规、RAG、字段、模板和通知口径统一。</p>
<ul class="detail-list">
{% for item in governance_objects %}
<li class="detail-item">
<strong>
<a href="?view={{ item.key }}">{{ item.title }}</a>
</strong>
<div class="muted">{{ item.summary }}</div>
{% if active_governance_object.key == item.key %}
<div class="badge-row" style="margin-top: 8px;">
<span class="pill pill-accent">当前对象:{{ item.title }}</span>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</article>
<article class="panel">
<div class="section-heading">
<div>
<h2 class="section-title">{{ active_governance_object.detail_title }}</h2>
<p class="section-copy">{{ active_governance_object.detail_copy }}</p>
</div>
<div class="button-row">
<a class="button" href="{{ active_governance_object.admin_url }}">进入后台维护</a>
</div>
</div>
<div class="badge-row" style="margin-bottom: 14px;">
<span class="pill pill-accent">当前对象:{{ active_governance_object.title }}</span>
</div>
<div class="grid-3">
{% for action in active_governance_object.actions %}
<article class="panel" style="padding: 14px;">
<h3 class="section-title" style="font-size: 0.98rem;">{{ action }}</h3>
<p class="section-copy">该操作在 V1 通过后台维护与治理台入口统一承接。</p>
</article>
{% endfor %}
</div>
</article>
</section>
<section class="grid-3">
{% for section in governance_sections %}
<article class="panel">