tj1.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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, maximum-scale=1, user-scalable=no">
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="Cache-Control" content="no-siteapp" />
  8. <title>24小时温度图</title>
  9. <meta name="keywords" content="">
  10. <meta name="description" content="">
  11. <!--[if lt IE 9]>
  12. <meta http-equiv="refresh" content="0;ie.html" />
  13. <![endif]-->
  14. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.min.css">
  15. <script src="/static/jquery-1.11.3.min.js"></script>
  16. <script type="text/javascript" src="/static/echarts.js"></script>
  17. <style>
  18. .content{
  19. width: 100%;
  20. height: auto;
  21. overflow: hidden;
  22. }
  23. .content img{
  24. max-width: 100%;
  25. }
  26. .commpany{
  27. padding: 0.5rem;
  28. }
  29. </style>
  30. <style type="text/css">
  31. .container{
  32. padding: 20px;
  33. width: 100%;
  34. height: auto;
  35. overflow: hidden;
  36. }
  37. .toplogo{
  38. width: 80%;
  39. height: auto;
  40. margin: 20px auto;
  41. }
  42. .package-status {
  43. padding: 18px 0 0 0
  44. }
  45. .package-status .status-list {
  46. margin: 0;
  47. padding: 0;
  48. margin-top: -5px;
  49. padding-left: 8px;
  50. list-style: none;
  51. }
  52. .package-status .status-list>li {
  53. border-left: 2px solid #0278D8;
  54. text-align: left;
  55. }
  56. .package-status .status-list>li:before {
  57. /* 流程点的样式 */
  58. content: '';
  59. border: 3px solid #0278D8;
  60. background-color: #0278D8;
  61. display: inline-block;
  62. width: 6px;
  63. height: 6px;
  64. border-radius: 10px;
  65. margin-left: -7px;
  66. margin-right: 10px
  67. }
  68. .package-status .status-box {
  69. overflow: hidden
  70. }
  71. .package-status .status-list>li {
  72. height: auto;
  73. width: 95%;
  74. }
  75. .package-status .status-list {
  76. margin-top: -8px
  77. }
  78. .package-status .status-box {
  79. position: relative
  80. }
  81. .package-status .status-box:before {
  82. content: " ";
  83. background-color: #f3f3f3;
  84. display: block;
  85. position: absolute;
  86. top: -8px;
  87. left: 20px;
  88. width: 10px;
  89. height: 4px
  90. }
  91. .package-status .status-list {
  92. margin-top: 0px;
  93. }
  94. .status-list>li:not(:first-child) {
  95. padding-top: 10px;
  96. }
  97. .status-content-before {
  98. text-align: left;
  99. margin-left: 25px;
  100. margin-top: -20px;
  101. }
  102. .status-content-latest {
  103. text-align: left;
  104. margin-left: 25px;
  105. color: #f0ad4e;
  106. margin-top: -20px;
  107. }
  108. .status-time-before {
  109. text-align: left;
  110. margin-left: 25px;
  111. font-size: 10px;
  112. margin-top: 5px;
  113. }
  114. .status-time-latest {
  115. text-align: left;
  116. margin-left: 25px;
  117. color: #f0ad4e;
  118. font-size: 10px;
  119. margin-top: 5px;
  120. }
  121. .status-line {
  122. border-bottom: 1px solid #ccc;
  123. margin-left: 25px;
  124. margin: 10px 0 20px 0;
  125. }
  126. .list {
  127. padding: 0 20px;
  128. background-color: #F8F8F8;
  129. margin: 10px 0 0 25px;
  130. border: 1px solid #EBEBEB;
  131. }
  132. .list li {
  133. line-height: 30px;
  134. color: #616161;
  135. }
  136. </style>
  137. </head>
  138. <body>
  139. <div class="container">
  140. <div><h2>24小时温度图</h2></div>
  141. <div class="row">
  142. <div class="col-sm-12">
  143. <div class="ibox float-e-margins">
  144. <div class="ibox-content">
  145. <div style="height: 300px" id="tj1"></div>
  146. </div>
  147. <div class="ibox-content" >
  148. <table class="table table-bordered" >
  149. <thead>
  150. <tr>
  151. {foreach $data[0] as $v}
  152. <th>{$v.name}</th>
  153. {/foreach}
  154. </tr>
  155. <tr>
  156. {foreach $data[0] as $v}
  157. <td>{$v.value}</td>
  158. {/foreach}
  159. </tr>
  160. <tr>
  161. {foreach $data[1] as $v}
  162. <th>{$v.name}</th>
  163. {/foreach}
  164. </tr>
  165. <tr>
  166. {foreach $data[1] as $v}
  167. <td>{$v.value}</td>
  168. {/foreach}
  169. </tr>
  170. <tr>
  171. {foreach $data[2] as $v}
  172. <th>{$v.name}</th>
  173. {/foreach}
  174. </tr>
  175. <tr>
  176. {foreach $data[2] as $v}
  177. <td>{$v.value}</td>
  178. {/foreach}
  179. </tr>
  180. <tr>
  181. {foreach $data[3] as $v}
  182. <th>{$v.name}</th>
  183. {/foreach}
  184. </tr>
  185. <tr>
  186. {foreach $data[3] as $v}
  187. <td>{$v.value}</td>
  188. {/foreach}
  189. </tr>
  190. </thead>
  191. </table>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </body>
  198. <script>
  199. option = {
  200. xAxis: {
  201. type: 'category',
  202. data: {:json_encode($key)}
  203. },
  204. yAxis: {
  205. type: 'value'
  206. },
  207. series: [{
  208. data: {:json_encode($value)},
  209. type: 'line'
  210. }],
  211. tooltip : {
  212. trigger: 'axis',
  213. axisPointer: {
  214. type: 'cross',
  215. label: {
  216. backgroundColor: '#6a7985'
  217. }
  218. }
  219. }
  220. };
  221. var myChart = echarts.init(document.getElementById('tj1'));
  222. myChart.setOption(option);
  223. </script>
  224. </html>