classic_problem.html 2.0 KB

12345678910111213141516171819202122232425
  1. <!doctype html><html lang="zh" data-theme="light"><head><meta charset="utf-8"><script>(function(){try{var q=new URLSearchParams(location.search).get("theme");if(q){localStorage.setItem("windscada_theme",q)}var t=q||"light";document.documentElement.setAttribute("data-theme",t)}catch(e){}})();</script><meta name="viewport" content="width=device-width,initial-scale=1">
  2. <title>%T% %SYS% · windscada</title><style>%CSS%</style></head><body>
  3. <header><h1>%T% · %SYS%</h1><span id="winbox"></span>
  4. <a class="badge" href="/">← 总览</a><a class="badge" href="/turbine/%T%">本台全部问题</a></header>
  5. <div id="one">加载中…</div>
  6. <footer>单问题视图: 只呈现本台该系统的判据与证据图, 不带出其他系统</footer>
  7. <script>%JS%
  8. const T='%T%', SYS='%SYS%', SYSRAW='%SYSRAW%', SYSOK=('%SYSOK%'==='1');
  9. async function reload(win){
  10. const r=await fetch('/api/problem?t='+T+'&sys='+encodeURIComponent(SYS)+'&win='+encodeURIComponent(win)); const d=await r.json();
  11. document.getElementById('winbox').innerHTML=winSel(win);
  12. let h='';
  13. // ★2026-09-22 用户测试 3/5: 三种"空"必须分清 —— ①系统标识认不出(链接传错)②本时间窗确实无非常态
  14. // ③接口报错。以前三者都落到"该系统在判级时间窗内无非常态",对报警机组就是**假陈述**。
  15. if(!SYSOK){h=`<div class="card"><p class="empty">系统标识「${SYSRAW}」无法识别(应为本场九系统之一,如 变桨/偏航/齿轮箱/发电机…)。请从「部件问题 → 系统卡 → 报警机组」的链接进入。</p></div>`}
  16. else if(!d.problems || !d.problems.length){h=`<div class="card"><p class="empty">${SYS} 在所选时间窗内无非常态。</p></div>`}
  17. else d.problems.forEach(p=>{
  18. h+=`<div class="card mb"><h3>${p.sys} ${chip(p.状态)}</h3><p style="margin-bottom:8px">${p.依据}</p></div>`;
  19. if(p.figs.length){h+=`<div class="grid">`; p.figs.forEach(f=>{h+=drawFig(f)}); h+=`</div>`}
  20. h+=ordersHtml(p.orders);
  21. });
  22. document.getElementById('one').innerHTML=h;
  23. }
  24. reload('2026年');
  25. </script></body></html>