diff --git a/admin/dashboard/templates/system_llm.html b/admin/dashboard/templates/system_llm.html index 4de79e7..3604102 100644 --- a/admin/dashboard/templates/system_llm.html +++ b/admin/dashboard/templates/system_llm.html @@ -87,7 +87,12 @@
{% raw %}{{ item.name || `DifyApp ${index + 1}` }}{% endraw %} - 删除 +
+ + {% raw %}{{ item.advanced_open ? '收起高级配置' : '展开高级配置' }}{% endraw %} + + 删除 +
@@ -102,6 +107,15 @@
+
+
高级覆盖项(可选)
+
+ + + + +
+
@@ -255,6 +269,7 @@ newDifyApp() { return { uid: this.newUid(), + advanced_open: false, name: '', provider_template: '', app_key: '', @@ -305,6 +320,7 @@ normalizeDifyApp(item) { return { uid: this.newUid(), + advanced_open: false, name: item.name || '', provider_template: item.provider_template || '', app_key: item.app_key || '', @@ -439,6 +455,7 @@ dify_apps: (this.catalog.dify_apps || []).map(item => { const cleaned = { ...item }; delete cleaned.uid; + delete cleaned.advanced_open; return cleaned; }), backends: (this.catalog.backends || []).map(item => { @@ -499,7 +516,21 @@ .section-list { display: flex; flex-direction: column; gap: 12px; } .entry-card { border: 1px solid rgba(148,163,184,0.16); border-radius: 14px; } .entry-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } + .entry-actions { display: flex; align-items: center; gap: 10px; } .entry-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px 14px; } + .advanced-panel { + margin-top: 12px; + padding: 12px; + border-radius: 10px; + border: 1px dashed rgba(148,163,184,0.5); + background: rgba(148,163,184,0.06); + } + .advanced-title { + font-size: 12px; + color: #475569; + margin-bottom: 10px; + font-weight: 600; + } .scene-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(220px, 1fr) auto;