@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,56 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { Col, Row } from 'antd';
8
+ import Hot from "./Hot";
9
+ import Left from "./Left";
10
+ import Manage from "./Manage";
11
+ import RightBottom from "./RightBottom";
12
+ import "./index.less";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ var OverView = function OverView(_ref) {
15
+ var _ref$classPrefix = _ref.classPrefix,
16
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
17
+ id = _ref.id,
18
+ throwPoints = _ref.throwPoints,
19
+ basicInfo = _ref.basicInfo,
20
+ serviceList = _ref.serviceList,
21
+ customMapInfo = _ref.customMapInfo,
22
+ garbageIcons = _ref.garbageIcons;
23
+ var prefix = "".concat(classPrefix, "-overview");
24
+ var common = {
25
+ classPrefix: prefix,
26
+ id: id,
27
+ serviceList: serviceList
28
+ };
29
+ var hasTHrow = serviceList === null || serviceList === void 0 ? void 0 : serviceList.includes('THROW');
30
+ return /*#__PURE__*/_jsxs("div", {
31
+ className: prefix,
32
+ children: [/*#__PURE__*/_jsx(Left, _objectSpread(_objectSpread({}, common), {}, {
33
+ throwPoints: throwPoints,
34
+ basicInfo: basicInfo,
35
+ customMapInfo: customMapInfo
36
+ })), /*#__PURE__*/_jsx("div", {
37
+ className: "".concat(prefix, "-right"),
38
+ children: /*#__PURE__*/_jsxs(Row, {
39
+ gutter: [16, 16],
40
+ children: [hasTHrow && /*#__PURE__*/_jsx(Col, {
41
+ span: 24,
42
+ children: /*#__PURE__*/_jsx(Hot, _objectSpread(_objectSpread({}, common), {}, {
43
+ garbageIcons: garbageIcons
44
+ }))
45
+ }), /*#__PURE__*/_jsx(Col, {
46
+ span: hasTHrow ? 12 : 24,
47
+ children: /*#__PURE__*/_jsx(Manage, _objectSpread({}, common))
48
+ }), /*#__PURE__*/_jsx(Col, {
49
+ span: hasTHrow ? 12 : 24,
50
+ children: /*#__PURE__*/_jsx(RightBottom, _objectSpread({}, common))
51
+ })]
52
+ })
53
+ })]
54
+ });
55
+ };
56
+ export default OverView;
@@ -0,0 +1,163 @@
1
+ @import '../../style/index';
2
+
3
+ .@{prefix-cls}-tabs {
4
+ display: flex;
5
+ gap: 16px;
6
+ color: var(--modal-title-color);
7
+ font-size: 14px;
8
+ &-item {
9
+ cursor: pointer;
10
+ &.active {
11
+ border: 1px solid var(--blue-color);
12
+ color: var(--blue-color);
13
+ }
14
+ }
15
+ }
16
+
17
+ .@{prefix-cls}-overview {
18
+ display: flex;
19
+ gap: 16px;
20
+
21
+ &-left {
22
+ height: 100%;
23
+ width: 400px;
24
+
25
+ &-img {
26
+ margin-bottom: 16px;
27
+ img {
28
+ width: 100%;
29
+ height: 207px;
30
+ }
31
+ }
32
+ }
33
+ &-right {
34
+ height: 100%;
35
+ width: calc(100% - 416px);
36
+ }
37
+ &-row {
38
+ display: flex;
39
+ justify-content: space-between;
40
+ align-items: center;
41
+ }
42
+ &-hot {
43
+ height: 381px;
44
+
45
+ &-btns {
46
+ .ant-radio-button-wrapper {
47
+ background: transparent;
48
+ border: 1px solid var(--modal-head-split-line-color);
49
+ color: var(--modal-title-color);
50
+
51
+ &::before {
52
+ display: none;
53
+ }
54
+ }
55
+ .ant-radio-button-wrapper:first-child {
56
+ border-top-left-radius: 6px;
57
+ border-bottom-left-radius: 6px;
58
+ }
59
+ .ant-radio-button-wrapper:last-child {
60
+ border-top-right-radius: 6px;
61
+ border-bottom-right-radius: 6px;
62
+ }
63
+ .ant-radio-button-wrapper-checked:not(
64
+ .ant-radio-button-wrapper-disabled
65
+ ) {
66
+ border-color: var(--blue-color);
67
+ }
68
+ }
69
+
70
+ &-summary {
71
+ display: flex;
72
+ justify-content: space-around;
73
+ align-items: center;
74
+ height: 60px;
75
+ }
76
+ }
77
+
78
+ &-manage {
79
+ height: 322px;
80
+
81
+ &-bottom {
82
+ margin-top: 14px;
83
+ overflow: hidden;
84
+
85
+ &-item {
86
+ display: flex;
87
+ align-items: center;
88
+ gap: 24px;
89
+ margin-bottom: 12px;
90
+ &-left {
91
+ width: 85px;
92
+ img {
93
+ display: block;
94
+ width: 58px;
95
+ height: 58px;
96
+ margin: 0 auto;
97
+ }
98
+ }
99
+
100
+ &-right {
101
+ flex: 1;
102
+
103
+ &-item {
104
+ height: 26px;
105
+ padding-left: 24px;
106
+ position: relative;
107
+ color: var(--modal-title-color);
108
+ margin: 7px 0;
109
+ display: flex;
110
+ justify-content: space-between;
111
+
112
+ > div[class*='blue'] {
113
+ color: #1677ff;
114
+ }
115
+ > div[class*='green'] {
116
+ color: #0fb964;
117
+ }
118
+ > div[class*='cyan'] {
119
+ color: #2facff;
120
+ }
121
+
122
+ img {
123
+ display: block;
124
+ width: 258px;
125
+ height: 18px;
126
+ position: absolute;
127
+ left: 0;
128
+ bottom: 0;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ &-rightbottom {
136
+ color: var(--modal-title-color);
137
+
138
+ &-progress {
139
+ display: flex;
140
+ justify-content: space-between;
141
+ align-items: center;
142
+ margin-top: 12px;
143
+ &-item {
144
+ height: 106px;
145
+ overflow-y: hidden;
146
+ position: relative;
147
+
148
+ > div:first-child {
149
+ padding-bottom: 4px;
150
+ text-align: center;
151
+ }
152
+ }
153
+ &-desc {
154
+ position: absolute;
155
+ left: 50%;
156
+ bottom: 8px;
157
+ transform: translateX(-50%);
158
+ text-align: center;
159
+ color: #9b9fa8;
160
+ }
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,133 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ 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."); }
9
+ 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); }
10
+ 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; }
11
+ 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; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useAntdTable } from 'ahooks';
14
+ import dayjs from 'dayjs';
15
+ import { useState } from 'react';
16
+ import { VmFactor, VmTable, VmWrapper } from "../../../_components";
17
+ import useSettings from "../../../_hooks/useSettings";
18
+ import { queryPage, throwRecordService } from "../../api";
19
+ import "./index.less";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ var columns = [{
22
+ title: '投放人',
23
+ dataIndex: 'personName',
24
+ render: function render(text) {
25
+ return text || '--';
26
+ }
27
+ }, {
28
+ title: '门牌号',
29
+ dataIndex: 'householdNo',
30
+ render: function render(text) {
31
+ return text || '--';
32
+ }
33
+ }, {
34
+ title: '分类主体',
35
+ dataIndex: 'housingEstateName',
36
+ render: function render(text) {
37
+ return text || '--';
38
+ }
39
+ }, {
40
+ title: '行政区划',
41
+ dataIndex: 'xzqhName',
42
+ render: function render(text) {
43
+ return text || '--';
44
+ }
45
+ }, {
46
+ title: '投放点',
47
+ dataIndex: 'throwPointName',
48
+ render: function render(text) {
49
+ return text || '--';
50
+ }
51
+ }, {
52
+ title: '分类质量',
53
+ dataIndex: 'qualityValue',
54
+ render: function render(text, record) {
55
+ return /*#__PURE__*/_jsx("div", {
56
+ className: "classifyCircle ".concat(record.qualityCode === 'PASS' ? 'GOOD' : 'BAD'),
57
+ children: text
58
+ });
59
+ }
60
+ }, {
61
+ title: '投放时间',
62
+ dataIndex: 'endDatetime',
63
+ render: function render(text) {
64
+ return text || '--';
65
+ }
66
+ }];
67
+ var TFRD = function TFRD(_ref) {
68
+ var _ref$classPrefix = _ref.classPrefix,
69
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
70
+ id = _ref.id;
71
+ var _useSettings = useSettings(),
72
+ isDark = _useSettings.isDark;
73
+ var prefix = "".concat(classPrefix, "-tfrd");
74
+ var _useState = useState([dayjs(), dayjs()]),
75
+ _useState2 = _slicedToArray(_useState, 2),
76
+ times = _useState2[0],
77
+ setTimes = _useState2[1];
78
+ var queryParams = {
79
+ housingEstateId: id,
80
+ startDatetime: times[0].format('YYYY-MM-DD 00:00:00'),
81
+ endDatetime: times[1].format('YYYY-MM-DD 23:59:59')
82
+ };
83
+ var summary = throwRecordService.useGetCount(queryParams);
84
+ var getTableData = function getTableData(_ref2) {
85
+ var current = _ref2.current,
86
+ pageSize = _ref2.pageSize;
87
+ return queryPage('/cloud/sdyd/throwRecord/page', _objectSpread({
88
+ page: current - 1,
89
+ size: pageSize
90
+ }, queryParams));
91
+ };
92
+ var _useAntdTable = useAntdTable(getTableData, {
93
+ defaultPageSize: 10,
94
+ refreshDeps: [id, times[0], times[1]]
95
+ }),
96
+ tableProps = _useAntdTable.tableProps;
97
+ var onDateChange = function onDateChange(date) {
98
+ setTimes(date);
99
+ };
100
+ return /*#__PURE__*/_jsx("div", {
101
+ className: prefix,
102
+ children: /*#__PURE__*/_jsxs(VmWrapper, {
103
+ title: "\u5C45\u6C11\u6295\u653E\u70ED\u5EA6\u5206\u6790",
104
+ filterType: "rangePicker",
105
+ dateValue: times,
106
+ filterChange: onDateChange,
107
+ children: [/*#__PURE__*/_jsx("div", {
108
+ className: "".concat(prefix, "-top"),
109
+ children: [{
110
+ name: '投放户数',
111
+ unit: '户',
112
+ value: (summary === null || summary === void 0 ? void 0 : summary.householdCount) || 0,
113
+ fontType: 'blue',
114
+ key: 'tfhs'
115
+ }, {
116
+ name: '投放次数',
117
+ unit: '次',
118
+ value: (summary === null || summary === void 0 ? void 0 : summary.totalCount) || 0,
119
+ fontType: 'green',
120
+ key: 'tfcs'
121
+ }].map(function (ele) {
122
+ return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
123
+ img: require("../../imgs/".concat(ele.key).concat(isDark ? '' : '_light', ".png"))
124
+ }), ele.key);
125
+ })
126
+ }), /*#__PURE__*/_jsx(VmTable, _objectSpread({
127
+ height: 370,
128
+ columns: columns
129
+ }, tableProps))]
130
+ })
131
+ });
132
+ };
133
+ export default TFRD;
@@ -0,0 +1,12 @@
1
+ @import '../../style/index';
2
+
3
+ .@{prefix-cls}-tfrd {
4
+ height: 100%;
5
+ &-top {
6
+ margin-bottom: 16px;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ gap: 120px;
11
+ }
12
+ }
@@ -0,0 +1,66 @@
1
+ import { VtxImage } from '@vtx/components';
2
+ import { getVtxToken } from '@vtx/utils';
3
+ import { Spin } from 'antd';
4
+ import { VmEmpty } from "../../../_components";
5
+ import useSettings from "../../../_hooks/useSettings";
6
+ import { throwFailPersonService } from "../../api";
7
+ import "./index.less";
8
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
+ var WGGSContent = function WGGSContent(_ref) {
10
+ var _ref$classPrefix = _ref.classPrefix,
11
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
12
+ id = _ref.id,
13
+ startTime = _ref.startTime,
14
+ endTime = _ref.endTime,
15
+ _ref$throwPointId = _ref.throwPointId,
16
+ throwPointId = _ref$throwPointId === void 0 ? '' : _ref$throwPointId;
17
+ var _useSettings = useSettings(),
18
+ isDark = _useSettings.isDark;
19
+ var _throwFailPersonServi = throwFailPersonService.useGetList({
20
+ housingEstateId: id,
21
+ beginTime: startTime,
22
+ endTime: endTime,
23
+ throwPointId: throwPointId
24
+ }),
25
+ data = _throwFailPersonServi.data,
26
+ loading = _throwFailPersonServi.loading;
27
+ var _ref2 = data || {},
28
+ _ref2$rows = _ref2.rows,
29
+ rows = _ref2$rows === void 0 ? [] : _ref2$rows;
30
+ return /*#__PURE__*/_jsx(_Fragment, {
31
+ children: !rows.length && !loading ? /*#__PURE__*/_jsx("div", {
32
+ style: {
33
+ height: 500
34
+ },
35
+ children: /*#__PURE__*/_jsx(VmEmpty, {})
36
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
37
+ children: [/*#__PURE__*/_jsx(Spin, {
38
+ spinning: loading,
39
+ className: "".concat(classPrefix, "-content-spin")
40
+ }), /*#__PURE__*/_jsx("div", {
41
+ className: "".concat(classPrefix, "-content ").concat(isDark ? 'dark' : ''),
42
+ children: rows.map(function (item) {
43
+ var _JSON$parse$, _tempDetectObjects$fi;
44
+ var photoId = (_JSON$parse$ = JSON.parse(item.personPhoto2 || '[]')[0]) === null || _JSON$parse$ === void 0 ? void 0 : _JSON$parse$.id;
45
+ var tempDetectObjects = JSON.parse(item.detectObjects || '[]');
46
+ var photoAfterArr = (_tempDetectObjects$fi = tempDetectObjects.find(function (item) {
47
+ return item.pic === 'dropPic2';
48
+ })) === null || _tempDetectObjects$fi === void 0 ? void 0 : _tempDetectObjects$fi.info;
49
+ var str = "/cloud/sdyd/markBox?fileId=".concat(photoId, "&detectObjects=").concat(photoAfterArr ? JSON.stringify(photoAfterArr) : '', "&token=").concat(getVtxToken('token'));
50
+ return /*#__PURE__*/_jsxs("div", {
51
+ className: "".concat(classPrefix, "-content-item"),
52
+ children: [/*#__PURE__*/_jsx("div", {
53
+ className: "".concat(classPrefix, "-content-item-img"),
54
+ children: /*#__PURE__*/_jsx(VtxImage, {
55
+ src: str
56
+ })
57
+ }), /*#__PURE__*/_jsx("p", {
58
+ children: item.throwPointName
59
+ })]
60
+ }, item.throwFailId);
61
+ })
62
+ })]
63
+ })
64
+ });
65
+ };
66
+ export default WGGSContent;
@@ -0,0 +1,68 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { message } from 'antd';
8
+ import dayjs from 'dayjs';
9
+ import { useState } from 'react';
10
+ import { VmWrapper } from "../../../_components";
11
+ import WGGSContent from "./Content";
12
+ import "./index.less";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ var WGGS = function WGGS(_ref) {
15
+ var _ref$classPrefix = _ref.classPrefix,
16
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
17
+ id = _ref.id,
18
+ _ref$throwPoints = _ref.throwPoints,
19
+ throwPoints = _ref$throwPoints === void 0 ? [] : _ref$throwPoints,
20
+ serviceList = _ref.serviceList;
21
+ var prefix = "".concat(classPrefix, "-wggs");
22
+ var _useState = useState('all'),
23
+ _useState2 = _slicedToArray(_useState, 2),
24
+ tab = _useState2[0],
25
+ setTab = _useState2[1];
26
+ var _useState3 = useState([dayjs().subtract(1, 'days'), dayjs()]),
27
+ _useState4 = _slicedToArray(_useState3, 2),
28
+ times = _useState4[0],
29
+ setTimes = _useState4[1];
30
+ var onTabChange = function onTabChange(tab) {
31
+ setTab(tab);
32
+ };
33
+ return /*#__PURE__*/_jsxs(VmWrapper, {
34
+ tabList: [{
35
+ label: '所有投放点',
36
+ key: 'all'
37
+ }].concat(throwPoints === null || throwPoints === void 0 ? void 0 : throwPoints.map(function (ele) {
38
+ return {
39
+ label: ele.pointName,
40
+ key: ele.id
41
+ };
42
+ })),
43
+ activeKey: tab,
44
+ onChangeTab: onTabChange,
45
+ filterType: "rangePicker",
46
+ dateValue: times,
47
+ filterChange: function filterChange(date) {
48
+ if (date[1].diff(date[0], 'd') > 7) {
49
+ message.warning('时间跨度不能超过7天');
50
+ return;
51
+ }
52
+ setTimes(date);
53
+ },
54
+ children: [tab === 'all' && /*#__PURE__*/_jsx(WGGSContent, {
55
+ classPrefix: prefix,
56
+ id: id,
57
+ startTime: times[0].format('YYYY-MM-DD 00:00:00'),
58
+ endTime: times[1].format('YYYY-MM-DD 23:59:59')
59
+ }), tab !== 'all' && /*#__PURE__*/_jsx(WGGSContent, {
60
+ classPrefix: prefix,
61
+ id: id,
62
+ throwPointId: tab,
63
+ startTime: times[0].format('YYYY-MM-DD 00:00:00'),
64
+ endTime: times[1].format('YYYY-MM-DD 23:59:59')
65
+ })]
66
+ });
67
+ };
68
+ export default WGGS;
@@ -0,0 +1,49 @@
1
+ @import '../../style/index';
2
+
3
+ .@{prefix-cls}-wggs {
4
+ &-content {
5
+ --wggs-border-color: rgba(0, 0, 0, 0.1);
6
+ --wggs-bg-color: transparent;
7
+
8
+ &.dark {
9
+ --wggs-border-color: #1064a7;
10
+ --wggs-bg-color: rgba(0, 155, 233, 0.1);
11
+ }
12
+
13
+ &-spin {
14
+ position: absolute;
15
+ margin: 150px 0 0 50%;
16
+ transform: translateX(-50%);
17
+ }
18
+
19
+ display: grid;
20
+ grid-template-columns: 1fr 1fr 1fr 1fr;
21
+ gap: 16px;
22
+ overflow: auto;
23
+ color: var(--modal-title-color);
24
+ position: relative;
25
+ &-item {
26
+ padding-bottom: 0;
27
+ display: flex;
28
+ flex-direction: column;
29
+ height: 173px;
30
+ background: var(--wggs-bg-color);
31
+ border: 1px solid var(--wggs-border-color);
32
+ border-radius: 8px;
33
+ &-img {
34
+ flex: 1;
35
+ img {
36
+ border-radius: 8px 8px 0 0;
37
+ width: 100%;
38
+ height: 133px;
39
+ }
40
+ }
41
+ & > p {
42
+ padding-left: 12px;
43
+ height: 40px;
44
+ line-height: 39px;
45
+ font-size: 14px;
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,119 @@
1
+ import { VtxImage } from '@vtx/components';
2
+ import { getVtxToken } from '@vtx/utils';
3
+ import { Spin } from 'antd';
4
+ import { VmEmpty, VmTag } from "../../../_components";
5
+ import useSettings from "../../../_hooks/useSettings";
6
+ import { throwFailBehaviorService } from "../../api";
7
+ import "./index.less";
8
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
+ var WGGSContent = function WGGSContent(_ref) {
10
+ var _data$map;
11
+ var _ref$classPrefix = _ref.classPrefix,
12
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
13
+ id = _ref.id,
14
+ throwAberrantCode = _ref.throwAberrantCode,
15
+ startTime = _ref.startTime,
16
+ endTime = _ref.endTime,
17
+ throwPointId = _ref.throwPointId;
18
+ var _useSettings = useSettings(),
19
+ isDark = _useSettings.isDark;
20
+ var _throwFailBehaviorSer = throwFailBehaviorService.useGetList({
21
+ housingEstateId: id,
22
+ startDatetime: startTime,
23
+ endDatetime: endTime,
24
+ throwPointId: throwPointId,
25
+ throwAberrantCode: throwAberrantCode === 'all' ? '' : throwAberrantCode
26
+ }),
27
+ data = _throwFailBehaviorSer.data,
28
+ loading = _throwFailBehaviorSer.loading;
29
+ var ThrowAberrantEnum = {
30
+ MIXED_THROW: '#26A666',
31
+ TRASH_BAG: '#F9667E',
32
+ WRONG_TIME_OUT: '#7470F9',
33
+ RIGHT_TIME_OUT: '#FFAA00',
34
+ QITA_MIXED_THROW: '#479DE3',
35
+ ON_LID: '#FFAA00'
36
+ };
37
+ var RectificationStatusEnum = {
38
+ TO_BE_DISPATCHED: 'yellow',
39
+ // '待派发',
40
+ TO_BE_RESOLVED: 'gray',
41
+ // '待处理',
42
+ TO_BE_AUDITED: 'yellow',
43
+ // '待审核',
44
+ PASSED: 'green',
45
+ // '整改通过',
46
+ FAILED: 'red',
47
+ // '整改不通过',
48
+ IGNORED: 'blue' // '已忽略',
49
+ };
50
+
51
+ // const ThrowAberrantColor = {
52
+ // '#7470F9': 'purple',
53
+ // '#F9667E': 'red',
54
+ // '#FFAA00': 'yellow',
55
+ // '#26A666': 'green',
56
+ // '#479DE3': 'cyan',
57
+ // };
58
+
59
+ return !(data !== null && data !== void 0 && data.length) && !loading ? /*#__PURE__*/_jsx("div", {
60
+ style: {
61
+ height: 500
62
+ },
63
+ children: /*#__PURE__*/_jsx(VmEmpty, {})
64
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
65
+ children: [/*#__PURE__*/_jsx(Spin, {
66
+ spinning: loading,
67
+ className: "".concat(classPrefix, "-content-spin")
68
+ }), /*#__PURE__*/_jsx("div", {
69
+ className: "".concat(classPrefix, "-content ").concat(isDark ? 'dark' : ''),
70
+ children: data === null || data === void 0 || (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
71
+ var _JSON$parse$, _tempDetectObjects$fi;
72
+ var photoId = (_JSON$parse$ = JSON.parse(item.photoAfter || '[]')[0]) === null || _JSON$parse$ === void 0 ? void 0 : _JSON$parse$.id;
73
+ var tempDetectObjects = JSON.parse(item.detectObjects || '[]');
74
+ var photoAfterArr = (_tempDetectObjects$fi = tempDetectObjects.find(function (item) {
75
+ return item.pic === 'dropPic2';
76
+ })) === null || _tempDetectObjects$fi === void 0 ? void 0 : _tempDetectObjects$fi.info;
77
+ var str = "/cloud/sdyd/markBox?fileId=".concat(photoId, "&detectObjects=").concat(photoAfterArr ? JSON.stringify(photoAfterArr) : '', "&token=").concat(getVtxToken('token'));
78
+ return /*#__PURE__*/_jsxs("div", {
79
+ className: "".concat(classPrefix, "-content-item"),
80
+ children: [/*#__PURE__*/_jsx("div", {
81
+ className: "".concat(classPrefix, "-content-item-img"),
82
+ children: /*#__PURE__*/_jsx(VtxImage, {
83
+ src: str
84
+ })
85
+ }), /*#__PURE__*/_jsxs("p", {
86
+ children: [/*#__PURE__*/_jsxs("div", {
87
+ className: "".concat(classPrefix, "-content-item-info1"),
88
+ children: [/*#__PURE__*/_jsx("span", {
89
+ children: item.throwPointName
90
+ }), /*#__PURE__*/_jsx("span", {
91
+ className: "".concat(classPrefix, "-content-item-").concat(item.rectificationStatus),
92
+ children: /*#__PURE__*/_jsx(VmTag, {
93
+ title: item.rectificationStatusDesc,
94
+ type: RectificationStatusEnum[item.rectificationStatus] || 'yellow'
95
+ })
96
+ })]
97
+ }), /*#__PURE__*/_jsxs("div", {
98
+ className: "".concat(classPrefix, "-content-item-info2"),
99
+ children: [/*#__PURE__*/_jsx("span", {
100
+ children: item.datetime
101
+ }), /*#__PURE__*/_jsx("div", {
102
+ style: {
103
+ color: ThrowAberrantEnum[item.aberrantCode]
104
+ },
105
+ children: item.aberrantName
106
+ })]
107
+ }), /*#__PURE__*/_jsxs("div", {
108
+ className: "".concat(classPrefix, "-content-item-info3"),
109
+ children: [/*#__PURE__*/_jsx("img", {
110
+ src: require("../../imgs/avatar".concat(isDark ? '' : '_light', ".png"))
111
+ }), item.personName || '暂无关联用户']
112
+ })]
113
+ })]
114
+ }, item.id);
115
+ })
116
+ })]
117
+ });
118
+ };
119
+ export default WGGSContent;