@vtx/modals2 5.0.3 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/lib/_components/index.js +4 -3
  2. package/lib/_components/vm-bar-charts/index.js +10 -6
  3. package/lib/_components/vm-calendar/style/index.less +4 -7
  4. package/lib/_components/vm-card-statistics/index.less +27 -27
  5. package/lib/_components/vm-extra-tab/style/index.less +6 -3
  6. package/lib/_components/vm-factor/index.js +10 -5
  7. package/lib/_components/vm-factor/style/index.less +5 -1
  8. package/lib/_components/vm-factor-list/index.less +11 -11
  9. package/lib/_components/vm-filter/style/index.less +2 -1
  10. package/lib/_components/vm-info-collection/index.js +2 -2
  11. package/lib/_components/vm-line-charts/index.js +1 -1
  12. package/lib/_components/vm-map/index.js +5 -5
  13. package/lib/_components/vm-pie-charts/index.js +9 -5
  14. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
  15. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
  16. package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
  17. package/lib/_components/vm-repair-maintain/RmType.js +32 -0
  18. package/lib/_components/vm-repair-maintain/api.js +92 -0
  19. package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
  20. package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
  21. package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
  22. package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
  23. package/lib/_components/vm-repair-maintain/index.js +56 -0
  24. package/lib/_components/vm-repair-maintain/style/index.js +1 -0
  25. package/lib/_components/vm-repair-maintain/style/index.less +25 -0
  26. package/lib/_components/vm-table/index.js +7 -4
  27. package/lib/_components/vm-table/style/index.less +3 -2
  28. package/lib/_components/vm-tag/style/index.less +10 -0
  29. package/lib/_components/vm-title/index.js +3 -2
  30. package/lib/_components/vm-video/HistoryGrid.js +52 -0
  31. package/lib/_components/vm-video/RealtimeGrid.js +8 -4
  32. package/lib/_components/vm-video/index.js +298 -112
  33. package/lib/_components/vm-video/index.less +10 -1
  34. package/lib/_components/vm-wrapper/index.js +32 -10
  35. package/lib/_components/vm-wrapper/style/index.less +28 -0
  36. package/lib/_service/index.js +5 -0
  37. package/lib/_util/index.js +0 -5
  38. package/lib/index.js +7 -2
  39. package/lib/style/index.less +2 -6
  40. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
  41. package/lib/vtx-base-modal/Header/index.js +3 -1
  42. package/lib/vtx-base-modal/Header/index.less +98 -98
  43. package/lib/vtx-base-modal/Tabs/index.less +31 -31
  44. package/lib/vtx-base-modal/index.js +11 -5
  45. package/lib/vtx-car-modal/api.js +4 -3
  46. package/lib/vtx-car-modal/components/Info/index.js +2 -1
  47. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  48. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
  49. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
  50. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
  51. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
  52. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  53. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
  54. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
  55. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  56. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
  57. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +134 -103
  58. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +210 -161
  59. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +39 -16
  60. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
  61. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
  62. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
  63. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
  64. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
  65. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
  66. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
  67. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
  68. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
  69. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
  70. package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
  71. package/lib/vtx-car-modal/content/index.js +2 -1
  72. package/lib/vtx-car-modal/imgs/butter.png +0 -0
  73. package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
  74. package/lib/vtx-car-modal/imgs/clock.png +0 -0
  75. package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
  76. package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
  77. package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
  78. package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
  79. package/lib/vtx-car-modal/imgs/track.png +0 -0
  80. package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
  81. package/lib/vtx-car-modal/imgs/track_green.png +0 -0
  82. package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
  83. package/lib/vtx-car-modal/imgs/water.png +0 -0
  84. package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
  85. package/lib/vtx-car-modal/index.js +24 -4
  86. package/lib/vtx-cc-cp-modal/api.js +381 -0
  87. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
  88. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
  89. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
  90. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
  91. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
  92. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
  93. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
  94. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
  95. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
  96. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
  97. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
  98. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
  99. package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
  100. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
  101. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
  102. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
  103. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
  104. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
  105. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
  106. package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
  107. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
  108. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
  109. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
  110. package/lib/vtx-cc-cp-modal/components/index.js +7 -0
  111. package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
  112. package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
  113. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
  114. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
  115. package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
  116. package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
  117. package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
  118. package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
  119. package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
  120. package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
  121. package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
  122. package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
  123. package/lib/vtx-cc-cp-modal/index.js +119 -0
  124. package/lib/vtx-cc-cp-modal/style/index.js +1 -0
  125. package/lib/vtx-cc-cp-modal/style/index.less +13 -0
  126. package/lib/vtx-cc-unit-modal/api.js +361 -0
  127. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
  128. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
  129. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
  130. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
  131. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
  132. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
  133. package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
  134. package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
  135. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
  136. package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
  137. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
  138. package/lib/vtx-cc-unit-modal/components/index.js +7 -0
  139. package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
  140. package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
  141. package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
  142. package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
  143. package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
  144. package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
  145. package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
  146. package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
  147. package/lib/vtx-cc-unit-modal/index.js +137 -0
  148. package/lib/vtx-cc-unit-modal/style/index.js +1 -0
  149. package/lib/vtx-cc-unit-modal/style/index.less +14 -0
  150. package/lib/vtx-cp-modal/api.js +3 -3
  151. package/lib/vtx-cp-modal/index.js +4 -1
  152. package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
  153. package/lib/vtx-default-modal/index.js +10 -8
  154. package/lib/vtx-device-modal/api.js +531 -0
  155. package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
  156. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
  157. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +610 -0
  158. package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
  159. package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
  160. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
  161. package/lib/vtx-device-modal/components/index.js +3 -0
  162. package/lib/vtx-device-modal/config.js +21 -0
  163. package/lib/vtx-device-modal/imgs/current.png +0 -0
  164. package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
  165. package/lib/vtx-device-modal/imgs/history.png +0 -0
  166. package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
  167. package/lib/vtx-device-modal/index.js +96 -0
  168. package/lib/vtx-device-modal/style/index.js +1 -0
  169. package/lib/vtx-device-modal/style/index.less +1 -0
  170. package/lib/vtx-df-modal/index.js +11 -11
  171. package/lib/vtx-housing-estate-modal/api.js +559 -0
  172. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
  173. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
  174. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
  175. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
  176. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
  177. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
  178. package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
  179. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
  180. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
  181. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
  182. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
  183. package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
  184. package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
  185. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
  186. package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
  187. package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
  188. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
  189. package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
  190. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
  191. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
  192. package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
  193. package/lib/vtx-housing-estate-modal/components/index.js +5 -0
  194. package/lib/vtx-housing-estate-modal/config.js +77 -0
  195. package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
  196. package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
  197. package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
  198. package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
  199. package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
  200. package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
  201. package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
  202. package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
  203. package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
  204. package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
  205. package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
  206. package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
  207. package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
  208. package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
  209. package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
  210. package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
  211. package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
  212. package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
  213. package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
  214. package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
  215. package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
  216. package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
  217. package/lib/vtx-housing-estate-modal/index.js +108 -0
  218. package/lib/vtx-housing-estate-modal/style/index.js +4 -0
  219. package/lib/vtx-housing-estate-modal/style/index.less +1 -0
  220. package/lib/vtx-kh-modal/api2.js +178 -0
  221. package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
  222. package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
  223. package/lib/vtx-kh-modal/components/Record/index.js +204 -0
  224. package/lib/vtx-kh-modal/components/Record/index.less +7 -0
  225. package/lib/vtx-kh-modal/components/index.js +3 -0
  226. package/lib/vtx-kh-modal/imgs/count.png +0 -0
  227. package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
  228. package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
  229. package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
  230. package/lib/vtx-kh-modal/imgs/score.png +0 -0
  231. package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
  232. package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
  233. package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
  234. package/lib/vtx-kh-modal/index.js +46 -0
  235. package/lib/vtx-kh-modal/style/index.js +4 -0
  236. package/lib/vtx-kh-modal/style/index.less +1 -0
  237. package/lib/vtx-restaurant-modal/api.js +297 -0
  238. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
  239. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
  240. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
  241. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
  242. package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
  243. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
  244. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
  245. package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
  246. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
  247. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
  248. package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
  249. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
  250. package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
  251. package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
  252. package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
  253. package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
  254. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
  255. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
  256. package/lib/vtx-restaurant-modal/components/index.js +7 -0
  257. package/lib/vtx-restaurant-modal/config.js +283 -0
  258. package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
  259. package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
  260. package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
  261. package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
  262. package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
  263. package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
  264. package/lib/vtx-restaurant-modal/index.js +168 -0
  265. package/lib/vtx-restaurant-modal/style/index.js +1 -0
  266. package/lib/vtx-restaurant-modal/style/index.less +13 -0
  267. package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
  268. package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
  269. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  270. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  271. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
  272. package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
  273. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
  274. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
  275. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +20 -6
  276. package/lib/vtx-staff-modal/index.js +4 -1
  277. package/lib/vtx-tfd-modal/api.js +22 -27
  278. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +100 -59
  279. package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
  280. package/lib/vtx-zg-modal/api.js +107 -0
  281. package/lib/vtx-zg-modal/components/BaseInfo/index.js +286 -0
  282. package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
  283. package/lib/vtx-zg-modal/components/index.js +1 -0
  284. package/lib/vtx-zg-modal/imgs/dot.png +0 -0
  285. package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
  286. package/lib/vtx-zg-modal/index.js +42 -0
  287. package/lib/vtx-zg-modal/style/index.js +3 -0
  288. package/lib/vtx-zg-modal/style/index.less +1 -0
  289. package/lib/vtx-zzz-modal/index.js +10 -10
  290. package/package.json +1 -1
  291. package/lib/resources/jessibuca/decoder.js +0 -3839
  292. package/lib/resources/jessibuca/decoder.wasm +0 -0
  293. package/lib/resources/jessibuca/jessibuca.js +0 -5350
  294. package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
