index.html 12 KB

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