@vtx/modals2 6.0.0-beta.4 → 6.0.0-beta.6

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 (355) hide show
  1. package/lib/_components/index.js +1 -0
  2. package/lib/_components/vm-appraisal-info/api.js +55 -0
  3. package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
  4. package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
  5. package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
  6. package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
  7. package/lib/_components/vm-appraisal-info/index.js +230 -0
  8. package/lib/_components/vm-appraisal-info/index.less +7 -0
  9. package/lib/_components/vm-calendar/index.js +1 -1
  10. package/lib/_components/vm-empty/index.js +1 -1
  11. package/lib/_components/vm-factor/index.js +1 -1
  12. package/lib/_components/vm-filter/index.js +1 -1
  13. package/lib/_components/vm-filter/style/index.less +7 -11
  14. package/lib/_components/vm-info-collection/index.js +1 -1
  15. package/lib/_components/vm-map/index.js +1 -1
  16. package/lib/_components/vm-progress/index.js +1 -1
  17. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +1 -1
  18. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +1 -1
  19. package/lib/_components/vm-repair-maintain/RmRecord.js +1 -1
  20. package/lib/_components/vm-repair-maintain/RmType.js +1 -1
  21. package/lib/_components/vm-repair-maintain/index.js +35 -3
  22. package/lib/_components/vm-table/index.js +1 -1
  23. package/lib/_components/vm-tag/index.js +1 -1
  24. package/lib/_components/vm-title/index.js +1 -1
  25. package/lib/_components/vm-video/HistoryGrid.js +2 -0
  26. package/lib/_components/vm-video/RealtimeGrid.js +2 -0
  27. package/lib/_components/vm-video/index.js +46 -19
  28. package/lib/_components/vm-wrapper/index.js +1 -1
  29. package/lib/_hooks/useGetChannels.js +20 -6
  30. package/lib/_util/http.js +27 -1
  31. package/lib/_util/index.js +1 -1
  32. package/lib/locales/en.json +1516 -1516
  33. package/lib/locales/zh-CN.json +1516 -1516
  34. package/lib/vtx-area-modal/api.js +1 -1
  35. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +1 -1
  36. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +1 -1
  37. package/lib/vtx-area-modal/components/BaseInfo/index.js +1 -1
  38. package/lib/vtx-base-modal/Tabs/index.js +2 -1
  39. package/lib/vtx-base-modal/index.js +1 -1
  40. package/lib/vtx-car-modal/components/Info/index.js +2 -2
  41. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +1 -1
  42. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +1 -1
  43. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +1 -1
  44. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +1 -1
  45. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +1 -1
  46. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +1 -1
  47. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +1 -1
  48. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +1 -1
  49. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -1
  50. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +1 -1
  51. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +1 -1
  52. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +1 -1
  53. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +1 -1
  54. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
  55. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +1 -1
  56. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +1 -1
  57. package/lib/vtx-car-modal/content/Common/EleUse/index.js +20 -8
  58. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +1 -1
  59. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +1 -1
  60. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +1 -1
  61. package/lib/vtx-car-modal/content/Common/OilUse/index.js +18 -6
  62. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +1 -1
  63. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -169
  64. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -1
  65. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -1
  66. package/lib/vtx-car-modal/content/Common/WaterUse/index.js +10 -5
  67. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +1 -1
  68. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +1 -1
  69. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +1 -1
  70. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +1 -1
  71. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +1 -1
  72. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +1 -1
  73. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +1 -1
  74. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +1 -1
  75. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
  76. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +1 -1
  77. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +1 -1
  78. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
  79. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +1 -1
  80. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +1 -1
  81. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +1 -1
  82. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +1 -1
  83. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +1 -1
  84. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +1 -1
  85. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +1 -1
  86. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +1 -1
  87. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +1 -1
  88. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +1 -1
  89. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +1 -1
  90. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +1 -1
  91. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +1 -1
  92. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +1 -1
  93. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -1
  94. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +1 -1
  95. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +1 -1
  96. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +1 -1
  97. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +1 -1
  98. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -1
  99. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +1 -1
  100. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +1 -1
  101. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +1 -1
  102. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +1 -1
  103. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +1 -1
  104. package/lib/vtx-car-modal/index.js +1 -1
  105. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
  106. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +1 -1
  107. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +1 -1
  108. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +1 -1
  109. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +1 -1
  110. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
  111. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
  112. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
  113. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +1 -1
  114. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +1 -1
  115. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +1 -1
  116. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +1 -1
  117. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +1 -1
  118. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +1 -1
  119. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +1 -1
  120. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +1 -1
  121. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
  122. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
  123. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
  124. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
  125. package/lib/vtx-cc-cp-modal/index.js +1 -1
  126. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +1 -1
  127. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +1 -1
  128. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +1 -1
  129. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +1 -1
  130. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
  131. package/lib/vtx-cc-unit-modal/components/CarList/index.js +1 -1
  132. package/lib/vtx-cc-unit-modal/components/Collection/index.js +1 -1
  133. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
  134. package/lib/vtx-cc-unit-modal/components/Factory/index.js +1 -1
  135. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +1 -1
  136. package/lib/vtx-cc-unit-modal/index.js +1 -1
  137. package/lib/vtx-cp-modal/api.js +1 -1
  138. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
  139. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
  140. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +1 -1
  141. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +1 -1
  142. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +1 -1
  143. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -1
  144. package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
  145. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +1 -1
  146. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +1 -1
  147. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +1 -1
  148. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +3 -3
  149. package/lib/vtx-cp-modal/components/SyInfo/index.js +1 -1
  150. package/lib/vtx-cp-modal/index.js +13 -13
  151. package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
  152. package/lib/vtx-default-modal/index.js +8 -7
  153. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +1 -1
  154. package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
  155. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +1 -1
  156. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
  157. package/lib/vtx-device-modal/index.js +1 -1
  158. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +1 -1
  159. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +3 -3
  160. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +1 -1
  161. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +1 -1
  162. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
  163. package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
  164. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +1 -1
  165. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +3 -3
  166. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +1 -1
  167. package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +1 -1
  168. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +1 -1
  169. package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
  170. package/lib/vtx-df-modal/components/Calendar/index.js +1 -1
  171. package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +1 -1
  172. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
  173. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
  174. package/lib/vtx-df-modal/components/Metering/List.js +1 -1
  175. package/lib/vtx-df-modal/components/Metering/index.js +1 -1
  176. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +1 -1
  177. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +1 -1
  178. package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +1 -1
  179. package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +1 -1
  180. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
  181. package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
  182. package/lib/vtx-df-modal/components/WorkCondition/index.js +1 -1
  183. package/lib/vtx-df-modal/index.js +4 -14
  184. package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +1 -1
  185. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +1 -1
  186. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +1 -1
  187. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +1 -1
  188. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +1 -1
  189. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +1 -1
  190. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +1 -1
  191. package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +1 -1
  192. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +1 -1
  193. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +1 -1
  194. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +1 -1
  195. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +1 -1
  196. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
  197. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
  198. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
  199. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +1 -1
  200. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +1 -1
  201. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +1 -1
  202. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
  203. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +1 -1
  204. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +1 -1
  205. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +1 -1
  206. package/lib/vtx-housing-estate-modal/index.js +1 -1
  207. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +1 -1
  208. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
  209. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +1 -1
  210. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +1 -1
  211. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +1 -1
  212. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +1 -1
  213. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +1 -1
  214. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +1 -1
  215. package/lib/vtx-jzlj-df-tpd-modal/index.js +1 -1
  216. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +1 -1
  217. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +1 -1
  218. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +1 -1
  219. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
  220. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +1 -1
  221. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +1 -1
  222. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +1 -1
  223. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +1 -1
  224. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +1 -1
  225. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +1 -1
  226. package/lib/vtx-jzlj-gcxm-modal/index.js +1 -1
  227. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +1 -1
  228. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
  229. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +1 -1
  230. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +1 -1
  231. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +1 -1
  232. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +1 -1
  233. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +1 -1
  234. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +1 -1
  235. package/lib/vtx-jzlj-xnc-modal/index.js +1 -1
  236. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +1 -1
  237. package/lib/vtx-jzlj-ysqy-modal/index.js +1 -1
  238. package/lib/vtx-kh-modal/api2.js +1 -1
  239. package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
  240. package/lib/vtx-kh-modal/components/Record/index.js +1 -205
  241. package/lib/vtx-kh-modal/index.js +1 -1
  242. package/lib/vtx-qyry-modal/api.js +1 -1
  243. package/lib/vtx-qyry-modal/index.js +1 -1
  244. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
  245. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
  246. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
  247. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +1 -1
  248. package/lib/vtx-restaurant-modal/components/Alarm/index.js +1 -1
  249. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +1 -1
  250. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
  251. package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
  252. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
  253. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +1 -1
  254. package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
  255. package/lib/vtx-restaurant-modal/components/Calendar/index.js +1 -1
  256. package/lib/vtx-restaurant-modal/components/Collection/index.js +1 -1
  257. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +1 -1
  258. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +1 -1
  259. package/lib/vtx-restaurant-modal/index.js +1 -1
  260. package/lib/vtx-road-modal/api.js +1 -1
  261. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
  262. package/lib/vtx-road-modal/components/BaseInfo/Work.js +10 -2
  263. package/lib/vtx-road-modal/components/BaseInfo/index.js +1 -1
  264. package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
  265. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +9 -2
  266. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +1 -1
  267. package/lib/vtx-road-modal/components/LaneCalendar/index.js +1 -1
  268. package/lib/vtx-road-modal/components/LaneStatistical/index.js +1 -1
  269. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  270. package/lib/vtx-road-modal/index.js +7 -4
  271. package/lib/vtx-road-modal/utils/url.js +12 -0
  272. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +1 -1
  273. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +1 -1
  274. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +1 -1
  275. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +1 -1
  276. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +1 -1
  277. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +1 -1
  278. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +1 -1
  279. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +1 -1
  280. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +1 -1
  281. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +1 -1
  282. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +1 -1
  283. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +1 -1
  284. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +1 -1
  285. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +1 -1
  286. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
  287. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +1 -1
  288. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +1 -1
  289. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +1 -1
  290. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +1 -1
  291. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +1 -1
  292. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +1 -1
  293. package/lib/vtx-sdyd-tfd-modal/index.js +1 -1
  294. package/lib/vtx-shxq-modal/api.js +1 -1
  295. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +1 -1
  296. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +1 -1
  297. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
  298. package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
  299. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +1 -1
  300. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +3 -3
  301. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +1 -1
  302. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +1 -1
  303. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
  304. package/lib/vtx-shxq-modal/index.js +19 -4
  305. package/lib/vtx-staff-modal/api.js +1 -1
  306. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +1 -1
  307. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
  308. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +1 -1
  309. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +1 -1
  310. package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
  311. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +1 -1
  312. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +1 -1
  313. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +1 -1
  314. package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
  315. package/lib/vtx-staff-modal/components/Calendar/index.js +1 -1
  316. package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
  317. package/lib/vtx-staff-modal/index.js +1 -1
  318. package/lib/vtx-tfd-modal/api.js +1 -1
  319. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +3 -3
  320. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +1 -1
  321. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
  322. package/lib/vtx-wr-modal/components/Appraise/index.js +1 -1
  323. package/lib/vtx-wr-modal/components/Base/Jbxx.js +1 -1
  324. package/lib/vtx-wr-modal/components/Base/Ptss.js +1 -1
  325. package/lib/vtx-wr-modal/components/Base/Sjjg.js +1 -1
  326. package/lib/vtx-wr-modal/components/Base/index.js +1 -1
  327. package/lib/vtx-wr-modal/components/Build/index.js +1 -1
  328. package/lib/vtx-wr-modal/components/File/index.js +1 -1
  329. package/lib/vtx-wr-modal/components/Score/index.js +1 -1
  330. package/lib/vtx-wr-modal/index.js +24 -5
  331. package/lib/vtx-zf-modal/components/Base/index.js +1 -1
  332. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +1 -1
  333. package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +1 -1
  334. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +1 -1
  335. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +1 -1
  336. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +1 -1
  337. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +1 -1
  338. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +1 -1
  339. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +1 -1
  340. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +1 -1
  341. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +1 -1
  342. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +1 -1
  343. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +1 -1
  344. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +1 -1
  345. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +1 -1
  346. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +1 -1
  347. package/lib/vtx-zf-modal/components/File/index.js +1 -1
  348. package/lib/vtx-zf-modal/components/Process/index.js +1 -1
  349. package/lib/vtx-zf-modal/components/Record/index.js +1 -1
  350. package/lib/vtx-zf-modal/components/Right/index.js +1 -1
  351. package/lib/vtx-zg-modal/api.js +1 -1
  352. package/lib/vtx-zg-modal/components/BaseInfo/index.js +1 -1
  353. package/lib/vtx-zg-modal/index.js +1 -1
  354. package/lib/vtx-zzz-modal/index.js +7 -13
  355. package/package.json +1 -1
