tower.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends "index.html" %}
  2. {% block title %}水塔監控{% endblock %}
  3. {% block head %}
  4. {{ super() }}
  5. {% endblock %}
  6. {% block body %}
  7. <script type="text/javascript">
  8. // var xhr = new XMLHttpRequest();
  9. // var url = "tower/org";
  10. // var obj="";
  11. // xhr.open("GET",url);
  12. // xhr.onload = function(){
  13. // obj = JSON.parse(xhr.responseText);
  14. // insertHTML();
  15. // };
  16. // xhr.send();
  17. // function insertHTML(){
  18. // var aria = document.getElementById('test');
  19. // aria.innerHTML=xhr.responseText;
  20. // }
  21. </script>
  22. <script type="text/javascript" src="/static/tower.js"></script>
  23. <div id='select_boxes'>
  24. <select class="select-item" id="company-list" onChange="onChangeColumn1();">
  25. <option value=0>公司A</option>
  26. </select>
  27. <select class="select-item" id="factory-list" onChange="onChangeColumn2();">
  28. <option value=0>工廠A</option>
  29. </select>
  30. <select class="select-item" id="department-list" onChange="onChangeColumn3();">
  31. <option value=0>廠區A</option>
  32. </select>
  33. <select class="select-item" id="towerGroup-list">
  34. <option value=0>機組1</option>
  35. </select>
  36. <button id="tower_btn" onclick="click_button();"><i class="fas fa-search me-2"></i>搜尋</button>
  37. </div>
  38. <div id="tower-box">
  39. <div id="tower-img" class="card text-white">
  40. <img src="/static/img/1631004814192.jpg" class="img-fluid" alt="...">
  41. <div id="tower">
  42. </div>
  43. </div>
  44. </div>
  45. <div id='test'></div>
  46. <div id='tower_info'></div>
  47. <div id='tower_perfrom'></div>
  48. {% endblock %}