000002.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  5. <meta charset="utf-8">
  6. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  7. <meta content="yes" name="apple-mobile-web-app-capable">
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style">
  9. <meta content="telephone=no" name="format-detection">
  10. <script src="__PUBLIC__/wxapp/js/jquery-1.8.3/jquery.min.js"></script>
  11. <script src="__PUBLIC__/wxapp/js/echarts.min.js"></script>
  12. <script src="__PUBLIC__/html/video/ezuikit.js"></script>
  13. <link rel="stylesheet" href="__PUBLIC__/wxapp/css/jdxf.css">
  14. <title>设备详情</title>
  15. <style>
  16. .bjbox {
  17. margin: 15px 0;
  18. }
  19. .mar {
  20. margin: 0 30px;
  21. }
  22. .bjbox-c {
  23. font-size: 14px;
  24. color: #646464;
  25. }
  26. .box {
  27. height: 20px;
  28. background-color: #F5F5F5;
  29. }
  30. .mar-words {
  31. float: right;
  32. font-size: 18px;
  33. }
  34. .height1dcdcdc {
  35. display: block;
  36. height: 1px;
  37. margin-top: 2px;
  38. margin-bottom: 20px;
  39. background: #DCDCDC;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <!-- 头部 -->
  45. <div class="hand">
  46. <span class="hand-i">
  47. <a href="__MODULE__/Inspection/getDeviceList/record_id/{$record_id}/spot_id/{$spot_id}">
  48. <img style="height: 16px;" src="__PUBLIC__/wxapp/images/jd_07.png" alt="">
  49. </a>
  50. </span>
  51. 设备详情
  52. </div>
  53. <!-- 内容块 -->
  54. <div class="bjbox">
  55. <div class="mar">
  56. <span class="ownername">{$list.owner_name}</span>
  57. <span class="mar-words" style="color: #646464;">{$list.zs_status}</span>
  58. </div>
  59. </div>
  60. <div class="box"></div>
  61. <div class="bjbox">
  62. <div class="bjbox-c mar">基本信息</div>
  63. <div class="height1dcdcdc"></div>
  64. <div class="mar">设备类型:{$list.dwtypes} <br>
  65. 设备编号:{$list.deviceid} <br>
  66. <if condition="$dwtype eq 1 ">
  67. 设备厂家:上海永天<br>
  68. 传输方式:4G<br>
  69. 设备型号:DS-2TD1217<br>
  70. <else/>
  71. 设备厂家:--<br>
  72. 传输方式:--<br>
  73. 设备型号:--<br>
  74. </if>
  75. 物联网卡号:{$list.sim}<br>
  76. 安装位置:{$list.azwz}<br>
  77. 添加时间:{$list.install_time}
  78. </div>
  79. </div>
  80. <div class="box"></div>
  81. <div class="bjbox">
  82. <div class="bjbox-c mar">基本信息</div>
  83. <div class="height1dcdcdc"></div>
  84. <div class="mar">
  85. {$list.owner_address}
  86. </div>
  87. </div>
  88. <div class="box"></div>
  89. <script>
  90. var player = new EZUIPlayer('video123');
  91. player.on('error', function () {
  92. console.log('error');
  93. });
  94. player.on('play', function () {
  95. console.log('play');
  96. });
  97. player.on('pause', function () {
  98. console.log('pause');
  99. });
  100. </script>
  101. <div class="bjbox">
  102. <div class="bjbox-c mar">图表</div>
  103. <div class="height1dcdcdc" style=" margin-bottom: 0;"></div>
  104. <div class="mar" style="margin: 0">
  105. <div id="ownerinfo_3" style="width: 100%;height: 300px"></div>
  106. </div>
  107. </div>
  108. <script>
  109. owner_3();
  110. function owner_3() {
  111. var options = {
  112. title: {
  113. text: '设备统计数据',
  114. subtext: '',
  115. x: 'center'
  116. },
  117. tooltip: {
  118. trigger: 'item',
  119. formatter: "{a} <br/>{b}"
  120. },//({d}%)
  121. legend: {
  122. x: 'center',
  123. y: 'bottom',
  124. data: ['报警总数 {$counts}', '真实报警 {$z_counts}', '解决次数 {$j_counts}', '误报数 {$w_counts}']
  125. },
  126. toolbox: {},
  127. calculable: true,
  128. series: [
  129. {
  130. name: '统计数据',
  131. type: 'pie',
  132. radius: [30, 80],
  133. center: ['50%', '50%'],
  134. roseType: 'radius',
  135. data: [
  136. {value: {$counts}, name: '报警总数 {$counts}'},
  137. {value: {$z_counts}, name: '真实报警 {$z_counts}'},
  138. {value: {$j_counts}, name: '解决次数 {$j_counts}'},
  139. {value: {$w_counts}, name: '误报数 {$w_counts}'}
  140. ]
  141. }
  142. ]
  143. };
  144. var myChart3 = echarts.init(document.getElementById('ownerinfo_3'));//4echers // 基于准备好的dom,初始化echarts实例
  145. myChart3.setOption(options);// 使用刚指定的配置项和数据显示图表。
  146. }
  147. </script>
  148. </body>
  149. </html>