diff --git a/static/mofin_health.html b/static/mofin_health.html index 7db73939..4b00f466 100644 --- a/static/mofin_health.html +++ b/static/mofin_health.html @@ -211,13 +211,18 @@ function renderDataFlow(entities, jsonFiles, architecture) { } function renderPipelineTable(pipelines) { - let html = ''; + let html = '
| 名称 | 来源 | 脚本/LLM | 类型 | 调度 | 状态 | 最后运行 |
|---|---|---|---|---|---|---|
| ${p.name||p.script||'LLM'} | `; + html += `||||||
| ${p.name||p.script||'LLM'} | `; html += `${profileBadge} ${p.profile||'?'} | `; html += `${p.script||'LLM'} | `; html += `${p.type||'cron'} | `; @@ -231,8 +236,13 @@ function renderPipelineTable(pipelines) { function filterPipes() { const q = document.getElementById('pipeSearch').value.toLowerCase(); + const profile = document.getElementById('pipeProfile').value; document.querySelectorAll('.pipe-row').forEach(r => { - r.style.display = r.textContent.toLowerCase().includes(q) ? '' : 'none'; + const name = r.getAttribute('data-name') || ''; + const rp = r.getAttribute('data-profile') || 'default'; + const matchName = !q || name.includes(q); + const matchProfile = profile === 'all' || rp === profile; + r.style.display = matchName && matchProfile ? '' : 'none'; }); }