@vtx/modals2 5.0.58 → 6.0.0-beta.0

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 (373) hide show
  1. package/README.md +18 -2
  2. package/lib/_components/vm-calendar/index.js +12 -7
  3. package/lib/_components/vm-calendar/style/index.js +0 -1
  4. package/lib/_components/vm-calendar/style/index.less +1 -0
  5. package/lib/_components/vm-card-statistics/index.less +27 -27
  6. package/lib/_components/vm-custom/index.js +1 -1
  7. package/lib/_components/vm-empty/index.js +13 -11
  8. package/lib/_components/vm-factor/index.js +1 -0
  9. package/lib/_components/vm-factor/style/index.less +4 -0
  10. package/lib/_components/vm-factor-list/index.less +11 -11
  11. package/lib/_components/vm-filter/index.js +9 -12
  12. package/lib/_components/vm-info-collection/style/index.js +0 -1
  13. package/lib/_components/vm-map/index.js +18 -0
  14. package/lib/_components/vm-pie-charts/index.js +1 -1
  15. package/lib/_components/vm-popover/index.js +11 -3
  16. package/lib/_components/vm-popover/index.less +10 -7
  17. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
  18. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
  19. package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
  20. package/lib/_components/vm-repair-maintain/RmType.js +5 -4
  21. package/lib/_components/vm-repair-maintain/index.js +4 -3
  22. package/lib/_components/vm-table/index.js +31 -24
  23. package/lib/_components/vm-tabs/index.js +26 -10
  24. package/lib/_components/vm-video/index.js +21 -21
  25. package/lib/_components/vm-wrapper/index.js +8 -4
  26. package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
  27. package/lib/_util/http.js +4 -2
  28. package/lib/_util/setupDayjs.js +16 -0
  29. package/lib/hooks/useTranslation.js +219 -0
  30. package/lib/index.js +3 -0
  31. package/lib/locales/en.json +1377 -0
  32. package/lib/locales/zh-CN.json +1377 -0
  33. package/lib/style/index.less +0 -2
  34. package/lib/vtx-area-modal/api.js +5 -4
  35. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
  36. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
  37. package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
  38. package/lib/vtx-area-modal/index.js +1 -1
  39. package/lib/vtx-base-modal/Header/index.less +99 -98
  40. package/lib/vtx-base-modal/index.js +34 -3
  41. package/lib/vtx-base-modal/style/index.less +14 -1
  42. package/lib/vtx-car-modal/components/Info/index.js +37 -7
  43. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  44. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
  45. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
  46. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
  47. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
  48. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
  49. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
  50. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
  51. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
  52. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
  53. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
  54. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
  55. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
  56. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
  57. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
  58. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
  59. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
  60. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
  61. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
  62. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
  63. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  64. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
  65. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
  66. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  67. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
  68. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
  69. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
  70. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
  71. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
  72. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
  73. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
  74. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
  75. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
  76. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
  77. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
  78. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
  79. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
  80. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
  81. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
  82. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
  83. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
  84. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
  85. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
  86. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
  87. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
  88. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
  89. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
  90. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
  91. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
  92. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
  93. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
  94. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
  95. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
  96. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
  97. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
  98. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
  99. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
  100. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
  101. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
  102. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
  103. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
  104. package/lib/vtx-car-modal/index.js +25 -24
  105. package/lib/vtx-car-modal/style/index.js +1 -3
  106. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
  107. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
  108. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
  109. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
  110. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
  111. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
  112. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
  113. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
  114. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
  115. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
  116. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
  117. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
  118. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
  119. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
  120. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
  121. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
  122. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
  123. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
  124. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
  125. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
  126. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
  127. package/lib/vtx-cc-cp-modal/index.js +2 -1
  128. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
  129. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
  130. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
  131. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
  132. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
  133. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  134. package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
  135. package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
  136. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
  137. package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
  138. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
  139. package/lib/vtx-cc-unit-modal/index.js +17 -10
  140. package/lib/vtx-cp-modal/api.js +6 -5
  141. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
  142. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
  143. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
  144. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
  145. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
  146. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
  147. package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
  148. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
  149. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
  150. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
  151. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
  152. package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
  153. package/lib/vtx-cp-modal/index.js +5 -4
  154. package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
  155. package/lib/vtx-default-modal/index.js +4 -3
  156. package/lib/vtx-default-modal/style/index.js +0 -1
  157. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
  158. package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
  159. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
  160. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
  161. package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
  162. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  163. package/lib/vtx-device-modal/index.js +6 -3
  164. package/lib/vtx-device-modal/style/index.less +32 -0
  165. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
  166. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
  167. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
  168. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
  169. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
  170. package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
  171. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
  172. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
  173. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
  174. package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
  175. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
  176. package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
  177. package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
  178. package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
  179. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
  180. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
  181. package/lib/vtx-df-modal/components/Metering/List.js +12 -10
  182. package/lib/vtx-df-modal/components/Metering/index.js +11 -10
  183. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
  184. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
  185. package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
  186. package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
  187. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
  188. package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
  189. package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
  190. package/lib/vtx-df-modal/index.js +4 -3
  191. package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
  192. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
  193. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
  194. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
  195. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
  196. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
  197. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
  198. package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
  199. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
  200. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
  201. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
  202. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
  203. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
  204. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
  205. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
  206. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
  207. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
  208. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
  209. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
  210. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
  211. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
  212. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
  213. package/lib/vtx-housing-estate-modal/config.js +10 -10
  214. package/lib/vtx-housing-estate-modal/index.js +6 -5
  215. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
  216. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
  217. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
  218. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
  219. package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
  220. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
  221. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
  222. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
  223. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
  224. package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
  225. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
  226. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
  227. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
  228. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
  229. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
  230. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
  231. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
  232. package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
  233. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
  234. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
  235. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
  236. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
  237. package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
  238. package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
  239. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
  240. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
  241. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
  242. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
  243. package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
  244. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
  245. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
  246. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
  247. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
  248. package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
  249. package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
  250. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
  251. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
  252. package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
  253. package/lib/vtx-kh-modal/api2.js +10 -9
  254. package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
  255. package/lib/vtx-kh-modal/components/Record/index.js +18 -17
  256. package/lib/vtx-kh-modal/index.js +3 -2
  257. package/lib/vtx-kh-modal/style/index.js +0 -1
  258. package/lib/vtx-qyry-modal/api.js +8 -7
  259. package/lib/vtx-qyry-modal/index.js +17 -16
  260. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
  261. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
  262. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
  263. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
  264. package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
  265. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
  266. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
  267. package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
  268. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
  269. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
  270. package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
  271. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  272. package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
  273. package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
  274. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
  275. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
  276. package/lib/vtx-restaurant-modal/config.js +94 -95
  277. package/lib/vtx-restaurant-modal/index.js +16 -7
  278. package/lib/vtx-road-modal/api.js +14 -13
  279. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
  280. package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
  281. package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
  282. package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
  283. package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
  284. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
  285. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
  286. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
  287. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
  288. package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
  289. package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
  290. package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
  291. package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
  292. package/lib/vtx-road-modal/components/Statistical/index.less +40 -32
  293. package/lib/vtx-road-modal/index.js +30 -21
  294. package/lib/vtx-road-modal/style/index.js +1 -3
  295. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
  296. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
  297. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
  298. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
  299. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
  300. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
  301. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
  302. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
  303. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
  304. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
  305. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
  306. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
  307. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
  308. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
  309. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
  310. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
  311. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
  312. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
  313. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
  314. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
  315. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
  316. package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
  317. package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
  318. package/lib/vtx-shxq-modal/api.js +9 -8
  319. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
  320. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
  321. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
  322. package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
  323. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
  324. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
  325. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
  326. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
  327. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
  328. package/lib/vtx-shxq-modal/index.js +6 -5
  329. package/lib/vtx-staff-modal/api.js +8 -7
  330. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
  331. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
  332. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
  333. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
  334. package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
  335. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
  336. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
  337. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +11 -10
  338. package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
  339. package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
  340. package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
  341. package/lib/vtx-staff-modal/index.js +6 -5
  342. package/lib/vtx-tfd-modal/api.js +7 -6
  343. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
  344. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
  345. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
  346. package/lib/vtx-tfd-modal/index.js +4 -4
  347. package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
  348. package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
  349. package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
  350. package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
  351. package/lib/vtx-wr-modal/components/Base/index.js +14 -14
  352. package/lib/vtx-wr-modal/components/Build/index.js +6 -5
  353. package/lib/vtx-wr-modal/components/File/index.js +12 -15
  354. package/lib/vtx-wr-modal/components/File/index.less +8 -3
  355. package/lib/vtx-wr-modal/components/Score/index.js +20 -27
  356. package/lib/vtx-wr-modal/components/Score/index.less +49 -26
  357. package/lib/vtx-wr-modal/index.js +5 -2
  358. package/lib/vtx-wr-modal/style/index.js +0 -1
  359. package/lib/vtx-zf-modal/components/Base/index.js +37 -36
  360. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
  361. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
  362. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
  363. package/lib/vtx-zf-modal/components/File/index.js +15 -14
  364. package/lib/vtx-zf-modal/components/Process/index.js +17 -17
  365. package/lib/vtx-zf-modal/components/Record/index.js +9 -8
  366. package/lib/vtx-zf-modal/components/Right/index.js +7 -7
  367. package/lib/vtx-zf-modal/style/index.js +0 -1
  368. package/lib/vtx-zg-modal/api.js +13 -12
  369. package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
  370. package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
  371. package/lib/vtx-zg-modal/index.js +2 -1
  372. package/lib/vtx-zzz-modal/index.js +2 -1
  373. package/package.json +92 -81
