test-data.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. var TESTDATA = {
  2. "code": 0,
  3. "msg": "操作成功",
  4. "data": {
  5. "device": {
  6. "total": 140,
  7. "online": 48,
  8. "stop8": 10,
  9. "stop1": 12,
  10. "stop2": 35,
  11. "stop6": 18,
  12. "alarm": 2
  13. },
  14. "efficiency": {
  15. "totalLength": 9522.11,
  16. "totalWeight": 30.79,
  17. "blength": 5022.11,
  18. "aefficiency": 86.63,
  19. "bweight": 16.24,
  20. "befficiency": 86.63,
  21. "btime": 9.1,
  22. "alength": 4500,
  23. "atime": 9.5,
  24. "aweight": 14.55
  25. },
  26. "alarm": [{
  27. "name": "小经编机2号",
  28. "code": "C_2",
  29. "type": 1
  30. }, {
  31. "name": "小经编机5号",
  32. "code": "C_5",
  33. "type": 2
  34. }, {
  35. "name": "小经编机7号",
  36. "code": "C_7",
  37. "type": 25
  38. }, {
  39. "name": "小经编机8号",
  40. "code": "C_8",
  41. "type": 8
  42. }, {
  43. "name": "小经编机97号",
  44. "code": "C_97",
  45. "type": 22
  46. }, {
  47. "name": "小经编机98号",
  48. "code": "C_98",
  49. "type": 15
  50. }],
  51. "weekData": [{
  52. "time": "2024-05-01",
  53. "efficiency": 80,
  54. "weight": 12,
  55. "kwh": 1409,
  56. "stop1": 6,
  57. "stop2": 2,
  58. "stop3": 9,
  59. "stop4": 8,
  60. "stop5": 6,
  61. "stop6": 4,
  62. "stop7": 9,
  63. "alarm": 15,
  64. "aefficiency": 75,
  65. "bweight": 5,
  66. "befficiency": 66,
  67. "aweight": 7,
  68. "bkwh": 532,
  69. "akwh": 877
  70. }, {
  71. "time": "2024-05-02",
  72. "efficiency": 65,
  73. "weight": 12,
  74. "kwh": 1645,
  75. "stop1": 0,
  76. "stop2": 1,
  77. "stop3": 8,
  78. "stop4": 4,
  79. "stop5": 9,
  80. "stop6": 5,
  81. "stop7": 6,
  82. "alarm": 13,
  83. "aefficiency": 67,
  84. "bweight": 4,
  85. "befficiency": 48,
  86. "aweight": 8,
  87. "bkwh": 664,
  88. "akwh": 981
  89. }, {
  90. "time": "2024-05-03",
  91. "efficiency": 75,
  92. "weight": 10,
  93. "kwh": 1753,
  94. "stop1": 1,
  95. "stop2": 2,
  96. "stop3": 3,
  97. "stop4": 2,
  98. "stop5": 4,
  99. "stop6": 0,
  100. "stop7": 8,
  101. "alarm": 11,
  102. "aefficiency": 88,
  103. "bweight": 1,
  104. "befficiency": 39,
  105. "aweight": 9,
  106. "bkwh": 861,
  107. "akwh": 892
  108. }, {
  109. "time": "2024-05-04",
  110. "efficiency": 90,
  111. "weight": 14,
  112. "kwh": 1320,
  113. "stop1": 5,
  114. "stop2": 0,
  115. "stop3": 7,
  116. "stop4": 8,
  117. "stop5": 0,
  118. "stop6": 1,
  119. "stop7": 9,
  120. "alarm": 45,
  121. "aefficiency": 99,
  122. "bweight": 9,
  123. "befficiency": 76,
  124. "aweight": 5,
  125. "bkwh": 669,
  126. "akwh": 651
  127. }, {
  128. "time": "2024-05-05",
  129. "efficiency": 75,
  130. "weight": 14,
  131. "kwh": 1625,
  132. "stop1": 5,
  133. "stop2": 4,
  134. "stop3": 6,
  135. "stop4": 7,
  136. "stop5": 2,
  137. "stop6": 4,
  138. "stop7": 3,
  139. "alarm": 35,
  140. "aefficiency": 35,
  141. "bweight": 8,
  142. "befficiency": 91,
  143. "aweight": 6,
  144. "bkwh": 842,
  145. "akwh": 783
  146. }, {
  147. "time": "2024-05-06",
  148. "efficiency": 65,
  149. "weight": 14,
  150. "kwh": 1495,
  151. "stop1": 6,
  152. "stop2": 2,
  153. "stop3": 4,
  154. "stop4": 1,
  155. "stop5": 2,
  156. "stop6": 8,
  157. "stop7": 1,
  158. "alarm": 8,
  159. "aefficiency": 76,
  160. "bweight": 7,
  161. "befficiency": 82,
  162. "aweight": 7,
  163. "bkwh": 732,
  164. "akwh": 763
  165. }, {
  166. "time": "2024-05-07",
  167. "efficiency": 55,
  168. "weight": 15,
  169. "kwh": 1522,
  170. "stop1": 4,
  171. "stop2": 5,
  172. "stop3": 8,
  173. "stop4": 3,
  174. "stop5": 7,
  175. "stop6": 1,
  176. "stop7": 4,
  177. "alarm": 17,
  178. "aefficiency": 52,
  179. "bweight": 6,
  180. "befficiency": 61,
  181. "aweight": 9,
  182. "bkwh": 611,
  183. "akwh": 911
  184. }]
  185. }
  186. }