@@ -24,8 +24,31 @@ import { VmTabs } from "../vm-tabs";
24
24
  import HistoryGrid from "./HistoryGrid";
25
25
  import "./index.less";
26
26
  import RealtimeGrid from "./RealtimeGrid";
27
- import { translateLocaleText } from "./../../hooks/useTranslation.ts";
27
+ import { translateLocaleText } from "./../../hooks/useTranslation.js";
28
28
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
29
+ export var VIDEO_TAB_KEY = 'video';
30
+ export var getVideoTab = function getVideoTab() {
31
+ return {
32
+ key: VIDEO_TAB_KEY,
33
+ title: translateLocaleText("t('vtxdevicemodal.video')")
34
+ };
35
+ };
36
+ export var isVideoTab = function isVideoTab(tab) {
37
+ return (tab === null || tab === void 0 ? void 0 : tab.key) === VIDEO_TAB_KEY || "".concat((tab === null || tab === void 0 ? void 0 : tab.key) || '').endsWith('video');
38
+ };
39
+ export var insertVideoTab = function insertVideoTab() {
40
+ var tabs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
41
+ var channels = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
42
+ if (!Array.isArray(tabs) || tabs.length === 0) {
43
+ return tabs;
44
+ }
45
+ if (!(channels !== null && channels !== void 0 && channels.length)) {
46
+ return tabs.filter(function (tab) {
47
+ return !isVideoTab(tab);
48
+ });
49
+ }
50
+ return tabs;
51
+ };
29
52
  var VmVideo = function VmVideo(_ref) {
30
53
  var _ref$channels = _ref.channels,
31
54
  channels = _ref$channels === void 0 ? [] : _ref$channels;
@@ -62,6 +85,8 @@ var VmVideo = function VmVideo(_ref) {
62
85
  endTime = state.endTime,
63
86
  history = state.history;
64
87
  useEffect(function () {
88
+ var s,
89
+ e = '';
65
90
  if (dateType === 'custom') {
66
91
  setState({
67
92
  datePickerDisabled: false
@@ -70,23 +95,25 @@ var VmVideo = function VmVideo(_ref) {
70
95
  setState({
71
96
  datePickerDisabled: true
72
97
  });
73
- if (dateType === 'dayBeforeYesterday') {
74
- setState({
75
- startTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 00:00:00'),
76
- endTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 23:59:59')
77
- });
78
- } else if (dateType === 'yesterday') {
79
- setState({
80
- startTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'),
81
- endTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 23:59:59')
82
- });
83
- } else if (dateType === 'today') {
84
- setState({
85
- startTime: dayjs().format('YYYY-MM-DD 00:00:00'),
86
- endTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
87
- });
88
- }
89
98
  }
99
+ if (dateType === 'dayBeforeYesterday') {
100
+ s = dayjs().subtract(2, 'day').format('YYYY-MM-DD 00:00:00');
101
+ e = dayjs().subtract(2, 'day').format('YYYY-MM-DD 23:59:59');
102
+ } else if (dateType === 'yesterday') {
103
+ s = dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00');
104
+ e = dayjs().subtract(1, 'day').format('YYYY-MM-DD 23:59:59');
105
+ } else {
106
+ s = dayjs().format('YYYY-MM-DD 00:00:00');
107
+ e = dayjs().format('YYYY-MM-DD HH:mm:ss');
108
+ }
109
+ setState({
110
+ startTime: s,
111
+ endTime: e
112
+ });
113
+ form.setFieldsValue({
114
+ beginTime: dayjs(s),
115
+ endTime: dayjs(e)
116
+ });
90
117
  }, [dateType]);
91
118
  useEffect(function () {
92
119
  if (channels !== null && channels !== void 0 && channels.length && tabKey === '1') {
@@ -200,8 +227,8 @@ var VmVideo = function VmVideo(_ref) {
200
227
  requiredMark: false,
201
228
  colon: true,
202
229
  initialValues: {
203
- beginTime: startTime ? dayjs(startTime) : dayjs().subtract(1, 'day').startOf('day'),
204
- endTime: endTime ? dayjs(endTime) : dayjs().subtract(1, 'day').endOf('day')
230
+ beginTime: startTime ? dayjs(startTime) : dayjs().startOf('day'),
231
+ endTime: endTime ? dayjs(endTime) : dayjs().endOf('day')
205
232
  },
206
233
  autoComplete: "off",
207
234
  children: [/*#__PURE__*/_jsx(Form.Item, {
@@ -18,7 +18,7 @@ import useSettings from "../../_hooks/useSettings";
18
18
  import { ChartIcon, DateIcon, ListIcon } from "../../_util/iconSvgHtml";
19
19
  import VmFilter from "../vm-filter";
20
20
  import "./style";
21
- import { translateLocaleText } from "./../../hooks/useTranslation.ts";
21
+ import { translateLocaleText } from "./../../hooks/useTranslation.js";
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  var VMDatePicker = VmFilter.VMDatePicker,
24
24
  VMMonthPicker = VmFilter.VMMonthPicker,
@@ -1,13 +1,27 @@
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
1
5
  import { useRequest } from 'ahooks';
2
6
  import http from "../_util/http";
3
7
  export default (function (billId, ready) {
4
- var _useRequest = useRequest(function () {
5
- return http.get("".concat(process.env.PREFIX || '', "/cloud/vis/base/np/videoDevice/loadVideoChannelByBillId.smvc"), {
6
- body: {
7
- billId: billId
8
+ var _useRequest = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9
+ var url;
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ url = "".concat(process.env.PREFIX || '', "/cloud/vis/base/np/videoDevice/loadVideoChannelByBillId.smvc");
14
+ return _context.abrupt("return", http.get(url, {
15
+ body: {
16
+ billId: billId
17
+ }
18
+ }));
19
+ case 2:
20
+ case "end":
21
+ return _context.stop();
8
22
  }
9
- });
10
- }, {
23
+ }, _callee);
24
+ })), {
11
25
  ready: ready,
12
26
  refreshDeps: [billId]
13
27
  }),
package/lib/_util/http.js CHANGED
@@ -15,7 +15,7 @@ import { message } from 'antd';
15
15
  import isObject from 'lodash/isObject';
16
16
  import pickBy from 'lodash/pickBy';
17
17
  import qs from 'qs';
18
- import { translateLocaleText } from "../hooks/useTranslation.ts";
18
+ import { translateLocaleText } from "../hooks/useTranslation.js";
19
19
  var SECOND = 30;
20
20
  var MILL_SECOND = 1000;
21
21
  var baseUrlPrefix = process.env.PREFIX ? "/".concat(process.env.PREFIX) : '';
@@ -78,6 +78,32 @@ var Http = /*#__PURE__*/function () {
78
78
  } : {})
79
79
  });
80
80
  }
81
+
82
+ /**
83
+ * 判断接口是否存在
84
+ * @param {*} url
85
+ */
86
+ }, {
87
+ key: "exists",
88
+ value: function exists(url) {
89
+ var _url = baseUrlPrefix + url;
90
+ var token = getVtxToken('token');
91
+ return axios.head(_url, {
92
+ validateStatus: function validateStatus() {
93
+ return true;
94
+ },
95
+ headers: {
96
+ Authorization: token ? "Bearer ".concat(token) : '',
97
+ tenantId: getVtxToken('tenantId'),
98
+ userId: getVtxToken('userId')
99
+ }
100
+ }).then(function (res) {
101
+ return res.status !== 404;
102
+ }).catch(function (error) {
103
+ var _error$response;
104
+ return (error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) !== 404;
105
+ });
106
+ }
81
107
  /**
82
108
  * get 请求
83
109
  * @param {*} url
@@ -1,4 +1,4 @@
1
- import { translateLocaleText } from "../hooks/useTranslation.ts";
1
+ import { translateLocaleText } from "../hooks/useTranslation.js";
2
2
  // 秒转化为时间的格式化字符串
3
3
  export function secondToFormatTime(times) {
4
4
  if (times <= 0) return '--';