@@ -22,6 +22,7 @@ import useSettings from "../../../_hooks/useSettings";
22
22
  import { BaseService } from "../../api";
23
23
  import "./index.less";
24
24
  import TabsList from "./TabsList";
25
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
25
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
27
  var MonitorAnalysis = function MonitorAnalysis(_ref) {
27
28
  var _newList$, _newList$2, _newList$3;
@@ -72,22 +73,22 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
72
73
  danTimeType = state.danTimeType,
73
74
  showType = state.showType;
74
75
  var tabList = [{
75
- label: '24小时',
76
+ label: translateLocaleText("t('vtxdevicemodal.24Hours')"),
76
77
  value: '24h'
77
78
  }, {
78
- label: '3',
79
+ label: translateLocaleText("t('vtxdevicemodal.3')"),
79
80
  value: '3days'
80
81
  }, {
81
- label: '7',
82
+ label: translateLocaleText("t('vtxdevicemodal.7')"),
82
83
  value: '7days'
83
84
  }].concat(_toConsumableArray(collectFrequency === 'day' ? [{
84
- label: '',
85
+ label: translateLocaleText("t('vtxdevicemodal.month')"),
85
86
  value: 'month'
86
87
  }] : []), _toConsumableArray(collectFrequency === 'month' ? [{
87
- label: '',
88
+ label: translateLocaleText("t('vtxdevicemodal.year')"),
88
89
  value: 'year'
89
90
  }] : []), [{
90
- label: '自定义',
91
+ label: translateLocaleText("t('_components.custom')"),
91
92
  value: 'self'
92
93
  }]);
93
94
  useEffect(function () {
@@ -370,14 +371,14 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
370
371
  };
371
372
  };
372
373
  var columns = [{
373
- title: '监测项目',
374
+ title: translateLocaleText("t('vtxdevicemodal.monitoringItem')"),
374
375
  dataIndex: 'monitorItemName',
375
376
  width: 120,
376
377
  ellipsis: true,
377
378
  fixed: 'left'
378
379
  }, {
379
380
  width: 80,
380
- title: '监测值',
381
+ title: translateLocaleText("t('vtxdevicemodal.value')"),
381
382
  dataIndex: 'value',
382
383
  align: 'right',
383
384
  render: function render(text, record) {
@@ -385,7 +386,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
385
386
  }
386
387
  }, {
387
388
  width: 80,
388
- title: '是否告警',
389
+ title: translateLocaleText("t('vtxdevicemodal.isAlarm')"),
389
390
  dataIndex: 'onAlarm',
390
391
  render: function render(text) {
391
392
  return /*#__PURE__*/_jsx(VmTag, {
@@ -395,7 +396,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
395
396
  error: text
396
397
  })
397
398
  }), /*#__PURE__*/_jsx("span", {
398
- children: text ? '' : ''
399
+ children: text ? translateLocaleText("t('common.yes')") : translateLocaleText("t('common.no')")
399
400
  })]
400
401
  }),
