From 9674e7ff1c682612fdd130005fadc61c2d94bb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Thu, 9 Jul 2026 00:30:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=A8=E9=83=A8=E6=B5=81=E7=A8=8BTab?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0profile=E8=BF=87=E6=BB=A4=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8F=AA=E7=9C=8B=E7=9F=A5=E5=BE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/mofin_health.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 = '
'; + html += ''; + html += '
'; html += ''; pipelines.forEach(p => { const tagCls = p.status==='ok'?'ok':p.status==='error'?'error':'warn'; const statusDisplay = p.last_run ? p.status : '待首次运行'; const profileBadge = p.profile==='position-analyst' ? '📋' : '📦'; - html += ``; + html += ``; html += ``; html += ``; html += ``; @@ -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'; }); }
名称来源脚本/LLM类型调度状态最后运行
${p.name||p.script||'LLM'}
${p.name||p.script||'LLM'}${profileBadge} ${p.profile||'?'}${p.script||'LLM'}${p.type||'cron'}