index.html 12 KB

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