401
402
  type: text ? 'red' : 'green'
@@ -403,14 +404,14 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
403
404
  }
404
405
  }, {
405
406
  width: 80,
406
- title: '阈值',
407
+ title: translateLocaleText("t('vtxdevicemodal.value2')"),
407
408
  dataIndex: 'alarmDescription',
408
409
  ellipsis: true,
409
410
  render: function render(text) {
410
411
  return text ? text : '-';
411
412
  }
412
413
  }, {
413
- title: '刷新时间',
414
+ title: translateLocaleText("t('vtxdevicemodal.hours')"),
414
415
  dataIndex: 'timeDesc',
415
416
  sorter: function sorter(a, b) {
416
417
  return a.time - b.time;
@@ -428,7 +429,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
428
429
  height: 348
429
430
  },
430
431
  children: /*#__PURE__*/_jsx(VmWrapper, {
431
- title: '指标分析',
432
+ title: translateLocaleText("t('vtxdevicemodal.indicatorAnalyze')"),
432
433
  contentStyle: {
433
434
  padding: '0 16px 16px'
434
435
  },
@@ -438,7 +439,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
438
439
  return;
439
440
  }
440
441
  if (date[1].diff(date[0], 'd') > 7) {
441
- message.warning('时间跨度不能超过7天');
442
+ message.warning(translateLocaleText("t('vtxdevicemodal.hours7')"));
442
443
  return;
443
444
  }
444
445
  setState({
@@ -459,7 +460,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
459
460
  style: {
460
461
  fontSize: 14
461
462
  },
462
- children: "\u6307\u6807\u5468\u671F\uFF1A"
463
+ children: translateLocaleText("t('vtxdevicemodal.indicator')")
463
464
  }), /*#__PURE__*/_jsx(VmFilter.VMSelect, {
464
465
  value: collectFrequency,
465
466
  options: collectList.map(function (item) {
@@ -512,7 +513,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
512
513
  height: '100%'
513
514
  },
514
515
  children: [/*#__PURE__*/_jsx(VmTitle, {
515
- title: '监测指标',
516
+ title: translateLocaleText("t('vtxdevicemodal.monitoringIndicator')"),
516
517
  border: false
517
518
  }), /*#__PURE__*/_jsx("div", {
518
519
  style: {
@@ -541,7 +542,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
541
542
  height: '100%'
542
543
  },
543
544
  children: [/*#__PURE__*/_jsx(VmTitle, {
544
- title: '监测趋势',
545
+ title: translateLocaleText("t('vtxdevicemodal.monitoringTrend')"),
545
546
  border: false,
546
547
  extra: /*#__PURE__*/_jsx(VmExtraTab, {
547
548
  value: showType,
@@ -557,7 +558,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
557
558
  height: 14,
558
559
  fill: getActiveModeFill('chart')
559
560
  }),
560
- name: '图表'
561
+ name: translateLocaleText("t('vtxdevicemodal.chart')")
561
562
  }, {
562
563
  key: 'list',
563
564
  title: /*#__PURE__*/_jsx(ChartIcon, {
@@ -565,7 +566,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
565
566
  height: 14,
566
567
  fill: getActiveModeFill('list')
567
568
  }),
568
- name: '列表'
569
+ name: translateLocaleText("t('_components.list')")
569
570
  }]
570
571
  })
571
572
  }), /*#__PURE__*/_jsx("div", {
@@ -591,7 +592,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
591
592
  }
592
593
  }) : /*#__PURE__*/_jsx(VmTable, {
593
594
  columns: [{
594
- title: '刷新时间',
595
+ title: translateLocaleText("t('vtxdevicemodal.hours')"),
595
596
  dataIndex: 'date',
596
597
  sorter: function sorter(a, b) {
597
598
  return a.date > b.date ? 1 : -1;
@@ -7,13 +7,28 @@ var DataAnalysis = function DataAnalysis(_ref) {
7
7
  info = _ref.info;
8
8
  return /*#__PURE__*/_jsxs(Row, {
9
9
  gutter: [16, 16],
10
+ style: {
11
+ width: '100%',
12
+ minWidth: 0,
13
+ margin: 0
14
+ },
10
15
  children: [/*#__PURE__*/_jsx(Col, {
11
16
  span: 24,
17
+ style: {
18
+ minWidth: 0,
19
+ paddingLeft: 0,
20
+ paddingRight: 0
21
+ },
12
22
  children: /*#__PURE__*/_jsx(MonitorAnalysis, {
13
23
  id: id
14
24
  })
15
25
  }), /*#__PURE__*/_jsx(Col, {
16
26
  span: 24,
27
+ style: {
28
+ minWidth: 0,
29
+ paddingLeft: 0,
30
+ paddingRight: 0
31
+ },
17
32
  children: /*#__PURE__*/_jsx(AlarmAnalysis, {
18
33
  id: id,
19
34
  info: info
@@ -1,66 +1,66 @@
1
- .vtx-device-analysis-dot {
2
- width: 6px;
3
- height: 6px;
4
- background: var(--green-color);
5
- border-radius: 50%;
6
- &.error {
7
- background: var(--red-color);
8
- }
9
- }
10
-
11
- .vtx-device-analysis-tabs {
12
- display: flex;
13
- gap: 16px;
14
- color: var(--modal-title-color);
15
- font-size: 14px;
16
- &-item {
17
- cursor: pointer;
18
- &.active {
19
- color: var(--blue-color);
20
- }
21
- }
22
- }
23
-
24
- .vtx-device-alarm-summary {
25
- width: 368px;
26
- height: 104px;
27
- padding: 20px;
28
- margin-bottom: 20px;
29
- color: var(--modal-title-color);
30
- display: flex;
31
- justify-content: space-between;
32
- flex-direction: column;
33
- cursor: pointer;
34
- background-image: url("../../imgs/current.png");
35
- background-size: 100% 100%;
36
- border-radius: 8px;
37
- border: 1px solid transparent;
38
- &-lable {
39
- font-size: 16px;
40
- font-weight: 600;
41
- }
42
- &-value {
43
- font-weight: 600;
44
- font-size: 24px;
45
- color: var(--red-color);
46
- }
47
- &.dark {
48
- background-image: url("../../imgs/current_dark.png");
49
- &:last-child {
50
- background-image: url("../../imgs/history_dark.png");
51
- }
52
- }
53
- &.active {
54
- border:1px solid var(--red-color);
55
- }
56
- &:last-child {
57
- margin-bottom: 0;
58
- background-image: url("../../imgs/history.png");
59
- .vtx-device-alarm-summary-value {
60
- color: var(--yellow-color);
61
- }
62
- &.active {
63
- border:1px solid var(--yellow-color);
64
- }
65
- }
66
- }
1
+ .vtx-device-analysis-dot {
2
+ width: 6px;
3
+ height: 6px;
4
+ background: var(--green-color);
5
+ border-radius: 50%;
6
+ &.error {
7
+ background: var(--red-color);
8
+ }
9
+ }
10
+
11
+ .vtx-device-analysis-tabs {
12
+ display: flex;
13
+ gap: 16px;
14
+ color: var(--modal-title-color);
15
+ font-size: 14px;
16
+ &-item {
17
+ cursor: pointer;
18
+ &.active {
19
+ color: var(--blue-color);
20
+ }
21
+ }
22
+ }
23
+
24
+ .vtx-device-alarm-summary {
25
+ width: 368px;
26
+ height: 104px;
27
+ padding: 20px;
28
+ margin-bottom: 20px;
29
+ color: var(--modal-title-color);
30
+ display: flex;
31
+ justify-content: space-between;
32
+ flex-direction: column;
33
+ cursor: pointer;
34
+ background-image: url("../../imgs/current.png");
35
+ background-size: 100% 100%;
36
+ border-radius: 8px;
37
+ border: 1px solid transparent;
38
+ &-lable {
39
+ font-size: 16px;
40
+ font-weight: 600;
41
+ }
42
+ &-value {
43
+ font-weight: 600;
44
+ font-size: 24px;
45
+ color: var(--red-color);
46
+ }
47
+ &.dark {
48
+ background-image: url("../../imgs/current_dark.png");
49
+ &:last-child {
50
+ background-image: url("../../imgs/history_dark.png");
51
+ }
52
+ }
53
+ &.active {
54
+ border:1px solid var(--red-color);
55
+ }
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ background-image: url("../../imgs/history.png");
59
+ .vtx-device-alarm-summary-value {
60
+ color: var(--yellow-color);
61
+ }
62
+ &.active {
63
+ border:1px solid var(--yellow-color);
64
+ }
65
+ }
66
+ }
@@ -5,12 +5,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  import useGetChannels from "../_hooks/useGetChannels";
6
6
  import useGetConfig from "../_hooks/useGetConfig";
7
7
  import { useMemo } from 'react';
8
+ import "../_util/setupDayjs";
8
9
  import { VmCustom, VmVideo } from "../_components";
9
10
  import VtxBaseModal from "../vtx-base-modal";
10
11
  import { BaseService } from "./api";
11
12
  import { BaseInfo } from "./components";
12
13
  import DataAnalysis from "./components/DataAnalysis";
14
+ import "../style/index.less";
13
15
  import "./style";
16
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
14
17
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
15
18
  var TABS_BASE = 'base';
16
19
  var TABS_DATA = 'statistical';
@@ -26,13 +29,13 @@ var VtxDeviceModal = function VtxDeviceModal(props) {
26
29
  tabChose = _props$tabChose === void 0 ? '' : _props$tabChose;
27
30
  var tabs = [{
28
31
  key: TABS_BASE,
29
- title: '总览信息'
32
+ title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
30
33
  }, {
31
34
  key: TABS_DATA,
32
- title: '数据分析'
35
+ title: translateLocaleText("t('vtxdevicemodal.analyze2')")
33
36
  }, {
34
37
  key: TABS_VIDEO,
35
- title: '视频信息'
38
+ title: translateLocaleText("t('vtxdevicemodal.video')")
36
39
  }];
37
40
  var _useGetConfig = useGetConfig('device', tabs),
38
41
  tabsData = _useGetConfig.tabsData;
@@ -1 +1,33 @@
1
1
 
2
+ .vtx-device-base-map-col {
3
+ min-width: 0;
4
+
5
+ .vtx-device-base-map-wrapper {
6
+ box-sizing: border-box;
7
+ overflow: hidden;
8
+
9
+ .div-wrapper-content {
10
+ box-sizing: border-box;
11
+ padding: 16px;
12
+ overflow: hidden;
13
+ }
14
+ }
15
+
16
+ .vtx-device-base-map-inner {
17
+ width: 100%;
18
+ height: 100%;
19
+ min-width: 0;
20
+ min-height: 0;
21
+ overflow: hidden;
22
+ border-radius: 8px;
23
+ background: #f5f7fa;
24
+ }
25
+ }
26
+
27
+ .vm-modal-dark {
28
+ .vtx-device-base-map-col {
29
+ .vtx-device-base-map-inner {
30
+ background: rgba(0, 155, 233, 10%);
31
+ }
32
+ }
33
+ }
@@ -2,6 +2,7 @@ import { flatten, max } from 'lodash';
2
2
  import { VmLineCharts, VmWrapper } from "../../../_components";
3
3
  import useSettings from "../../../_hooks/useSettings";
4
4
  import { BaseService } from "../../api";
5
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  export default function Jcqsfx(props) {
7
8
  var _trendRes$values, _trendRes$values2;
@@ -20,17 +21,17 @@ export default function Jcqsfx(props) {
20
21
  return /*#__PURE__*/_jsx("div", {
21
22
  className: "base-top--jcqsfx",
22
23
  children: /*#__PURE__*/_jsx(VmWrapper, {
23
- title: "\u8FDB\u573A\u8D8B\u52BF\u5206\u6790",
24
+ title: translateLocaleText("t('vtxdfmodal.analyze')"),
24
25
  needChange: false,
25
26
  children: /*#__PURE__*/_jsx(VmLineCharts, {
26
- unit: "\u5428",
27
+ unit: translateLocaleText("t('vtxdefaultmodal.tonUnit')"),
27
28
  height: 240,
28
29
  showLegend: false,
29
30
  xAxis: (trendRes === null || trendRes === void 0 ? void 0 : trendRes.names) || [],
30
31
  yMax: maxNum,
31
32
  dataList: [{
32
33
  data: ((_trendRes$values2 = trendRes.values) === null || _trendRes$values2 === void 0 ? void 0 : _trendRes$values2[0]) || [],
33
- name: '进场量',
34
+ name: translateLocaleText("t('vtxdefaultmodal.inboundAmount')"),
34
35
  markLine: {
35
36
  data: [{
36
37
  yAxis: trendRes !== null && trendRes !== void 0 && trendRes.values && trendRes.values[1] ? trendRes.values[1][0] : 0,
@@ -39,7 +40,7 @@ export default function Jcqsfx(props) {
39
40
  color: '#FFE25D'
40
41
  }
41
42
  },
42
- name: '设计能力(吨/日)'
43
+ name: translateLocaleText("t('vtxdfmodal.tonsDay')")
43
44
  }],
44
45
  lineStyle: {
45
46
  color: '#52C41A'
@@ -4,8 +4,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
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
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
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- /**
8
- * 监测指标趋势分析
7
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
8
+ /**
9
+ * 监测指标趋势分析
9
10
  */
10
11
  import { useSetState } from 'ahooks';
11
12
  import dayjs from 'dayjs';
@@ -41,7 +42,7 @@ function Jczbqs(props) {
41
42
  return /*#__PURE__*/_jsx("div", {
42
43
  className: "df-overview-trend",
43
44
  children: /*#__PURE__*/_jsx(VmWrapper, {
44
- title: "\u76D1\u6D4B\u6307\u6807\u8D8B\u52BF\u5206\u6790\uFF0824\u5C0F\u65F6\uFF09",
45
+ title: translateLocaleText("t('vtxtfdmodal.monitoringIndicatorAnalyze24Hours')"),
45
46
  extra: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
46
47
  value: value,
47
48
  onChange: function onChange(val) {
@@ -58,13 +59,13 @@ function Jczbqs(props) {
58
59
  style: {
59
60
  width: 150
60
61
  },
61
- placeholder: "\u8BF7\u9009\u62E9",
62
+ placeholder: translateLocaleText("t('common.placeholder.select')"),
62
63
  allowClear: false
63
64
  }),
64
65
  children: /*#__PURE__*/_jsx("div", {
65
66
  className: "df-overview-trend-content",
66
67
  children: timeSumData ? /*#__PURE__*/_jsx(VmLineCharts, {
67
- title: '总数',
68
+ title: translateLocaleText("t('vtxtfdmodal.totalCount')"),
68
69
  height: 191,
69
70
  unit: (timeSumData === null || timeSumData === void 0 || (_timeSumData$extraDat = timeSumData.extraData) === null || _timeSumData$extraDat === void 0 || (_timeSumData$extraDat = _timeSumData$extraDat[0]) === null || _timeSumData$extraDat === void 0 ? void 0 : _timeSumData$extraDat.unit) || '',
70
71
  xAxis: (timeSumData === null || timeSumData === void 0 ? void 0 : timeSumData.names) || [],
@@ -1,3 +1,4 @@
1
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
1
2
  /**
2
3
  * 区域进场量分析
3
4
  */
@@ -20,9 +21,9 @@ function Qyjcl(props) {
20
21
  children: areaSumData !== null && areaSumData !== void 0 && (_areaSumData$areaDeta = areaSumData.areaDetailList) !== null && _areaSumData$areaDeta !== void 0 && _areaSumData$areaDeta.length ? /*#__PURE__*/_jsx(VmPieCharts, {
21
22
  height: 216,
22
23
  total: total === null || total === void 0 ? void 0 : total.toFixed(2),
23
- title: "\u5428",
24
- unit: "\u5428",
25
- name: "\u533A\u57DF\u8FDB\u573A\u91CF",
24
+ title: translateLocaleText("t('vtxtfdmodal.tons')"),
25
+ unit: translateLocaleText("t('vtxdefaultmodal.tonUnit')"),
26
+ name: translateLocaleText("t('vtxdfmodal.areaInboundAmount')"),
26
27
  innerRadius: ['50%', '65%'],
27
28
  outerRadius: ['65%', '70%'],
28
29
  dataList: (areaSumData === null || areaSumData === void 0 || (_areaSumData$areaDeta2 = areaSumData.areaDetailList) === null || _areaSumData$areaDeta2 === void 0 ? void 0 : _areaSumData$areaDeta2.map(function (ele) {
@@ -10,6 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
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
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
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
13
14
  /**
14
15
  * 实时监测情况
15
16
  */
@@ -44,18 +45,18 @@ export default function RealtimeMonitor(_ref) {
44
45
  var _BaseService$useRealt = BaseService.useRealtime(active),
45
46
  realtimeRes = _BaseService$useRealt.realtimeRes;
46
47
  var columns = [{
47
- title: '监测项',
48
+ title: translateLocaleText("t('vtxdfmodal.monitorItem')"),
48
49
  dataIndex: 'monitorItemName',
49
50
  key: 'monitorItemName'
50
51
  }, {
51
- title: '单位',
52
+ title: translateLocaleText("t('vtxdfmodal.unit')"),
52
53
  dataIndex: 'unit',
53
54
  key: 'unit',
54
55
  render: function render(text) {
55
56
  return text || '-';
56
57
  }
57
58
  }, {
58
- title: '监测值',
59
+ title: translateLocaleText("t('vtxdevicemodal.value')"),
59
60
  dataIndex: 'value',
60
61
  key: 'value',
61
62
  render: function render(text, record) {
@@ -67,7 +68,7 @@ export default function RealtimeMonitor(_ref) {
67
68
  });
68
69
  }
69
70
  }, {
70
- title: '更新时间',
71
+ title: translateLocaleText("t('vtxdfmodal.updateTime')"),
71
72
  dataIndex: 'time',
72
73
  key: 'time',
73
74
  render: function render(text) {
@@ -85,7 +86,7 @@ export default function RealtimeMonitor(_ref) {
85
86
  children: [/*#__PURE__*/_jsx("div", {
86
87
  className: "base-bottom--right",
87
88
  children: /*#__PURE__*/_jsx(VmWrapper, {
88
- title: "\u5B9E\u65F6\u76D1\u6D4B\u60C5\u51B5",
89
+ title: translateLocaleText("t('vtxdfmodal.hours2')"),
89
90
  needChange: false,
90
91
  children: /*#__PURE__*/_jsx("div", {
91
92
  className: "base-bottom--right-content",
@@ -97,7 +98,11 @@ export default function RealtimeMonitor(_ref) {
97
98
  moreIcon: /*#__PURE__*/_jsx("img", {
98
99
  src: isDark ? more : moreLight
99
100
  }),
100
- popupClassName: "df-popup-className ".concat(isDark ? 'dark' : ''),
101
+ classNames: {
102
+ popup: {
103
+ root: "df-popup-className ".concat(isDark ? 'dark' : '')
104
+ }
105
+ },
101
106
  onChange: function onChange(key) {
102
107
  setActive(key);
103
108
  },
@@ -117,7 +122,7 @@ export default function RealtimeMonitor(_ref) {
117
122
  }), /*#__PURE__*/_jsx("div", {
118
123
  className: "df-monitor-head-item-right-".concat(flag ? 'valueNormal' : 'valueAlarm'),
119
124
  children: /*#__PURE__*/_jsx("span", {
120
- children: flag ? '正常' : '异常'
125
+ children: flag ? translateLocaleText("t('vtxdfmodal.normal')") : translateLocaleText("t('vtxdfmodal.abnormal')")
121
126
  })
122
127
  })]
123
128
  })]
@@ -4,6 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
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
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
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 { translateLocaleText } from "./../../../hooks/useTranslation.js";
7
8
  /**
8
9
  * 实时运行情况
9
10
  */
@@ -14,13 +15,13 @@ export default function Situation(_ref) {
14
15
  return /*#__PURE__*/_jsx("div", {
15
16
  className: "df-situation",
16
17
  children: [{
17
- name: '进场量',
18
+ name: translateLocaleText("t('vtxdefaultmodal.inboundAmount')"),
18
19
  value: situationRes === null || situationRes === void 0 ? void 0 : situationRes.todayInWeight,
19
20
  rate: ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.todayInWeight) || 0) / ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.yesterdayInWeight) || 1) * 100,
20
- unit: '',
21
+ unit: translateLocaleText("t('vtxdefaultmodal.tonUnit')"),
21
22
  img: 'jcl'
22
23
  }, {
23
- name: '进场车次',
24
+ name: translateLocaleText("t('vtxdfmodal.times')"),
24
25
  value: situationRes === null || situationRes === void 0 ? void 0 : situationRes.todayInCar,
25
26
  rate: ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.todayInCar) || 0) / ((situationRes === null || situationRes === void 0 ? void 0 : situationRes.yesterdayInCar) || 1) * 100,
26
27
  img: 'jccc'
@@ -31,7 +32,7 @@ export default function Situation(_ref) {
31
32
  img: require("../../imgs/".concat(item.img, ".png"))
32
33
  })), /*#__PURE__*/_jsxs("div", {
33
34
  className: "df-situation-item-compare",
34
- children: ["\u4E0E\u6628\u65E5\u6BD4 ", /*#__PURE__*/_jsxs("span", {
35
+ children: [translateLocaleText("t('vtxdfmodal.day')"), /*#__PURE__*/_jsxs("span", {
35
36
  children: [(_item$rate = item.rate) === null || _item$rate === void 0 ? void 0 : _item$rate.toFixed(2), "%"]
36
37
  }), /*#__PURE__*/_jsx("img", {
37
38
  style: {
@@ -19,6 +19,7 @@ import Jcqsfx from "./Jcqsfx";
19
19
  import Qyjcl from "./Qyjcl";
20
20
  import RealtimeMonitor from "./RealtimeMonitor";
21
21
  import Situation from "./Situation";
22
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
22
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  var BaseInfo = function BaseInfo(props) {
24
25
  var info = props.info,
@@ -45,7 +46,7 @@ var BaseInfo = function BaseInfo(props) {
45
46
  children: [/*#__PURE__*/_jsx("div", {
46
47
  className: "df-base-content-left",
47
48
  children: /*#__PURE__*/_jsxs(VmWrapper, {
48
- title: "\u57FA\u672C\u4FE1\u606F",
49
+ title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
49
50
  children: [/*#__PURE__*/_jsx("div", {
50
51
  className: "base-top-img",
51
52
  ref: imgRef,
@@ -90,7 +91,7 @@ var BaseInfo = function BaseInfo(props) {
90
91
  children: [/*#__PURE__*/_jsx(Col, {
91
92
  span: 8,
92
93
  children: /*#__PURE__*/_jsx(VmWrapper, {
93
- title: "\u5B9E\u65F6\u8FDB\u573A\u60C5\u51B5",
94
+ title: translateLocaleText("t('vtxdfmodal.hours')"),
94
95
  style: {
95
96
  height: 280
96
97
  },
@@ -104,7 +105,7 @@ var BaseInfo = function BaseInfo(props) {
104
105
  style: {
105
106
  height: 280
106
107
  },
107
- title: "\u533A\u57DF\u8FDB\u573A\u91CF\u5206\u6790",
108
+ title: translateLocaleText("t('vtxdfmodal.areaAnalyze')"),
108
109
  filterType: "rangePicker",
109
110
  dateValue: [dayjs(startDate), dayjs(endDate)],
110
111
  filterChange: function filterChange(dates) {