@@ -0,0 +1,610 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import { ChartIcon, ListIcon } from "../../../_util/iconSvgHtml";
12
+ import { useSetState } from 'ahooks';
13
+ import { Col, Row, Space, Spin } from 'antd';
14
+ import classnames from 'classnames';
15
+ import dayjs from 'dayjs';
16
+ import * as echarts from 'echarts';
17
+ import ReactEcharts from 'echarts-for-react';
18
+ import { isEmpty } from 'lodash';
19
+ import { useEffect, useState } from 'react';
20
+ import { VmEmpty, VmExtraTab, VmFilter, VmTable, VmTag, VmTitle, VmWrapper } from "../../../_components";
21
+ import useSettings from "../../../_hooks/useSettings";
22
+ import { BaseService } from "../../api";
23
+ import "./index.less";
24
+ import TabsList from "./TabsList";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
+ var MonitorAnalysis = function MonitorAnalysis(_ref) {
27
+ var _newList$, _newList$2, _newList$3;
28
+ var id = _ref.id;
29
+ var _useSettings = useSettings(),
30
+ chartFontColor = _useSettings.chartFontColor,
31
+ chartLineColor = _useSettings.chartLineColor,
32
+ isDark = _useSettings.isDark,
33
+ theme = _useSettings.theme;
34
+ var blueColor = '#1677FF';
35
+ var greenColor = '#0fb964';
36
+ var areaColor = ['rgba(22, 119, 255, 0.30)', 'rgba(22, 119, 255, 0)'];
37
+ if (isDark) {
38
+ blueColor = '#009dff';
39
+ greenColor = ' #13f97';
40
+ areaColor = ['rgba(22, 119, 255, 0.30)', 'rgba(22, 119, 255, 0)'];
41
+ }
42
+ var _BaseService$useRealt = BaseService.useRealtimeList(id),
43
+ data = _BaseService$useRealt.data;
44
+ var _useState = useState([]),
45
+ _useState2 = _slicedToArray(_useState, 2),
46
+ monitorItemIds = _useState2[0],
47
+ setMonitorItemIds = _useState2[1];
48
+ var _BaseService$useColle = BaseService.useCollectList({
49
+ deviceIds: id,
50
+ monitorItemIds: monitorItemIds
51
+ }),
52
+ _BaseService$useColle2 = _BaseService$useColle.data,
53
+ collectList = _BaseService$useColle2 === void 0 ? [] : _BaseService$useColle2;
54
+ useEffect(function () {
55
+ if (!isEmpty(data)) {
56
+ setMonitorItemIds([data[0].monitorItemId]);
57
+ }
58
+ }, [JSON.stringify(data)]);
59
+ var _useSetState = useSetState({
60
+ startDate: dayjs().startOf('date'),
61
+ endDate: dayjs().endOf('date'),
62
+ collectFrequency: '',
63
+ danTimeType: '24h',
64
+ showType: 'chart'
65
+ }),
66
+ _useSetState2 = _slicedToArray(_useSetState, 2),
67
+ state = _useSetState2[0],
68
+ setState = _useSetState2[1];
69
+ var startDate = state.startDate,
70
+ endDate = state.endDate,
71
+ collectFrequency = state.collectFrequency,
72
+ danTimeType = state.danTimeType,
73
+ showType = state.showType;
74
+ var tabList = [{
75
+ label: '24小时',
76
+ value: '24h'
77
+ }, {
78
+ label: '3天',
79
+ value: '3days'
80
+ }, {
81
+ label: '7天',
82
+ value: '7days'
83
+ }].concat(_toConsumableArray(collectFrequency === 'day' ? [{
84
+ label: '月',
85
+ value: 'month'
86
+ }] : []), _toConsumableArray(collectFrequency === 'month' ? [{
87
+ label: '年',
88
+ value: 'year'
89
+ }] : []), [{
90
+ label: '自定义',
91
+ value: 'self'
92
+ }]);
93
+ useEffect(function () {
94
+ if (!isEmpty(collectList)) {
95
+ var _collectList$;
96
+ setState({
97
+ collectFrequency: collectList === null || collectList === void 0 || (_collectList$ = collectList[0]) === null || _collectList$ === void 0 ? void 0 : _collectList$.id
98
+ });
99
+ }
100
+ }, [JSON.stringify(collectList)]);
101
+ var _BaseService$useGetAn = BaseService.useGetAnalysis({
102
+ timeType: 'danTime',
103
+ danTimeEndTime: dayjs(endDate).format('YYYY-MM-DD HH:mm:ss'),
104
+ danTimeType: danTimeType,
105
+ danTimeStartTime: dayjs(startDate).format('YYYY-MM-DD HH:mm:ss'),
106
+ collectFrequency: collectFrequency,
107
+ deviceIds: id,
108
+ monitorItemIds: monitorItemIds
109
+ }),
110
+ chartDataList = _BaseService$useGetAn.data,
111
+ loading = _BaseService$useGetAn.loading;
112
+ var isHasChartData = function isHasChartData() {
113
+ var isHasData = true;
114
+ if (chartDataList.length) {
115
+ isHasData = true;
116
+ if (chartDataList.some(function (item) {
117
+ return item.values && item.values.length;
118
+ })) {
119
+ isHasData = true;
120
+ } else {
121
+ isHasData = false;
122
+ }
123
+ } else {
124
+ isHasData = false;
125
+ }
126
+ return isHasData;
127
+ };
128
+ var isHasChartItemData = function isHasChartItemData(item) {
129
+ var isHasData = true;
130
+ if (item.values.length) {
131
+ isHasData = true;
132
+ } else {
133
+ isHasData = false;
134
+ }
135
+ return isHasData;
136
+ };
137
+ var newList = isHasChartData() ? chartDataList.filter(function (item) {
138
+ return isHasChartItemData(item);
139
+ }) : null;
140
+ var getGroupDanOption = function getGroupDanOption(list) {
141
+ var xData = _.uniq(_.flatMap(list, 'xData').sort());
142
+ var legendData = [];
143
+ list.forEach(function (item, index) {
144
+ if (item.showMode === 'stack') {
145
+ var _state = _.map(_.uniqBy(item.dataList, 'value'));
146
+ var colors = [blueColor, greenColor];
147
+ var stateColor = {};
148
+ _state.forEach(function (v, index) {
149
+ stateColor[v.value] = colors[index % 2];
150
+ });
151
+ legendData.push.apply(legendData, _toConsumableArray((_state || []).map(function (item) {
152
+ return {
153
+ name: item.value,
154
+ itemStyle: {
155
+ color: stateColor[item.value]
156
+ }
157
+ };
158
+ })));
159
+ } else {
160
+ legendData.push({
161
+ name: item.newName || item.name || '',
162
+ itemStyle: {
163
+ color: blueColor
164
+ }
165
+ });
166
+ }
167
+ });
168
+ return {
169
+ color: [blueColor],
170
+ grid: {
171
+ top: 26,
172
+ left: 40,
173
+ right: 50,
174
+ bottom: 50,
175
+ containLabel: true
176
+ },
177
+ legend: {
178
+ type: 'scroll',
179
+ itemWidth: 17,
180
+ itemHeight: 10,
181
+ textStyle: {
182
+ color: chartFontColor
183
+ },
184
+ top: 0,
185
+ left: 'center'
186
+ },
187
+ tooltip: {
188
+ trigger: 'axis',
189
+ valueFormatter: function valueFormatter(value) {
190
+ var _list$;
191
+ return "".concat(value).concat((list === null || list === void 0 || (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.unit) || '');
192
+ },
193
+ position: function position(point, _params, _dom, _rect, size) {
194
+ // 固定在顶部
195
+ var leftSize = point[0] - size.contentSize[0];
196
+ return [point[0] + size.contentSize[0] > size.viewSize[0] ? leftSize < 0 ? '35%' : leftSize : point[0], '0%'];
197
+ }
198
+ },
199
+ dataZoom: [{
200
+ type: 'slider',
201
+ show: true,
202
+ bottom: 20,
203
+ fillerColor: theme === 'light' ? 'rgba(22, 119, 255, 0.10)' : 'rgba(0, 157, 255, 0.10)',
204
+ textStyle: {
205
+ color: chartFontColor
206
+ }
207
+ }],
208
+ xAxis: [{
209
+ type: 'category',
210
+ boundaryGap: false,
211
+ axisLine: {
212
+ show: true,
213
+ lineStyle: {
214
+ color: chartLineColor
215
+ }
216
+ },
217
+ axisLabel: {
218
+ textStyle: {
219
+ color: chartFontColor,
220
+ fontSize: 12
221
+ }
222
+ },
223
+ axisTick: {
224
+ show: false
225
+ },
226
+ data: xData
227
+ }],
228
+ yAxis: list.map(function (item, index) {
229
+ return {
230
+ minInterval: 1,
231
+ position: 'left',
232
+ // maxInterval: 5,
233
+ nameTextStyle: {
234
+ color: chartFontColor
235
+ },
236
+ nameLocation: 'middle',
237
+ nameGap: 0,
238
+ splitLine: {
239
+ lineStyle: {
240
+ color: chartLineColor,
241
+ type: 'dashed'
242
+ }
243
+ },
244
+ axisLine: {
245
+ show: true,
246
+ color: chartFontColor
247
+ },
248
+ axisLabel: {
249
+ color: chartFontColor,
250
+ margin: 20
251
+ },
252
+ axisTick: {
253
+ show: false
254
+ }
255
+ };
256
+ }),
257
+ series: list.flatMap(function (item, index) {
258
+ if (item.showMode === 'stack') {
259
+ var _state2 = _.map(_.uniqBy(item.dataList, 'value'));
260
+ var colors = [blueColor, greenColor];
261
+ var stateColor = {};
262
+ _state2.forEach(function (v, index) {
263
+ stateColor[v.value] = colors[index % 2];
264
+ });
265
+ return [].concat(_toConsumableArray((_state2 || []).map(function (v) {
266
+ return {
267
+ name: v.value,
268
+ type: 'bar',
269
+ data: [],
270
+ yAxisIndex: index,
271
+ markLine: {
272
+ symbol: ['none', 'none'],
273
+ // 去掉箭头
274
+ data: (item.markLine || []).filter(function (_unused, i) {
275
+ return i !== 0;
276
+ }).map(function (m, i) {
277
+ return {
278
+ name: dayjs(m.data).format('YYYY-MM-DD'),
279
+ xAxis: "(".concat(i + 1, ")").concat(dayjs(m.data).format('HH:mm')),
280
+ lineStyle: {
281
+ color: blueColor
282
+ },
283
+ label: {
284
+ position: 'end',
285
+ formatter: '{b}'
286
+ }
287
+ };
288
+ })
289
+ }
290
+ };
291
+ })), [{
292
+ type: 'custom',
293
+ yAxisIndex: index,
294
+ renderItem: function renderItem(params, api) {
295
+ var categoryIndex = api.value(0);
296
+ var start = api.coord([api.value(1), categoryIndex]);
297
+ var end = api.coord([api.value(2), categoryIndex]);
298
+ var height = 18;
299
+ return {
300
+ type: 'rect',
301
+ shape: echarts.graphic.clipRectByRect({
302
+ x: start[0],
303
+ y: start[1] - height / 2,
304
+ width: end[0] - start[0],
305
+ height: height
306
+ }, {
307
+ x: params.coordSys.x,
308
+ y: params.coordSys.y,
309
+ width: params.coordSys.width,
310
+ height: params.coordSys.height
311
+ }),
312
+ style: api.style()
313
+ };
314
+ },
315
+ encode: {
316
+ x: [1, 2],
317
+ y: 0
318
+ },
319
+ data: (item.dataList || []).map(function (item, index, arr) {
320
+ var _arr;
321
+ return {
322
+ itemStyle: {
323
+ normal: {
324
+ color: stateColor[item.originValue]
325
+ }
326
+ },
327
+ color: stateColor[item.originValue],
328
+ name: item.value,
329
+ label: item.value,
330
+ value: [0, item.date, (_arr = arr[index + 1]) === null || _arr === void 0 ? void 0 : _arr.date]
331
+ };
332
+ })
333
+ }]);
334
+ }
335
+ return [{
336
+ type: item.showMode,
337
+ name: item.newName || item.name || '',
338
+ data: (item.yData || []).map(function (y, i) {
339
+ return {
340
+ value: y,
341
+ name: item.xData[i]
342
+ };
343
+ }),
344
+ animationEasing: 'linear',
345
+ animationDuration: 2000,
346
+ smooth: true,
347
+ // symbol: 'none',
348
+ symbolSize: 1,
349
+ xAxisIndex: 0,
350
+ yAxisIndex: index,
351
+ itemStyle: {
352
+ normal: {
353
+ lineStyle: {
354
+ color: blueColor,
355
+ width: 2
356
+ },
357
+ areaStyle: {
358
+ color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
359
+ offset: 0,
360
+ color: areaColor[0]
361
+ }, {
362
+ offset: 1,
363
+ color: areaColor[1]
364
+ }])
365
+ }
366
+ }
367
+ }
368
+ }];
369
+ })
370
+ };
371
+ };
372
+ var columns = [{
373
+ title: '监测项目',
374
+ dataIndex: 'name',
375
+ width: 120,
376
+ ellipsis: true,
377
+ fixed: 'left'
378
+ }, {
379
+ width: 80,
380
+ title: '监测值',
381
+ dataIndex: 'value',
382
+ align: 'right',
383
+ render: function render(text, record) {
384
+ return text ? "".concat(text).concat(record.unit || '') : '-';
385
+ }
386
+ }, {
387
+ width: 80,
388
+ title: '是否告警',
389
+ dataIndex: 'onAlarm',
390
+ render: function render(text) {
391
+ return /*#__PURE__*/_jsx(VmTag, {
392
+ title: /*#__PURE__*/_jsxs(Space, {
393
+ children: [/*#__PURE__*/_jsx("div", {
394
+ className: classnames('vtx-device-analysis-dot', {
395
+ error: text
396
+ })
397
+ }), /*#__PURE__*/_jsx("span", {
398
+ children: text ? '是' : '否'
399
+ })]
400
+ }),
401
+ type: text ? 'red' : 'green'
402
+ });
403
+ }
404
+ }, {
405
+ width: 80,
406
+ title: '阈值',
407
+ dataIndex: 'alarmDescription',
408
+ ellipsis: true,
409
+ render: function render(text) {
410
+ return text ? text : '-';
411
+ }
412
+ }, {
413
+ title: '刷新时间',
414
+ dataIndex: 'timeDesc',
415
+ sorter: function sorter(a, b) {
416
+ return a.time - b.time;
417
+ },
418
+ width: 160
419
+ }];
420
+ var getActiveModeFill = function getActiveModeFill(key) {
421
+ if (isDark) {
422
+ return showType === key ? '#fff' : '#009DFF';
423
+ }
424
+ return showType === key ? '#1677FF' : '#8C8C8C';
425
+ };
426
+ return /*#__PURE__*/_jsx("div", {
427
+ style: {
428
+ height: 348
429
+ },
430
+ children: /*#__PURE__*/_jsx(VmWrapper, {
431
+ title: '指标分析',
432
+ contentStyle: {
433
+ padding: '0 16px 16px'
434
+ },
435
+ filterType: 'rangePicker',
436
+ filterChange: function filterChange(date) {
437
+ setState({
438
+ startDate: date[0],
439
+ endDate: date[1]
440
+ });
441
+ },
442
+ pickerProps: {
443
+ disabled: danTimeType !== 'self',
444
+ showTime: {
445
+ defaultValue: [dayjs().startOf('date'), dayjs().endOf('date')]
446
+ }
447
+ },
448
+ extraLeft: /*#__PURE__*/_jsxs(Space, {
449
+ children: [/*#__PURE__*/_jsxs(Space, {
450
+ size: 0,
451
+ children: [/*#__PURE__*/_jsx("div", {
452
+ style: {
453
+ fontSize: 14
454
+ },
455
+ children: "\u6307\u6807\u5468\u671F\uFF1A"
456
+ }), /*#__PURE__*/_jsx(VmFilter.VMSelect, {
457
+ value: collectFrequency,
458
+ options: collectList.map(function (item) {
459
+ return {
460
+ label: item.name,
461
+ value: item.code
462
+ };
463
+ }),
464
+ style: {
465
+ width: 120
466
+ },
467
+ onChange: function onChange(e) {
468
+ return setState({
469
+ collectFrequency: e
470
+ });
471
+ }
472
+ })]
473
+ }), /*#__PURE__*/_jsx(TabsList, {
474
+ list: tabList,
475
+ activeKey: danTimeType,
476
+ setActiveKey: function setActiveKey(key) {
477
+ setState({
478
+ danTimeType: key
479
+ });
480
+ if (key !== 'self') {
481
+ var _endDate = dayjs().endOf('date');
482
+ var day = 0;
483
+ if (key === '3days') {
484
+ day = 3;
485
+ } else if (key === '7days') {
486
+ day = 7;
487
+ }
488
+ setState({
489
+ startDate: dayjs().subtract(day, 'day').startOf('date'),
490
+ endDate: _endDate
491
+ });
492
+ }
493
+ }
494
+ })]
495
+ }),
496
+ dateValue: [state.startDate, state.endDate],
497
+ children: /*#__PURE__*/_jsxs(Row, {
498
+ gutter: [20, 20],
499
+ style: {
500
+ height: '100%'
501
+ },
502
+ children: [/*#__PURE__*/_jsxs(Col, {
503
+ span: 12,
504
+ style: {
505
+ height: '100%'
506
+ },
507
+ children: [/*#__PURE__*/_jsx(VmTitle, {
508
+ title: '监测指标',
509
+ border: false
510
+ }), /*#__PURE__*/_jsx("div", {
511
+ style: {
512
+ height: 'calc(100% - 48px',
513
+ width: '100%'
514
+ },
515
+ children: /*#__PURE__*/_jsx(VmTable, {
516
+ columns: columns,
517
+ dataSource: data,
518
+ pagination: false,
519
+ rowKey: 'monitorItemId',
520
+ isIndex: false,
521
+ rowSelection: {
522
+ fixed: true,
523
+ type: 'radio',
524
+ selectedRowKeys: monitorItemIds,
525
+ onChange: function onChange(selectedRowKeys) {
526
+ setMonitorItemIds(selectedRowKeys);
527
+ }
528
+ }
529
+ })
530
+ })]
531
+ }), /*#__PURE__*/_jsxs(Col, {
532
+ span: 12,
533
+ style: {
534
+ height: '100%'
535
+ },
536
+ children: [/*#__PURE__*/_jsx(VmTitle, {
537
+ title: '监测趋势',
538
+ border: false,
539
+ extra: /*#__PURE__*/_jsx(VmExtraTab, {
540
+ value: showType,
541
+ onChange: function onChange(key) {
542
+ return setState({
543
+ showType: key
544
+ });
545
+ },
546
+ data: [{
547
+ key: 'chart',
548
+ title: /*#__PURE__*/_jsx(ListIcon, {
549
+ width: 14,
550
+ height: 14,
551
+ fill: getActiveModeFill('chart')
552
+ }),
553
+ name: '图表'
554
+ }, {
555
+ key: 'list',
556
+ title: /*#__PURE__*/_jsx(ChartIcon, {
557
+ width: 14,
558
+ height: 14,
559
+ fill: getActiveModeFill('list')
560
+ }),
561
+ name: '列表'
562
+ }]
563
+ })
564
+ }), /*#__PURE__*/_jsx("div", {
565
+ style: {
566
+ height: 'calc(100% - 48px'
567
+ },
568
+ children: loading ? /*#__PURE__*/_jsx(Row, {
569
+ align: 'middle',
570
+ justify: 'center',
571
+ style: {
572
+ height: '100%'
573
+ },
574
+ children: /*#__PURE__*/_jsx(Spin, {
575
+ spinning: true
576
+ })
577
+ }) : isEmpty(newList) ? /*#__PURE__*/_jsx(VmEmpty, {}) : showType === 'chart' ? /*#__PURE__*/_jsx(ReactEcharts, {
578
+ option: getGroupDanOption(newList),
579
+ notMerge: true,
580
+ lazyUpdate: true,
581
+ style: {
582
+ height: '100%',
583
+ width: '100%'
584
+ }
585
+ }) : /*#__PURE__*/_jsx(VmTable, {
586
+ columns: [{
587
+ title: '刷新时间',
588
+ dataIndex: 'date',
589
+ sorter: function sorter(a, b) {
590
+ return a.date > b.date ? 1 : -1;
591
+ },
592
+ width: 160
593
+ }, {
594
+ title: "".concat(newList === null || newList === void 0 || (_newList$ = newList[0]) === null || _newList$ === void 0 ? void 0 : _newList$.monitorItemName).concat((newList === null || newList === void 0 || (_newList$2 = newList[0]) === null || _newList$2 === void 0 ? void 0 : _newList$2.unit) || ''),
595
+ dataIndex: 'originValue',
596
+ width: 160,
597
+ align: 'right'
598
+ }],
599
+ dataSource: ((_newList$3 = newList[0]) === null || _newList$3 === void 0 ? void 0 : _newList$3.dataList) || [],
600
+ size: "small",
601
+ pagination: true,
602
+ rowKey: 'monitorItemId'
603
+ })
604
+ })]
605
+ })]
606
+ })
607
+ })
608
+ });
609
+ };
610
+ export default MonitorAnalysis;
@@ -0,0 +1,23 @@
1
+ import classnames from 'classnames';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ var TabsList = function TabsList(_ref) {
4
+ var _ref$list = _ref.list,
5
+ list = _ref$list === void 0 ? [] : _ref$list,
6
+ activeKey = _ref.activeKey,
7
+ setActiveKey = _ref.setActiveKey;
8
+ return /*#__PURE__*/_jsx("div", {
9
+ className: 'vtx-device-analysis-tabs',
10
+ children: list.map(function (item) {
11
+ return /*#__PURE__*/_jsx("div", {
12
+ className: classnames('vtx-device-analysis-tabs-item', {
13
+ active: activeKey === item.value
14
+ }),
15
+ onClick: function onClick() {
16
+ return setActiveKey(item.value);
17
+ },
18
+ children: item.label
19
+ }, item.value);
20
+ })
21
+ });
22
+ };
23
+ export default TabsList;
@@ -0,0 +1,24 @@
1
+ import { Col, Row } from 'antd';
2
+ import AlarmAnalysis from "./AlarmAnalysis";
3
+ import MonitorAnalysis from "./MonitorAnalysis";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ var DataAnalysis = function DataAnalysis(_ref) {
6
+ var id = _ref.id,
7
+ info = _ref.info;
8
+ return /*#__PURE__*/_jsxs(Row, {
9
+ gutter: [16, 16],
10
+ children: [/*#__PURE__*/_jsx(Col, {
11
+ span: 24,
12
+ children: /*#__PURE__*/_jsx(MonitorAnalysis, {
13
+ id: id
14
+ })
15
+ }), /*#__PURE__*/_jsx(Col, {
16
+ span: 24,
17
+ children: /*#__PURE__*/_jsx(AlarmAnalysis, {
18
+ id: id,
19
+ info: info
20
+ })
21
+ })]
22
+ });
23
+ };
24
+ export default DataAnalysis;