@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,121 @@
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 { Select } from 'antd';
12
+ import dayjs from 'dayjs';
13
+ import { useEffect, useState } from 'react';
14
+ import { VmWrapper } from "../../../_components";
15
+ import { getViolateBehavior } from "../../api";
16
+ import { filterCode } from "../../config";
17
+ import WGXWContent from "./Content";
18
+ import "./index.less";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
+ var Option = Select.Option;
21
+ var WGXW = function WGXW(_ref) {
22
+ var _ref$classPrefix = _ref.classPrefix,
23
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
24
+ id = _ref.id,
25
+ _ref$throwPoints = _ref.throwPoints,
26
+ throwPoints = _ref$throwPoints === void 0 ? [] : _ref$throwPoints,
27
+ serviceList = _ref.serviceList;
28
+ var prefix = "".concat(classPrefix, "-wgxw");
29
+ var _useState = useState('all'),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ tab = _useState2[0],
32
+ setTab = _useState2[1];
33
+ var _useState3 = useState([dayjs(), dayjs()]),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ times = _useState4[0],
36
+ setTimes = _useState4[1];
37
+ // 违规行为
38
+ var _useState5 = useState('all'),
39
+ _useState6 = _slicedToArray(_useState5, 2),
40
+ throwAberrantCode = _useState6[0],
41
+ setThrowAberrantCode = _useState6[1];
42
+ // 违规行为
43
+ var _useState7 = useState([]),
44
+ _useState8 = _slicedToArray(_useState7, 2),
45
+ throwAberrantList = _useState8[0],
46
+ setThrowAberrantList = _useState8[1];
47
+ useEffect(function () {
48
+ getViolateBehavior().then(function (data) {
49
+ setThrowAberrantList([{
50
+ text: '全部',
51
+ value: 'all'
52
+ }].concat(_toConsumableArray(data || [])));
53
+ });
54
+ }, []);
55
+ var onTabChange = function onTabChange(tab) {
56
+ setTab(tab);
57
+ };
58
+ var searchContent = /*#__PURE__*/_jsxs("div", {
59
+ style: {
60
+ textAlign: 'right',
61
+ paddingRight: 10
62
+ },
63
+ className: "searchContent ",
64
+ children: [/*#__PURE__*/_jsx("span", {
65
+ style: {
66
+ color: '#B3C4CE'
67
+ },
68
+ children: " \u8FDD\u89C4\u884C\u4E3A\uFF1A"
69
+ }), /*#__PURE__*/_jsx(Select, {
70
+ value: throwAberrantCode,
71
+ onChange: function onChange(value) {
72
+ return setThrowAberrantCode(value);
73
+ },
74
+ style: {
75
+ width: 120
76
+ },
77
+ children: throwAberrantList.map(function (item) {
78
+ return /*#__PURE__*/_jsx(Option, {
79
+ children: item.text
80
+ }, item.value);
81
+ })
82
+ })]
83
+ });
84
+ return /*#__PURE__*/_jsx("div", {
85
+ className: prefix,
86
+ children: /*#__PURE__*/_jsxs(VmWrapper, {
87
+ tabList: [{
88
+ label: '所有投放点',
89
+ key: 'all'
90
+ }].concat(throwPoints === null || throwPoints === void 0 ? void 0 : throwPoints.map(function (ele) {
91
+ return {
92
+ label: ele.pointName,
93
+ key: ele.id
94
+ };
95
+ })),
96
+ activeKey: tab,
97
+ onChangeTab: onTabChange,
98
+ filterType: "rangePicker",
99
+ dateValue: times,
100
+ filterChange: function filterChange(date) {
101
+ setTimes(date);
102
+ },
103
+ children: [tab === 'all' && /*#__PURE__*/_jsx(WGXWContent, {
104
+ classPrefix: prefix,
105
+ id: id,
106
+ throwAberrantCode: throwAberrantCode,
107
+ startTime: times[0].format('YYYY-MM-DD 00:00:00'),
108
+ endTime: times[1].format('YYYY-MM-DD 23:59:59'),
109
+ throwPointId: ""
110
+ }), tab !== 'all' && filterCode(serviceList, ['CHUYU_QUALITY', 'LANDING', 'ON_LID', 'QITA_QUALITY']) && /*#__PURE__*/_jsx(WGXWContent, {
111
+ classPrefix: prefix,
112
+ id: id,
113
+ throwAberrantCode: throwAberrantCode,
114
+ startTime: times[0].format('YYYY-MM-DD 00:00:00'),
115
+ endTime: times[1].format('YYYY-MM-DD 23:59:59'),
116
+ throwPointId: tab
117
+ })]
118
+ })
119
+ });
120
+ };
121
+ export default WGXW;
@@ -0,0 +1,97 @@
1
+ @import '../../style/index';
2
+
3
+ .@{prefix-cls}-wgxw {
4
+ &-content {
5
+ --wgxw-main-color: #000;
6
+ --wgwx-label-color: #595959;
7
+ --wgxw-border-color: rgba(0, 0, 0, 0.1);
8
+ --wgxw-bg-color: transparent;
9
+
10
+ &.dark {
11
+ --wgxw-main-color: #fff;
12
+ --wgwx-label-color: #fff;
13
+ --wgxw-border-color: #1064a7;
14
+ --wgxw-bg-color: rgba(0, 155, 233, 0.1);
15
+ }
16
+
17
+ &-spin {
18
+ position: absolute;
19
+ margin: 150px 0 0 50%;
20
+ transform: translateX(-50%);
21
+ }
22
+
23
+ display: grid;
24
+ grid-template-columns: 1fr 1fr 1fr 1fr;
25
+ gap: 16px;
26
+ overflow: auto;
27
+ color: var(--modal-title-color);
28
+ position: relative;
29
+ &-item {
30
+ padding-bottom: 0;
31
+ display: flex;
32
+ flex-direction: column;
33
+ height: 233px;
34
+ background: var(--wgxw-bg-color);
35
+ border: 1px solid var(--wgxw-border-color);
36
+ border-radius: 8px;
37
+ &-img {
38
+ flex: 1;
39
+ img {
40
+ border-radius: 8px 8px 0 0;
41
+ width: 100%;
42
+ height: 133px;
43
+ }
44
+ }
45
+ & > p {
46
+ padding: 12px 6px;
47
+ height: 101px;
48
+ font-size: 14px;
49
+ }
50
+
51
+ &-info1 {
52
+ display: flex;
53
+ justify-content: space-between;
54
+ align-items: center;
55
+ margin-bottom: 4px;
56
+ & > span:nth-child(1) {
57
+ color: var(--wgxw-main-color);
58
+ font-size: 14px;
59
+ }
60
+ }
61
+ &-info2 {
62
+ display: flex;
63
+ justify-content: space-between;
64
+ align-items: center;
65
+ margin-bottom: 4px;
66
+ & > span {
67
+ color: var(--wgwx-label-color);
68
+ }
69
+ & > div {
70
+ color: var(--wgwx-label-color);
71
+ }
72
+ }
73
+ &-info3 {
74
+ display: flex;
75
+ gap: 8px;
76
+ align-items: center;
77
+ color: var(--wgwx-label-color);
78
+ }
79
+ &-TO_BE_RESOLVED,
80
+ &-PENDING {
81
+ color: #faad14;
82
+ }
83
+ &-TO_BE_AUDITED {
84
+ color: #faad14;
85
+ }
86
+ &-FAILED {
87
+ color: #ff4d4f;
88
+ }
89
+ &-PASSED {
90
+ color: #52c41a;
91
+ }
92
+ &-IGNORED {
93
+ color: #999999;
94
+ }
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,5 @@
1
+ export { default as Alarm } from "./Alarm";
2
+ export { default as OverView } from "./OverView";
3
+ export { default as TFRD } from "./TFRD";
4
+ export { default as WGGS } from "./WGGS";
5
+ export { default as WGXW } from "./WGXW";
@@ -0,0 +1,77 @@
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 _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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ 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; }
7
+ export var OverViewLeftFields = [{
8
+ key: 'householdNum',
9
+ label: '居民户数(户)'
10
+ }, {
11
+ key: 'supervisorNum',
12
+ label: '督导员数量'
13
+ }, {
14
+ key: 'personNum',
15
+ label: '居民人数(人)'
16
+ }, {
17
+ key: 'throwPointNum',
18
+ label: '投放点数量'
19
+ }, {
20
+ key: 'divisionName',
21
+ label: '行政区划'
22
+ }, {
23
+ key: 'jcssTypeName',
24
+ label: '分类主体'
25
+ },
26
+ // {
27
+ // key: 'jcssTypeName',
28
+ // label: '投放时间',
29
+ // },
30
+ {
31
+ key: 'manageOrgName',
32
+ label: '管理单位'
33
+ }, {
34
+ key: 'responsibleOrgName',
35
+ label: '运营公司'
36
+ }, {
37
+ key: 'address',
38
+ label: '地址'
39
+ }];
40
+
41
+ // 过滤echarts数据
42
+ export var getFilterEcharts = function getFilterEcharts(data, filterList) {
43
+ var _data = [];
44
+ if (!(data !== null && data !== void 0 && data.length)) return;
45
+ filterList.forEach(function (item) {
46
+ switch (item) {
47
+ case 'CHUYU_QUALITY':
48
+ _data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
49
+ return ele.alarmTypeName === '厨余混投' || ele.alarmTypeName === '厨余未破袋';
50
+ }));
51
+ break;
52
+ case 'LANDING':
53
+ _data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
54
+ return ele.alarmTypeName === '误时落地' || ele.alarmTypeName === '正时落地';
55
+ }));
56
+ break;
57
+ case 'OVERFLOW':
58
+ _data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
59
+ return ele.alarmTypeName === '满溢';
60
+ }));
61
+ break;
62
+ default:
63
+ _data = data;
64
+ break;
65
+ }
66
+ });
67
+ return _data;
68
+ };
69
+
70
+ // 取两个数组的交集
71
+ export var filterCode = function filterCode(arr, codes) {
72
+ var newArr = new Set(arr);
73
+ var newCodes = new Set(codes);
74
+ return new Set(_toConsumableArray(newArr).filter(function (x) {
75
+ return newCodes.has(x);
76
+ }));
77
+ };
@@ -0,0 +1,108 @@
1
+ import { useMemo } from 'react';
2
+ import VmCustom from "../_components/vm-custom";
3
+ import useGetConfig from "../_hooks/useGetConfig";
4
+ import VtxBaseModal from "../vtx-base-modal";
5
+ import { overViewService, useGetLoadEnumValue } from "./api";
6
+ import { Alarm, OverView, TFRD, WGGS, WGXW } from "./components";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ var VtxHousingEstateModal = function VtxHousingEstateModal(props) {
9
+ var _props$visible = props.visible,
10
+ visible = _props$visible === void 0 ? false : _props$visible,
11
+ onCancel = props.onCancel,
12
+ _props$theme = props.theme,
13
+ theme = _props$theme === void 0 ? '' : _props$theme,
14
+ id = props.id,
15
+ _props$title = props.title,
16
+ title = _props$title === void 0 ? '' : _props$title;
17
+ var PREFIX = 'estate';
18
+ var tabs = [{
19
+ key: 'base',
20
+ title: '总览信息'
21
+ }, {
22
+ key: 'wgrgs',
23
+ title: '违规人公示'
24
+ }, {
25
+ key: 'tfrd',
26
+ title: '居民投放热度'
27
+ }, {
28
+ key: 'wgxw',
29
+ title: '居民违规行为'
30
+ }, {
31
+ key: 'alarm',
32
+ title: '报警时间分析'
33
+ }];
34
+ var _useGetConfig = useGetConfig('estate', tabs),
35
+ tabsData = _useGetConfig.tabsData;
36
+ // 小区基本信息
37
+ var basicInfo = overViewService.useEstateStatistics({
38
+ housingEstateId: id
39
+ });
40
+ // 系统配置获取垃圾类型配置的图标
41
+ var garbageIcons = overViewService.useGetGarbageIcons();
42
+ // 小区关联投放点
43
+ var throwPoints = overViewService.useThrowPoints({
44
+ housingEstateId: id
45
+ });
46
+ // 小区业务包code
47
+ var serviceList = useGetLoadEnumValue(id) || [];
48
+ var tabsList = useMemo(function () {
49
+ var tabsList = tabsData;
50
+ if (!serviceList.includes('THROW')) {
51
+ tabsList = tabsList.filter(function (ele) {
52
+ return ele.key !== 'tfrd';
53
+ });
54
+ }
55
+ return tabsList;
56
+ }, [JSON.stringify(tabsData), JSON.stringify(serviceList)]);
57
+ var tabContents = {
58
+ base: /*#__PURE__*/_jsx(OverView, {
59
+ classPrefix: PREFIX,
60
+ id: id,
61
+ basicInfo: basicInfo,
62
+ throwPoints: throwPoints,
63
+ serviceList: serviceList,
64
+ garbageIcons: garbageIcons
65
+ }),
66
+ wgrgs: /*#__PURE__*/_jsx(WGGS, {
67
+ classPrefix: PREFIX,
68
+ id: id,
69
+ throwPoints: throwPoints,
70
+ serviceList: serviceList
71
+ }),
72
+ tfrd: /*#__PURE__*/_jsx(TFRD, {
73
+ classPrefix: PREFIX,
74
+ id: id
75
+ }),
76
+ alarm: /*#__PURE__*/_jsx(Alarm, {
77
+ classPrefix: PREFIX,
78
+ id: id
79
+ }),
80
+ wgxw: /*#__PURE__*/_jsx(WGXW, {
81
+ classPrefix: PREFIX,
82
+ id: id,
83
+ throwPoints: throwPoints,
84
+ serviceList: serviceList
85
+ })
86
+ };
87
+ // 自定义页签可配置多个,
88
+ if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
89
+ tabsData.forEach(function (ele) {
90
+ if (ele.url) {
91
+ tabContents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
92
+ id: id,
93
+ url: ele === null || ele === void 0 ? void 0 : ele.url
94
+ });
95
+ }
96
+ });
97
+ }
98
+ return /*#__PURE__*/_jsx(VtxBaseModal, {
99
+ title: title,
100
+ theme: theme,
101
+ width: 1344,
102
+ tabs: tabs,
103
+ contents: tabContents,
104
+ visible: visible,
105
+ onCancel: onCancel
106
+ });
107
+ };
108
+ export default VtxHousingEstateModal;
@@ -0,0 +1,4 @@
1
+ import "../components/OverView/index.less";
2
+ // import '../components/WGGS/index.less';
3
+ // import '../components/Alarm/index.less';
4
+ import "./index.less";
@@ -0,0 +1 @@
1
+ @prefix-cls: estate;
@@ -0,0 +1,178 @@
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 { MapIcon } from '@vtx/map-icon';
8
+ import { request } from '@vtx/utils';
9
+ import { useRequest } from 'ahooks';
10
+ var BaseService = {
11
+ useBaseInfo: function useBaseInfo(id) {
12
+ var _info$categoryDTO, _info$geometryInfo, _info$geometryInfo2, _info$geometryInfo3;
13
+ var _useRequest = useRequest(function () {
14
+ return request.get('/cloud/zykh-reborn/checkResource/get', {
15
+ data: {
16
+ id: id,
17
+ coordType: 'wgs84'
18
+ }
19
+ });
20
+ }, {
21
+ ready: !!id,
22
+ refreshDeps: [id]
23
+ }),
24
+ baseInfoRes = _useRequest.data;
25
+ var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
26
+ var baseInfo = [{
27
+ label: '编码',
28
+ key: 'code',
29
+ value: info === null || info === void 0 ? void 0 : info.code
30
+ }, {
31
+ label: '名称',
32
+ key: 'name',
33
+ value: info === null || info === void 0 ? void 0 : info.name
34
+ }, {
35
+ label: '分类',
36
+ key: 'categoryName',
37
+ value: info === null || info === void 0 || (_info$categoryDTO = info.categoryDTO) === null || _info$categoryDTO === void 0 ? void 0 : _info$categoryDTO.name
38
+ }, {
39
+ label: '行政区划',
40
+ key: 'divisionName',
41
+ value: info === null || info === void 0 ? void 0 : info.divisionName
42
+ }, {
43
+ label: '标段',
44
+ key: 'tenderName',
45
+ value: info === null || info === void 0 ? void 0 : info.tenderName
46
+ }, {
47
+ label: '管理单位',
48
+ key: 'manageUnitName',
49
+ value: info === null || info === void 0 ? void 0 : info.manageUnitName
50
+ }, {
51
+ label: '责任单位',
52
+ key: 'responsibleUnitName',
53
+ value: info === null || info === void 0 ? void 0 : info.responsibleUnitName
54
+ }, {
55
+ label: '责任人',
56
+ key: 'responsibleStaffName',
57
+ value: info === null || info === void 0 ? void 0 : info.responsibleStaffName
58
+ }, {
59
+ label: '责任人手机',
60
+ key: 'responsibleStaffPhone',
61
+ value: info === null || info === void 0 ? void 0 : info.responsibleStaffPhone
62
+ }];
63
+ var lngLats = info === null || info === void 0 || (_info$geometryInfo = info.geometryInfo) === null || _info$geometryInfo === void 0 ? void 0 : _info$geometryInfo.lngLats;
64
+ var type = info === null || info === void 0 || (_info$geometryInfo2 = info.geometryInfo) === null || _info$geometryInfo2 === void 0 ? void 0 : _info$geometryInfo2.type;
65
+ var results = {};
66
+ if (lngLats) {
67
+ var _lngLats$split, _lngLats$split2;
68
+ results = {
69
+ mapPoints: type === 'point' ? [{
70
+ lng: lngLats === null || lngLats === void 0 || (_lngLats$split = lngLats.split(',')) === null || _lngLats$split === void 0 ? void 0 : _lngLats$split[0],
71
+ lat: lngLats === null || lngLats === void 0 || (_lngLats$split2 = lngLats.split(',')) === null || _lngLats$split2 === void 0 ? void 0 : _lngLats$split2[1],
72
+ icon: 'KH',
73
+ type: type,
74
+ url: new MapIcon.CommonIcon({
75
+ canvasIcon: 'KH',
76
+ color: '#119FFB'
77
+ }).getImgUrl()
78
+ }] : [],
79
+ type: type,
80
+ mapPolygons: type !== 'point' ? [{
81
+ rings: lngLats
82
+ }] : []
83
+ };
84
+ }
85
+ return _objectSpread({
86
+ baseInfo: baseInfo,
87
+ lngLats: (info === null || info === void 0 || (_info$geometryInfo3 = info.geometryInfo) === null || _info$geometryInfo3 === void 0 ? void 0 : _info$geometryInfo3.lngLats) || '',
88
+ info: baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data
89
+ }, results);
90
+ },
91
+ useKhInfo: function useKhInfo(id, startDate, endDate, checkActivityCode) {
92
+ var _useRequest2 = useRequest(function () {
93
+ return request.get('/cloud/zykh-reborn/kanban/resourceInfo', {
94
+ data: {
95
+ resourceId: id,
96
+ coordType: 'wgs84',
97
+ startDate: startDate,
98
+ endDate: endDate,
99
+ checkActivityCode: checkActivityCode
100
+ }
101
+ });
102
+ }, {
103
+ ready: !!id,
104
+ refreshDeps: [id, startDate, endDate, checkActivityCode]
105
+ }),
106
+ res = _useRequest2.data;
107
+ return {
108
+ khRes: (res === null || res === void 0 ? void 0 : res.data) || {}
109
+ };
110
+ },
111
+ useGetQuestions: function useGetQuestions(id, startDate, endDate) {
112
+ var _useRequest3 = useRequest(function () {
113
+ return request.get('/cloud/zykh-reborn/kanban/monthRuleRankList', {
114
+ data: {
115
+ resourceId: id,
116
+ startDate: startDate,
117
+ endDate: endDate
118
+ }
119
+ });
120
+ }, {
121
+ ready: !!id,
122
+ refreshDeps: [id, startDate, endDate]
123
+ }),
124
+ res = _useRequest3.data;
125
+ return {
126
+ questions: (res === null || res === void 0 ? void 0 : res.data) || []
127
+ };
128
+ },
129
+ use7month: function use7month(id, startDate, endDate) {
130
+ var _useRequest4 = useRequest(function () {
131
+ return request.get('/cloud/zykh-reborn/kanban/monthPointList', {
132
+ data: {
133
+ resourceId: id,
134
+ startDate: startDate,
135
+ endDate: endDate
136
+ }
137
+ });
138
+ }, {
139
+ ready: !!id,
140
+ refreshDeps: [id, startDate, endDate]
141
+ }),
142
+ res = _useRequest4.data,
143
+ loading = _useRequest4.loading;
144
+ return {
145
+ monthData: (res === null || res === void 0 ? void 0 : res.data) || []
146
+ };
147
+ }
148
+ };
149
+ var ReocrdService = {
150
+ useRecordInfo: function useRecordInfo(id, startDate, endDate, checkActivityCode, page, sort) {
151
+ var _useRequest5 = useRequest(function () {
152
+ return request.get('/cloud/zykh-reborn/kanban/recordRulePage', {
153
+ data: {
154
+ resourceId: id,
155
+ startDate: startDate,
156
+ endDate: endDate,
157
+ checkActivityCode: checkActivityCode,
158
+ page: page,
159
+ size: 10,
160
+ sort: sort
161
+ }
162
+ });
163
+ }, {
164
+ refreshDeps: [id, startDate, endDate, checkActivityCode, page, sort]
165
+ }),
166
+ recordRes = _useRequest5.data,
167
+ loading = _useRequest5.loading;
168
+ var records = (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {
169
+ total: 0,
170
+ rows: []
171
+ };
172
+ return {
173
+ records: records,
174
+ loading: loading
175
+ };
176
+ }
177
+ };
178
+ export { BaseService, ReocrdService };