index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>SmartPDU</title>
  7. <link rel="stylesheet" href="CSS/index.css">
  8. <script src="JS/index.js"></script>
  9. <script src="JS/data.js"></script>
  10. <script src="JS/ws.js"></script>
  11. <script src="JS/display_data.js"></script>
  12. <script src="JS/operation.js"></script>
  13. <script src="JS/channel_display.js"></script>
  14. <script src="JS/pagination.js"></script>
  15. <script src="JS/Threshold_Adjust.js"></script>
  16. <script src="JS/system_alarm.js"></script>
  17. <script src="JS/data_process.js"></script>
  18. </head>
  19. <body>
  20. <div class="container">
  21. <div class="labels">
  22. <button class="label-button" onclick="showPage('page1')",id="button1">首页</button>
  23. <button class="label-button" onclick="showPage('page2')",id="button2">总体状态监控</button>
  24. <button class="label-button" onclick="showPage('page3')",id="button3">通道状态监控</button>
  25. <button class="label-button" onclick="showPage('page4')",id="button4">系统报警</button>
  26. <button class="label-button" onclick="showPage('page5')",id="button5">阈值管理</button>
  27. </div>
  28. <div class="content">
  29. <div id="page1" class="page active">
  30. <h1 style="text-align: center;">首页</h1>
  31. </div>
  32. <div id="page2" class="page active">
  33. <h2 id="Total">总体状态监控</h2>
  34. <div id="total_Voltage">
  35. <div id="Voltage_label">
  36. 总电压
  37. </div>
  38. <div id="Voltage">
  39. <div id="L1">
  40. <nav>L1:</nav>
  41. <nav id="L1_voltage" style="margin-top: 2%;"></nav>
  42. <nav style="margin-top: 2%;">&nbsp;V</nav>
  43. </div>
  44. <div id="L2">
  45. <nav>L2:</nav>
  46. <nav id="L2_voltage" style="margin-top: 2%;"></nav>
  47. <nav style="margin-top: 2%;">&nbsp;V</nav>
  48. </div>
  49. <div id="L3">
  50. <nav>L3:</nav>
  51. <nav id="L3_voltage" style="margin-top: 2%;"></nav>
  52. <nav style="margin-top: 2%;">&nbsp;V</nav>
  53. </div>
  54. </div>
  55. </div>
  56. <div id="total_Current">
  57. <div id="Voltage_label">
  58. 总电流
  59. </div>
  60. <div id="Current">
  61. <div id="L1">
  62. <nav>L1:</nav>
  63. <nav id="L1_current" style="margin-top: 2%;"></nav>
  64. <nav style="margin-top: 2%;">&nbsp;A</nav>
  65. </div>
  66. <div id="L2">
  67. <nav>L2:</nav>
  68. <nav id="L2_current" style="margin-top: 2%;"></nav>
  69. <nav style="margin-top: 2%;">&nbsp;A</nav>
  70. </div>
  71. <div id="L3">
  72. <nav>L3:</nav>
  73. <nav id="L3_current" style="margin-top: 2%;"></nav>
  74. <nav style="margin-top: 2%;">&nbsp;A</nav>
  75. </div>
  76. </div>
  77. </div>
  78. <div id="total_Power">
  79. <div id="Voltage_label">
  80. 总功率
  81. </div>
  82. <div id="Power">
  83. <div id="L1">
  84. <nav>L1:</nav>
  85. <nav id="L1_power" style="margin-top: 2%;"></nav>
  86. <nav style="margin-top: 2%;">&nbsp;KW</nav>
  87. </div>
  88. <div id="L2">
  89. <nav>L2:</nav>
  90. <nav id="L2_power" style="margin-top: 2%;"></nav>
  91. <nav style="margin-top: 2%;">&nbsp;KW</nav>
  92. </div>
  93. <div id="L3">
  94. <nav>L3:</nav>
  95. <nav id="L3_power" style="margin-top: 2%;"></nav>
  96. <nav style="margin-top: 2%;">&nbsp;KW</nav>
  97. </div>
  98. </div>
  99. </div>
  100. <div id="total_power_consumption">
  101. <div id="Voltage_label">
  102. 总耗电量
  103. </div>
  104. <div id="power_consumption">
  105. <div id="L1">
  106. <nav>L1:</nav>
  107. <nav id="L1_power_consumption" style="margin-top: 2%;"></nav>
  108. <nav style="margin-top: 2%;">&nbsp;KWh</nav>
  109. </div>
  110. <div id="L2">
  111. <nav>L2:</nav>
  112. <nav id="L2_power_consumption" style="margin-top: 2%;"></nav>
  113. <nav style="margin-top: 2%;">&nbsp;KWh</nav>
  114. </div>
  115. <div id="L3">
  116. <nav>L3:</nav>
  117. <nav id="L3_power_consumption" style="margin-top: 2%;"></nav>
  118. <nav style="margin-top: 2%;">&nbsp;KWh</nav>
  119. </div>
  120. </div>
  121. </div>
  122. <div id="total_freq">
  123. <div id="Voltage_label">
  124. 频率
  125. </div>
  126. <div id="power_consumption">
  127. <div id="L1">
  128. <nav>L1:</nav>
  129. <nav id="L1_freq" style="margin-top: 2%;"></nav>
  130. <nav style="margin-top: 2%;">&nbsp;HZ</nav>
  131. </div>
  132. <div id="L2">
  133. <nav>L2:</nav>
  134. <nav id="L2_freq" style="margin-top: 2%;"></nav>
  135. <nav style="margin-top: 2%;">&nbsp;HZ</nav>
  136. </div>
  137. <div id="L3">
  138. <nav>L3:</nav>
  139. <nav id="L3_freq" style="margin-top: 2%;"></nav>
  140. <nav style="margin-top: 2%;">&nbsp;HZ</nav>
  141. </div>
  142. </div>
  143. </div>
  144. <div id="Operation">
  145. <button id="all_open" onclick="all_open()">总开</button>
  146. <button id="all_close" onclick="all_close()">总关</button>
  147. </div>
  148. </div>
  149. <div id="page3" class="page">
  150. <div id="page2_header">
  151. <div id="page2_title">
  152. <h1 style="text-align: center;">通道状态监控</h1>
  153. </div>
  154. <div id="page2_button">
  155. <button id="all_open" onclick="all_open()">总开</button>
  156. <button id="all_close" onclick="all_close()">总关</button>
  157. </div>
  158. </div>
  159. <div id="page2_table">
  160. <table id="page2_table">
  161. <thead>
  162. <tr>
  163. <th>设备名称</th>
  164. <th>通道名称</th>
  165. <th>通道号</th>
  166. <th>相序</th>
  167. <th>电压(V)</th>
  168. <th>电流(A)</th>
  169. <th>功率(W)</th>
  170. <th>频率(HZ)</th>
  171. <th>耗电量(kWh)</th>
  172. <th>功率因数</th>
  173. <th>开启延时(s)</th>
  174. <th>关闭延时(s)</th>
  175. <th>状态</th>
  176. <th>操作</th>
  177. <th>输出类型</th>
  178. </tr>
  179. </thead>
  180. <tbody id="tbody">
  181. </tbody>
  182. </table>
  183. </div>
  184. <div id="page2_pagination">
  185. </div>
  186. </div>
  187. <div id="page4" class="page">
  188. <h2>系统告警</h2>
  189. <div id="page2_table" style="float:left;margin-left: 10%;">
  190. <table>
  191. <thead id="thead">
  192. <tr>
  193. <th>序号</th>
  194. <th>告警通道</th>
  195. <th>时间</th>
  196. <th>告警内容</th>
  197. </tr>
  198. </thead>
  199. <tbody id="system_alarm">
  200. </tbody>
  201. </table>
  202. </div>
  203. <div id="page3_pagination">
  204. </div>
  205. </div>
  206. <div id="page5" class="page">
  207. <h2>阈值管理</h2>
  208. <div id="page2_table">
  209. <table>
  210. <thead>
  211. <tr>
  212. <th>电源类型</th>
  213. <th>名称</th>
  214. <th>编号</th>
  215. <th>电流上限值(A)</th>
  216. <th>电压上限值(V)</th>
  217. <th>电压下限值(V)</th>
  218. <th>功率上限值(P)</th>
  219. <th>耗电量上限值(kWh)</th>
  220. <th style="width: 5%;">管理</th>
  221. </tr>
  222. </thead>
  223. <tbody id="threshold_mannage">
  224. </tbody>
  225. </table>
  226. </div>
  227. <div id="page2_pagination">
  228. </div>
  229. <div id="editModal" class="modal">
  230. <div class="modal-content">
  231. <h2>阈值修改</h2>
  232. <form id="editForm">
  233. <label for="editId">电流上限值(A)</label>
  234. <input type="text" id="current_upper">
  235. <br>
  236. <label for="editName">电压上限值(V)</label>
  237. <input type="text" id="voltage_upper">
  238. <br>
  239. <label for="editId">电压下限值(V)</label>
  240. <input type="text" id="voltage_lower">
  241. <br>
  242. <label for="editName">功率上限值(P)</label>
  243. <input type="text" id="p_upper">
  244. <br>
  245. <label for="editName">耗电量上限值(kWh)</label>
  246. <input type="text" id="c_upper">
  247. <br>
  248. <label for="mySelect">请选择阈值使能:</label>
  249. <select id="mySelect" onchange="handleSelectChange()">
  250. <option value="option1">仅报警</option>
  251. <option value="option2">待选1</option>
  252. <option value="option3">待选2</option>
  253. </select>
  254. <br>
  255. <button type="button" id="updateRow">确定</button>
  256. <button type="button" id="closeModal">取消</button>
  257. </form>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </body>
  264. </html>