echart.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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>高精度多通道数据采集系统管理平台</title>
  7. <link rel="stylesheet" href="css/echart.css" />
  8. </head>
  9. <style>
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. #box {
  15. width: 800px;
  16. height: 66px;
  17. margin: 0 auto;
  18. }
  19. img {
  20. width: 63px;
  21. height: 60px;
  22. margin-top: 20px;
  23. line-height: 20px;
  24. }
  25. h1 {
  26. margin-top: -72px;
  27. margin-left: 68px;
  28. width: 750px;
  29. }
  30. h2,
  31. span {
  32. margin-left: 10px;
  33. display: inline-block;
  34. color: #fff;
  35. }
  36. p {
  37. margin-left: 20px;
  38. display: inline-block;
  39. width: 90px;
  40. height: 20px;
  41. background-color: green;
  42. border: 1px solid green;
  43. border-radius: 5px;
  44. }
  45. p a {
  46. height: 20px;
  47. border-radius: 5px;
  48. color: red;
  49. text-align: center;
  50. margin-left: 8px;
  51. text-decoration: none;
  52. }
  53. canvas {
  54. color: #fff;
  55. }
  56. .map {
  57. width: 492px;
  58. height: 502px;
  59. margin: 0 auto;
  60. }
  61. .map .data {
  62. width: 492px;
  63. height: 356px!important;
  64. color: #fff;
  65. }
  66. .map .data canvas {
  67. position: absolute;
  68. left: 0px;
  69. top: 0px;
  70. width: 492px;
  71. height: 392px!important;
  72. user-select: none;
  73. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  74. padding: 0px;
  75. margin: 0px;
  76. border-width: 0px;
  77. }
  78. .map .table {
  79. width: 446px;
  80. height: 260px;
  81. border-radius: 10px;
  82. /* background: url(./images/2.png) no-repeat; */
  83. margin-top: 22px;
  84. margin-left: 20px;
  85. }
  86. tr {
  87. text-align: center;
  88. height: 60px;
  89. }
  90. td {
  91. border: 1.5px solid #02a6b5;
  92. border-right: 1px;
  93. text-align: center;
  94. height: 60px;
  95. }
  96. td:last-child {
  97. border-right: 2px solid #02a6b5;
  98. }
  99. tr:nth-child(3) {
  100. border: 1px;
  101. }
  102. th {
  103. border-top: 2px solid #02a6b5;
  104. border-left: 2px solid #02a6b5;
  105. border-radius: 5px;
  106. height: 20px;
  107. color: #fff;
  108. }
  109. th:last-child {
  110. border-right: 2px solid #02a6b5;
  111. }
  112. td {
  113. font-size: 12px;
  114. padding: 10px;
  115. color: #fff;
  116. }
  117. tr>th:nth-child(1) {
  118. border-color: #02a6b5;
  119. border-radius: 5px;
  120. }
  121. .main {
  122. height: 40px;
  123. width: 100%;
  124. margin-top: 20px;
  125. }
  126. .home {
  127. text-align: center;
  128. font-size: 22.5px;
  129. color: #fff;
  130. }
  131. .home input {
  132. display: inline-block;
  133. width: 173px;
  134. height: 20px;
  135. background: rgba(0, 0, 0, .2);
  136. color: #02a6b5;
  137. padding: 20px 20px;
  138. font-size: 30px;
  139. }
  140. .home button {
  141. display: inline-block;
  142. width: 81px;
  143. height: 35px;
  144. font-size: 18px;
  145. line-height: 14px;
  146. margin-bottom: 2px;
  147. background: rgba(184, 144, 144, 0.2);
  148. color: #02a6b5;
  149. border-radius: 5px;
  150. }
  151. </style>
  152. <body>
  153. <!-- 头部 -->
  154. <header>
  155. <div id="box">
  156. <img src="./images/icon1.png" alt="">
  157. <h1>高精度多通道数据采集
  158. </h1>
  159. </div>
  160. <div class="show-time"></div>
  161. </header>
  162. <div class="main">
  163. <div class="home">
  164. 本次实验的基本信息:实验进行时间
  165. <input type="text" id="timetext" onclick="start()" value="00:00:00" readonly style="text-align:center">
  166. <button type="button" onclick="start()">开始</button>
  167. <button type="button" onclick="stop()">停止时间</button>
  168. <button type="button" onclick="Reset()">重置</button>
  169. <button type="button" id="but" style="color:red">停止实验</button>
  170. </div>
  171. </div>
  172. <!-- 页面主体 -->
  173. <section class="mainbox">
  174. <!-- 左侧盒子 -->
  175. <div class="column">
  176. <div class="panel bar">
  177. <h2>传感器1-数据变化</h2>
  178. <!-- 图表放置盒子 -->
  179. <div class="chart"></div>
  180. <!-- 伪元素绘制盒子下边角 -->
  181. <div class="panel-footer"></div>
  182. </div>
  183. <div class="panel line">
  184. <h2>传感器2-数据变化
  185. </h2>
  186. <div class="chart"></div>
  187. <div class="panel-footer"></div>
  188. </div>
  189. </div>
  190. <!-- 中间盒子 -->
  191. <div class="column">
  192. <!-- 头部 no模块 -->
  193. <!-- map模块 -->
  194. <div class="map">
  195. <div class="data" style="height:290px;color:#fff"></div>
  196. <div class="table">
  197. <table cellspacing="0" align="center" width="100%" cellpadding="8px">
  198. <tbody>
  199. <tr>
  200. <th>序号</th>
  201. <th>传感器名称</th>
  202. <th>型号</th>
  203. <th>状态</th>
  204. </tr>
  205. <tr>
  206. <td>1</td>
  207. <td>温度传感器</td>
  208. <td>string</td>
  209. <td>正常</td>
  210. </tr>
  211. <tr>
  212. <td>2</td>
  213. <td>振动传感器</td>
  214. <td>string</td>
  215. <td>正常</td>
  216. </tr>
  217. <tr>
  218. <td>3</td>
  219. <td>电流传感器</td>
  220. <td>string</td>
  221. <td>正常</td>
  222. </tr>
  223. <tr>
  224. <td>4</td>
  225. <td>电压传感器</td>
  226. <td>string</td>
  227. <td>正常</td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. </div>
  232. </div>
  233. </div>
  234. <!-- 右侧盒子 -->
  235. <div class="column">
  236. <div class="panel bar2">
  237. <h2>传感器3-数据变化</h2>
  238. <div class="chart"></div>
  239. <div class="panel-footer"></div>
  240. </div>
  241. <div class="panel line2">
  242. <h2>传感器4-数据变化</h2>
  243. <div class="chart"></div>
  244. <div class="panel-footer"></div>
  245. </div>
  246. </div>
  247. </section>
  248. <script src="js/flexible.js"></script>
  249. <script src="js/echarts.min.js"></script>
  250. <script src="js/jquery.js"></script>
  251. <!-- 引入china.js 完成地图模块 -->
  252. <script src="js/china.js"></script>
  253. <script src="js/echart2.js"></script>
  254. <script src="js/echart6.js"></script>
  255. </body>
  256. </html>