tower.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.js"></script>
  24. <div id='select_boxes'>
  25. <select class="select-item" id="company-list" onChange="onChangeColumn1();">
  26. <option value=0>公司A</option>
  27. </select>
  28. <select class="select-item" id="factory-list" onChange="onChangeColumn2();">
  29. <option value=0>工廠A</option>
  30. </select>
  31. <select class="select-item" id="department-list" onChange="onChangeColumn3();">
  32. <option value=0>廠區A</option>
  33. </select>
  34. <select class="select-item" id="towerGroup-list">
  35. <option value=0>機組1</option>
  36. </select>
  37. <button id="tower_btn" onclick="click_button();"><i class="fas fa-search me-2"></i>搜尋</button>
  38. </div>
  39. <div id="tower-box">
  40. <div id="tower-img" class="card text-white">
  41. <img src="/static/img/1631004814192.jpg" class="img-fluid" alt="...">
  42. <div id="tower">
  43. </div>
  44. </div>
  45. </div>
  46. <div id='test'></div>
  47. <div id='tower_info'></div>
  48. <div id='tower_perfrom'></div>
  49. <canvas id="channel_predict" width="40" height="40"></canvas>
  50. {% endblock %}