@vtx/modals2 5.0.59 → 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 (363) 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-empty/index.js +13 -11
  6. package/lib/_components/vm-factor/index.js +1 -0
  7. package/lib/_components/vm-factor/style/index.less +4 -0
  8. package/lib/_components/vm-filter/index.js +9 -12
  9. package/lib/_components/vm-info-collection/style/index.js +0 -1
  10. package/lib/_components/vm-map/index.js +18 -0
  11. package/lib/_components/vm-popover/index.js +11 -3
  12. package/lib/_components/vm-popover/index.less +4 -1
  13. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
  14. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
  15. package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
  16. package/lib/_components/vm-repair-maintain/RmType.js +5 -4
  17. package/lib/_components/vm-repair-maintain/index.js +4 -3
  18. package/lib/_components/vm-table/index.js +31 -24
  19. package/lib/_components/vm-tabs/index.js +26 -10
  20. package/lib/_components/vm-video/index.js +21 -21
  21. package/lib/_components/vm-wrapper/index.js +8 -4
  22. package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
  23. package/lib/_util/http.js +4 -2
  24. package/lib/_util/setupDayjs.js +16 -0
  25. package/lib/hooks/useTranslation.js +219 -0
  26. package/lib/index.js +3 -0
  27. package/lib/locales/en.json +1377 -0
  28. package/lib/locales/zh-CN.json +1377 -0
  29. package/lib/style/index.less +0 -2
  30. package/lib/vtx-area-modal/api.js +5 -4
  31. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
  32. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
  33. package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
  34. package/lib/vtx-area-modal/index.js +1 -1
  35. package/lib/vtx-base-modal/Header/index.less +1 -0
  36. package/lib/vtx-base-modal/index.js +34 -3
  37. package/lib/vtx-base-modal/style/index.less +14 -1
  38. package/lib/vtx-car-modal/components/Info/index.js +37 -7
  39. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
  40. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
  41. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
  42. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
  43. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
  44. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
  45. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
  46. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
  47. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
  48. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
  49. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
  50. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
  51. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
  52. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
  53. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
  54. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
  55. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
  56. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
  57. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
  58. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
  59. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
  60. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
  61. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
  62. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
  63. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
  64. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
  65. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
  66. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
  67. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
  68. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
  69. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
  70. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
  71. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
  72. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
  73. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
  74. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
  75. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
  76. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
  77. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
  78. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
  79. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
  80. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
  81. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
  82. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
  83. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
  84. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
  85. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
  86. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
  87. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
  88. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
  89. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
  90. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
  91. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
  92. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
  93. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
  94. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
  95. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
  96. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
  97. package/lib/vtx-car-modal/index.js +25 -24
  98. package/lib/vtx-car-modal/style/index.js +1 -3
  99. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
  100. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
  101. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
  102. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
  103. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
  104. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
  105. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
  106. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
  107. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
  108. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
  109. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
  110. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
  111. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
  112. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
  113. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
  114. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
  115. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
  116. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
  117. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
  118. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
  119. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
  120. package/lib/vtx-cc-cp-modal/index.js +2 -1
  121. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
  122. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
  123. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
  124. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
  125. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
  126. package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
  127. package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
  128. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
  129. package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
  130. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
  131. package/lib/vtx-cc-unit-modal/index.js +17 -10
  132. package/lib/vtx-cp-modal/api.js +6 -5
  133. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
  134. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
  135. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
  136. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
  137. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
  138. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
  139. package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
  140. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
  141. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
  142. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
  143. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
  144. package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
  145. package/lib/vtx-cp-modal/index.js +5 -4
  146. package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
  147. package/lib/vtx-default-modal/index.js +4 -3
  148. package/lib/vtx-default-modal/style/index.js +0 -1
  149. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
  150. package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
  151. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
  152. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
  153. package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
  154. package/lib/vtx-device-modal/index.js +6 -3
  155. package/lib/vtx-device-modal/style/index.less +32 -0
  156. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
  157. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
  158. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
  159. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
  160. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
  161. package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
  162. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
  163. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
  164. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
  165. package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
  166. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
  167. package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
  168. package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
  169. package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
  170. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
  171. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
  172. package/lib/vtx-df-modal/components/Metering/List.js +12 -10
  173. package/lib/vtx-df-modal/components/Metering/index.js +11 -10
  174. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
  175. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
  176. package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
  177. package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
  178. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
  179. package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
  180. package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
  181. package/lib/vtx-df-modal/index.js +4 -3
  182. package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
  183. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
  184. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
  185. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
  186. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
  187. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
  188. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
  189. package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
  190. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
  191. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
  192. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
  193. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
  194. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
  195. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
  196. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
  197. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
  198. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
  199. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
  200. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
  201. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
  202. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
  203. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
  204. package/lib/vtx-housing-estate-modal/config.js +10 -10
  205. package/lib/vtx-housing-estate-modal/index.js +6 -5
  206. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
  207. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
  208. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
  209. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
  210. package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
  211. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
  212. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
  213. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
  214. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
  215. package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
  216. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
  217. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
  218. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
  219. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
  220. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
  221. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
  222. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
  223. package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
  224. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
  225. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
  226. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
  227. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
  228. package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
  229. package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
  230. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
  231. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
  232. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
  233. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
  234. package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
  235. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
  236. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
  237. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
  238. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
  239. package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
  240. package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
  241. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
  242. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
  243. package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
  244. package/lib/vtx-kh-modal/api2.js +10 -9
  245. package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
  246. package/lib/vtx-kh-modal/components/Record/index.js +18 -17
  247. package/lib/vtx-kh-modal/index.js +3 -2
  248. package/lib/vtx-kh-modal/style/index.js +0 -1
  249. package/lib/vtx-qyry-modal/api.js +8 -7
  250. package/lib/vtx-qyry-modal/index.js +17 -16
  251. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
  252. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
  253. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
  254. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
  255. package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
  256. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
  257. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
  258. package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
  259. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
  260. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
  261. package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
  262. package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
  263. package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
  264. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
  265. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
  266. package/lib/vtx-restaurant-modal/config.js +42 -43
  267. package/lib/vtx-restaurant-modal/index.js +16 -7
  268. package/lib/vtx-road-modal/api.js +14 -13
  269. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
  270. package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
  271. package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
  272. package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
  273. package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
  274. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
  275. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
  276. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
  277. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
  278. package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
  279. package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
  280. package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
  281. package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
  282. package/lib/vtx-road-modal/components/Statistical/index.less +8 -0
  283. package/lib/vtx-road-modal/index.js +30 -21
  284. package/lib/vtx-road-modal/style/index.js +1 -3
  285. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
  286. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
  287. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
  288. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
  289. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
  290. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
  291. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
  292. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
  293. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
  294. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
  295. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
  296. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
  297. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
  298. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
  299. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
  300. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
  301. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
  302. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
  303. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
  304. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
  305. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
  306. package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
  307. package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
  308. package/lib/vtx-shxq-modal/api.js +9 -8
  309. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
  310. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
  311. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
  312. package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
  313. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
  314. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
  315. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
  316. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
  317. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
  318. package/lib/vtx-shxq-modal/index.js +6 -5
  319. package/lib/vtx-staff-modal/api.js +8 -7
  320. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
  321. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
  322. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
  323. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
  324. package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
  325. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
  326. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
  327. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +9 -8
  328. package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
  329. package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
  330. package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
  331. package/lib/vtx-staff-modal/index.js +6 -5
  332. package/lib/vtx-tfd-modal/api.js +7 -6
  333. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
  334. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
  335. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
  336. package/lib/vtx-tfd-modal/index.js +4 -4
  337. package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
  338. package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
  339. package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
  340. package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
  341. package/lib/vtx-wr-modal/components/Base/index.js +14 -14
  342. package/lib/vtx-wr-modal/components/Build/index.js +6 -5
  343. package/lib/vtx-wr-modal/components/File/index.js +12 -15
  344. package/lib/vtx-wr-modal/components/File/index.less +8 -3
  345. package/lib/vtx-wr-modal/components/Score/index.js +20 -27
  346. package/lib/vtx-wr-modal/components/Score/index.less +49 -26
  347. package/lib/vtx-wr-modal/index.js +5 -2
  348. package/lib/vtx-wr-modal/style/index.js +0 -1
  349. package/lib/vtx-zf-modal/components/Base/index.js +37 -36
  350. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
  351. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
  352. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
  353. package/lib/vtx-zf-modal/components/File/index.js +15 -14
  354. package/lib/vtx-zf-modal/components/Process/index.js +17 -17
  355. package/lib/vtx-zf-modal/components/Record/index.js +9 -8
  356. package/lib/vtx-zf-modal/components/Right/index.js +7 -7
  357. package/lib/vtx-zf-modal/style/index.js +0 -1
  358. package/lib/vtx-zg-modal/api.js +13 -12
  359. package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
  360. package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
  361. package/lib/vtx-zg-modal/index.js +2 -1
  362. package/lib/vtx-zzz-modal/index.js +2 -1
  363. package/package.json +30 -19
@@ -4,6 +4,12 @@ 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
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
13
  import React from 'react';
8
14
  import { JzljXncContext } from "../..";
9
15
  import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
@@ -12,6 +18,7 @@ import CTL from "./CTL";
12
18
  import CTYL from "./CTYL";
13
19
  import CZZ from "./CZZ";
14
20
  import "./index.less";
21
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
15
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
23
  export default function Overview() {
17
24
  var _czzData$syWeight;
@@ -30,35 +37,38 @@ export default function Overview() {
30
37
  var _useUnit = useUnit(),
31
38
  unitStr = _useUnit.unitStr;
32
39
  var infoData = [{
33
- label: '名称',
40
+ label: translateLocaleText("t('vtxjzljxncmodal.name')"),
34
41
  value: name
35
42
  }, {
36
- label: '类别',
43
+ label: translateLocaleText("t('vtxjzljxncmodal.category')"),
37
44
  value: facilityClassName
38
45
  }, {
39
- label: '地址',
46
+ label: translateLocaleText("t('vtxjzljxncmodal.address')"),
40
47
  value: address
41
48
  }, {
42
- label: '行政区划',
49
+ label: translateLocaleText("t('vtxjzljxncmodal.administrativeDivision')"),
43
50
  value: divisionName
44
51
  }];
45
- for (var key in jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight) {
52
+ Object.entries((jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight) || {}).forEach(function (_ref) {
53
+ var _ref2 = _slicedToArray(_ref, 2),
54
+ key = _ref2[0],
55
+ value = _ref2[1];
46
56
  infoData.push({
47
57
  label: key,
48
58
  key: key,
49
- value: jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight[key]
59
+ value: value
50
60
  });
51
- }
61
+ });
52
62
  var _overviewApis$useCzz = overviewApis.useCzz(id),
53
63
  czzData = _overviewApis$useCzz.data;
54
64
  infoData.push({
55
- label: "\u5269\u4F59\u91CF(".concat(unitStr, ")"),
65
+ label: "".concat(translateLocaleText("t('vtxjzljxncmodal.remainingAmount')"), "(").concat(unitStr, ")"),
56
66
  key: 'syWeight',
57
67
  value: (_czzData$syWeight = czzData === null || czzData === void 0 ? void 0 : czzData.syWeight) !== null && _czzData$syWeight !== void 0 ? _czzData$syWeight : '--'
58
68
  });
59
- var _ref = geometryInfo || {},
60
- type = _ref.type,
61
- lngLats = _ref.lngLats;
69
+ var _ref3 = geometryInfo || {},
70
+ type = _ref3.type,
71
+ lngLats = _ref3.lngLats;
62
72
  var mapProps = {
63
73
  geometryType: type,
64
74
  address: address
@@ -82,10 +92,11 @@ export default function Overview() {
82
92
  children: [/*#__PURE__*/_jsx("div", {
83
93
  className: "overview-left",
84
94
  children: /*#__PURE__*/_jsxs(VmWrapper, {
85
- title: "\u57FA\u672C\u4FE1\u606F",
95
+ title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
86
96
  children: [/*#__PURE__*/_jsx(VmInfoCollection, {
87
97
  width: '100%',
88
- data: infoData
98
+ data: infoData,
99
+ ellipsis: true
89
100
  }), /*#__PURE__*/_jsx("div", {
90
101
  className: "overview-left-map ".concat(theme),
91
102
  children: /*#__PURE__*/_jsx(VmMap, _objectSpread({}, mapProps))
@@ -18,6 +18,8 @@ import useGetConfig from "../_hooks/useGetConfig";
18
18
  import VtxBaseModal from "../vtx-base-modal";
19
19
  import { overviewApis } from "./api";
20
20
  import { Base, Collection, Dispose, Overview } from "./components";
21
+ import "./style";
22
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
21
23
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
22
24
  export var JzljXncContext = /*#__PURE__*/React.createContext({
23
25
  id: ''
@@ -52,19 +54,19 @@ export default function VtxJzljXncModal(props) {
52
54
  };
53
55
  var tabs_init = [{
54
56
  key: 'jzlj-xnc-base',
55
- title: '总览信息',
57
+ title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')"),
56
58
  dom: /*#__PURE__*/_jsx(Overview, {})
57
59
  }, {
58
60
  key: 'jzlj-xnc-jbxx',
59
- title: '基本信息',
61
+ title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
60
62
  dom: /*#__PURE__*/_jsx(Base, {})
61
63
  }, {
62
64
  key: 'jzlj-xnc-dispose',
63
- title: '处置证信息',
65
+ title: translateLocaleText("t('vtxjzljxncmodal.disposalCertificateInfo')"),
64
66
  dom: /*#__PURE__*/_jsx(Dispose, {})
65
67
  }, {
66
68
  key: 'jzlj-xnc-collection',
67
- title: '联单信息',
69
+ title: translateLocaleText("t('vtxjzljxncmodal.jointOrderInfo')"),
68
70
  dom: /*#__PURE__*/_jsx(Collection, {})
69
71
  }];
70
72
  var tabs = tabs_init.map(function (ele) {
@@ -75,7 +77,9 @@ export default function VtxJzljXncModal(props) {
75
77
  });
76
78
  var contents = {};
77
79
  tabs_init.forEach(function (ele) {
78
- contents[ele.key] = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
80
+ var content = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
81
+ contents[ele.key] = content;
82
+ contents[ele.key.replace('jzlj-xnc-', '')] = content;
79
83
  });
80
84
  var _useGetConfig = useGetConfig('jzlj-xnc', tabs),
81
85
  tabsData = _useGetConfig.tabsData;
@@ -1 +1,47 @@
1
1
  @import '../../style/index';
2
+
3
+
4
+ .jzlj-xnc-factor-name {
5
+ display: block;
6
+ max-width: 100%;
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ white-space: nowrap;
10
+ }
11
+
12
+ .overview,
13
+ .dispose,
14
+ .collection {
15
+ .vm-factor-lg,
16
+ .vm-factor-sm {
17
+ min-width: 0;
18
+
19
+ > div:last-child {
20
+ min-width: 0;
21
+ max-width: 100%;
22
+ }
23
+
24
+ &-name {
25
+ max-width: 100%;
26
+ overflow: hidden;
27
+ }
28
+ }
29
+ }
30
+
31
+ .overview {
32
+ .info-collection {
33
+ min-width: 0;
34
+ }
35
+
36
+ .info-line {
37
+ min-width: 0;
38
+ }
39
+
40
+ .info-label-b,
41
+ .value {
42
+ min-width: 0;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ }
47
+ }
@@ -5,47 +5,63 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
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
7
  import React from 'react';
8
+ import { Tooltip } from 'antd';
8
9
  import { JzljYsqyContext } from "../..";
9
10
  import { VmInfoCollection, VmTable, VmWrapper } from "../../../_components";
10
11
  import { overviewApis } from "../../api";
11
12
  import "./index.less";
13
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
12
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ var ellipsisTitle = function ellipsisTitle(text) {
16
+ return /*#__PURE__*/_jsx(Tooltip, {
17
+ title: text,
18
+ arrow: false,
19
+ children: /*#__PURE__*/_jsx("span", {
20
+ className: "ysqy-column-title",
21
+ children: text
22
+ })
23
+ });
24
+ };
13
25
  export default function Overview() {
14
26
  var _React$useContext = React.useContext(JzljYsqyContext),
15
27
  id = _React$useContext.id,
16
28
  _React$useContext$inf = _React$useContext.info,
17
29
  info = _React$useContext$inf === void 0 ? {} : _React$useContext$inf;
18
30
  var infoData = [{
19
- label: '企业名称',
31
+ label: translateLocaleText("t('vtxjzljysqymodal.enterpriseName')"),
20
32
  value: info === null || info === void 0 ? void 0 : info.name
21
33
  }, {
22
- label: '注册地所在行政区划',
34
+ label: translateLocaleText("t('vtxjzljysqymodal.administrativeDivision')"),
23
35
  value: info === null || info === void 0 ? void 0 : info.divisionName
24
36
  }, {
25
- label: '联系人',
37
+ label: translateLocaleText("t('vtxjzljysqymodal.contactPerson')"),
26
38
  value: info === null || info === void 0 ? void 0 : info.lxMan
27
39
  }, {
28
- label: '联系电话',
40
+ label: translateLocaleText("t('vtxjzljysqymodal.phone')"),
29
41
  value: info === null || info === void 0 ? void 0 : info.lxPhone
30
42
  }, {
31
- label: '营业执照编号',
43
+ label: translateLocaleText("t('vtxjzljysqymodal.businessLicenseNumber')"),
32
44
  value: info === null || info === void 0 ? void 0 : info.yyzzCode
33
45
  }, {
34
- label: '运输垃圾类型',
46
+ label: translateLocaleText("t('vtxjzljysqymodal.type')"),
35
47
  value: info === null || info === void 0 ? void 0 : info.rubbishTypeChs
36
48
  }, {
37
- label: '营业执照',
49
+ label: translateLocaleText("t('vtxjzljysqymodal.businessLicense')"),
38
50
  value: info === null || info === void 0 ? void 0 : info.file,
39
51
  componentType: 'ATTACHS'
40
52
  }];
41
53
  var _overviewApis$useCarI = overviewApis.useCarInfo(id),
42
54
  _overviewApis$useCarI2 = _overviewApis$useCarI.carInfoData,
43
55
  carInfoData = _overviewApis$useCarI2 === void 0 ? [] : _overviewApis$useCarI2;
44
- var columns = [['车牌号', 'carCode', {}], ['车辆种类', 'carGradeName', {}], ['核定载重(吨)', 'regulationWeight', {
56
+ var columns = [[translateLocaleText("t('vtxjzljysqymodal.plateNumber')"), 'carCode'], [translateLocaleText("t('vtxjzljysqymodal.vehicleType')"), 'carGradeName'], [translateLocaleText("t('vtxjzljysqymodal.ratedLoadTon')"), 'regulationWeight', {
45
57
  align: 'right'
46
58
  }]].map(function (item) {
47
59
  return _objectSpread({
48
- title: item[0],
60
+ title: /*#__PURE__*/_jsx("div", {
61
+ title: item[0],
62
+ className: "ysqy-column-title",
63
+ children: item[0]
64
+ }),
49
65
  dataIndex: item[1],
50
66
  key: item[1]
51
67
  }, item[2]);
@@ -61,17 +77,18 @@ export default function Overview() {
61
77
  children: [/*#__PURE__*/_jsx("div", {
62
78
  className: "ysqy-overview-top",
63
79
  children: /*#__PURE__*/_jsx(VmWrapper, {
64
- title: "\u57FA\u672C\u4FE1\u606F",
80
+ title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
65
81
  children: /*#__PURE__*/_jsx(VmInfoCollection, {
66
82
  data: infoData,
67
83
  width: '33.33%',
68
- horizontal: true
84
+ horizontal: true,
85
+ ellipsis: true
69
86
  })
70
87
  })
71
88
  }), /*#__PURE__*/_jsx("div", {
72
89
  className: "ysqy-overview-bottom",
73
90
  children: /*#__PURE__*/_jsx(VmWrapper, {
74
- title: "\u8F66\u8F86\u4FE1\u606F",
91
+ title: translateLocaleText("t('vtxjzljysqymodal.vehicleInformation')"),
75
92
  children: /*#__PURE__*/_jsx(VmTable, _objectSpread({}, myTableProps))
76
93
  })
77
94
  })]
@@ -5,6 +5,27 @@
5
5
  flex-direction: column;
6
6
  gap: 16px;
7
7
 
8
+ .info-line,
9
+ .info-label-b,
10
+ .value {
11
+ min-width: 0;
12
+ }
13
+
14
+ .info-label-b,
15
+ .value {
16
+ overflow: hidden;
17
+ text-overflow: ellipsis;
18
+ white-space: nowrap;
19
+ }
20
+
21
+ .ysqy-column-title {
22
+ display: block;
23
+ max-width: 100%;
24
+ overflow: hidden;
25
+ text-overflow: ellipsis;
26
+ white-space: nowrap;
27
+ }
28
+
8
29
  &-top {
9
30
  width: 100%;
10
31
  height: 180px;
@@ -4,6 +4,8 @@ import useGetConfig from "../_hooks/useGetConfig";
4
4
  import VtxBaseModal from "../vtx-base-modal";
5
5
  import { overviewApis } from "./api";
6
6
  import { Overview } from "./components";
7
+ import "./style";
8
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
7
9
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
8
10
  export var JzljYsqyContext = /*#__PURE__*/React.createContext({
9
11
  id: ''
@@ -29,7 +31,7 @@ export default function VtxJzljYsqyModal(props) {
29
31
  };
30
32
  var tabs_init = [{
31
33
  key: 'jzlj-ysqy-base',
32
- title: '总览信息',
34
+ title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')"),
33
35
  dom: /*#__PURE__*/_jsx(Overview, {})
34
36
  }];
35
37
  var tabs = tabs_init.map(function (ele) {
@@ -40,7 +42,9 @@ export default function VtxJzljYsqyModal(props) {
40
42
  });
41
43
  var contents = {};
42
44
  tabs_init.forEach(function (ele) {
43
- contents[ele.key] = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
45
+ var content = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
46
+ contents[ele.key] = content;
47
+ contents[ele.key.replace('jzlj-ysqy-', '')] = content;
44
48
  });
45
49
  var _useGetConfig = useGetConfig('jzlj-ysqy', tabs),
46
50
  tabsData = _useGetConfig.tabsData;
@@ -7,6 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  import { MapIcon } from '@vtx/map-icon';
8
8
  import { request } from '@vtx/utils';
9
9
  import { useRequest } from 'ahooks';
10
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
10
11
  var BaseService = {
11
12
  useBaseInfo: function useBaseInfo(id) {
12
13
  var _info$categoryDTO, _info$geometryInfo, _info$geometryInfo2, _lngLats$split, _info$geometryInfo3;
@@ -24,39 +25,39 @@ var BaseService = {
24
25
  baseInfoRes = _useRequest.data;
25
26
  var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
26
27
  var baseInfo = [{
27
- label: '编码',
28
+ label: translateLocaleText("t('vtxareamodal.code')"),
28
29
  key: 'code',
29
30
  value: info === null || info === void 0 ? void 0 : info.code
30
31
  }, {
31
- label: '名称',
32
+ label: translateLocaleText("t('vtxkhmodal.name')"),
32
33
  key: 'name',
33
34
  value: info === null || info === void 0 ? void 0 : info.name
34
35
  }, {
35
- label: '分类',
36
+ label: translateLocaleText("t('vtxkhmodal.category')"),
36
37
  key: 'categoryName',
37
38
  value: info === null || info === void 0 || (_info$categoryDTO = info.categoryDTO) === null || _info$categoryDTO === void 0 ? void 0 : _info$categoryDTO.name
38
39
  }, {
39
- label: '行政区划',
40
+ label: translateLocaleText("t('vtxqyrymodal.administrativeDivision')"),
40
41
  key: 'divisionName',
41
42
  value: info === null || info === void 0 ? void 0 : info.divisionName
42
43
  }, {
43
- label: '标段',
44
+ label: translateLocaleText("t('vtxkhmodal.tender')"),
44
45
  key: 'tenderName',
45
46
  value: info === null || info === void 0 ? void 0 : info.tenderName
46
47
  }, {
47
- label: '管理单位',
48
+ label: translateLocaleText("t('vtxkhmodal.managementUnit')"),
48
49
  key: 'manageUnitName',
49
50
  value: info === null || info === void 0 ? void 0 : info.manageUnitName
50
51
  }, {
51
- label: '责任单位',
52
+ label: translateLocaleText("t('vtxzgmodal.unit')"),
52
53
  key: 'responsibleUnitName',
53
54
  value: info === null || info === void 0 ? void 0 : info.responsibleUnitName
54
55
  }, {
55
- label: '责任人',
56
+ label: translateLocaleText("t('vtxzgmodal.responsiblePerson')"),
56
57
  key: 'responsibleStaffName',
57
58
  value: info === null || info === void 0 ? void 0 : info.responsibleStaffName
58
59
  }, {
59
- label: '责任人手机',
60
+ label: translateLocaleText("t('vtxkhmodal.responsiblePerson')"),
60
61
  key: 'responsibleStaffPhone',
61
62
  value: info === null || info === void 0 ? void 0 : info.responsibleStaffPhone
62
63
  }];
@@ -11,12 +11,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
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
13
  import { useSetState } from 'ahooks';
14
- import { Tooltip } from 'antd';
15
14
  import dayjs from 'dayjs';
16
15
  import { VmBarCharts, VmFactor, VmInfoCollection, VmMap, VmPieCharts, VmTitle, VmWrapper } from "../../../_components";
17
16
  import useSettings from "../../../_hooks/useSettings";
18
17
  import { BaseService } from "../../api2";
19
18
  import "./index.less";
19
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
20
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  var BaseInfo = function BaseInfo(props) {
22
22
  var _useSettings = useSettings(),
@@ -65,7 +65,7 @@ var BaseInfo = function BaseInfo(props) {
65
65
  children: [/*#__PURE__*/_jsx("div", {
66
66
  className: "kh-base-left",
67
67
  children: /*#__PURE__*/_jsxs(VmWrapper, {
68
- title: "\u57FA\u672C\u4FE1\u606F",
68
+ title: translateLocaleText("t('vtxdefaultmodal.basicInformation')"),
69
69
  children: [/*#__PURE__*/_jsx(VmInfoCollection, {
70
70
  data: baseInfo,
71
71
  gap: 12
@@ -81,29 +81,29 @@ var BaseInfo = function BaseInfo(props) {
81
81
  children: [/*#__PURE__*/_jsx("div", {
82
82
  className: "kh-base-right-summary",
83
83
  children: /*#__PURE__*/_jsxs(VmWrapper, {
84
- title: "\u672C\u6708\u8003\u6838\u60C5\u51B5",
84
+ title: translateLocaleText("t('vtxkhmodal.thisMonth')"),
85
85
  filterType: "monthPicker",
86
86
  dateValue: state.date,
87
87
  filterChange: filterChange,
88
88
  children: [/*#__PURE__*/_jsx("div", {
89
89
  className: "kh-base-right-summary-head",
90
90
  children: [{
91
- name: '考核次数',
91
+ name: translateLocaleText("t('vtxkhmodal.times')"),
92
92
  value: khRes === null || khRes === void 0 ? void 0 : khRes.monthCheckTims,
93
93
  key: 'count',
94
- unit: '',
94
+ unit: translateLocaleText("t('common.timesUnit')"),
95
95
  fontType: 'blue'
96
96
  }, {
97
- name: '考核得分',
97
+ name: translateLocaleText("t('vtxkhmodal.assessmentScore')"),
98
98
  value: khRes === null || khRes === void 0 ? void 0 : khRes.monthPoint,
99
99
  key: 'score',
100
- unit: '',
100
+ unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
101
101
  fontType: 'green'
102
102
  }, {
103
- name: '累计扣分',
103
+ name: translateLocaleText("t('vtxkhmodal.totalDeductedPoints')"),
104
104
  value: khRes === null || khRes === void 0 ? void 0 : khRes.monthDeductPoint,
105
105
  key: 'subtract',
106
- unit: '',
106
+ unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
107
107
  fontType: 'red'
108
108
  }].map(function (ele) {
109
109
  return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
@@ -114,7 +114,7 @@ var BaseInfo = function BaseInfo(props) {
114
114
  }), ele.key);
115
115
  })
116
116
  }), /*#__PURE__*/_jsx(VmTitle, {
117
- title: "\u672C\u6708\u9AD8\u53D1\u95EE\u9898",
117
+ title: translateLocaleText("t('vtxkhmodal.thisMonth2')"),
118
118
  border: false
119
119
  }), /*#__PURE__*/_jsxs("div", {
120
120
  className: "kh-base-right-question",
@@ -128,9 +128,9 @@ var BaseInfo = function BaseInfo(props) {
128
128
  value: ele.times
129
129
  };
130
130
  }),
131
- name: "\u9AD8\u53D1\u95EE\u9898",
131
+ name: translateLocaleText("t('vtxkhmodal.frequentIssues')"),
132
132
  loading: false,
133
- unit: "\u6B21",
133
+ unit: translateLocaleText("t('common.timesUnit')"),
134
134
  innerRadius: ['70%', '85%'],
135
135
  outerRadius: ['85%', '90%'],
136
136
  center: ['20%', '50%'],
@@ -142,7 +142,7 @@ var BaseInfo = function BaseInfo(props) {
142
142
  className: "kh-base-right-question-right ".concat(isDark ? 'dark' : ''),
143
143
  children: [/*#__PURE__*/_jsx("div", {
144
144
  className: "ques-title",
145
- children: "\u6700\u5BB9\u6613\u51FA\u73B0\u95EE\u9898\u524D\u4E09:"
145
+ children: translateLocaleText("t('vtxkhmodal.topThreeFrequentIssues')")
146
146
  }), questions === null || questions === void 0 ? void 0 : questions.filter(function (ele, index) {
147
147
  return index < 3;
148
148
  }).map(function (ele, index) {
@@ -153,28 +153,26 @@ var BaseInfo = function BaseInfo(props) {
153
153
  children: index + 1
154
154
  }), /*#__PURE__*/_jsxs("div", {
155
155
  className: "ques-name",
156
- children: [ele.ruleName, " ", ele.times, "\u6B21"]
156
+ children: [ele.ruleName, " ", ele.times, translateLocaleText("t('common.timesUnit')")]
157
157
  })]
158
158
  }, ele.ruleId);
159
159
  })]
160
160
  })]
161
- }), /*#__PURE__*/_jsx("div", {
161
+ }), /*#__PURE__*/_jsxs("div", {
162
162
  className: "kh-base-right-question-desc ".concat(isDark ? 'dark' : ''),
163
- children: /*#__PURE__*/_jsx(Tooltip, {
164
- title: '加强保洁频次与监督;设置报修专线,快速疏通维修;完善设施巡检制度,提升服务标准。,提升服务标准。,提升服务标准',
165
- children: "\u5EFA\u8BAE\u63AA\u65BD: \u52A0\u5F3A\u4FDD\u6D01\u9891\u6B21\u4E0E\u76D1\u7763\uFF1B\u8BBE\u7F6E\u62A5\u4FEE\u4E13\u7EBF\uFF0C\u5FEB\u901F\u758F\u901A\u7EF4\u4FEE\uFF1B\u5B8C\u5584\u8BBE\u65BD\u5DE1\u68C0\u5236\u5EA6\uFF0C\u63D0\u5347\u670D\u52A1\u6807\u51C6\u3002\uFF0C\u63D0\u5347\u670D\u52A1\u6807\u51C6\u3002\uFF0C\u63D0\u5347\u670D\u52A1\u6807\u51C6\u3002"
166
- })
163
+ title: translateLocaleText("t('vtxkhmodal.timesLine')"),
164
+ children: [translateLocaleText("t('vtxkhmodal.suggestedMeasures')"), ":", translateLocaleText("t('vtxkhmodal.timesLine')")]
167
165
  })]
168
166
  })
169
167
  }), /*#__PURE__*/_jsxs(VmWrapper, {
170
- title: "\u8FD17\u6708\u8003\u6838\u5F97\u5206\u60C5\u51B5",
168
+ title: translateLocaleText("t('vtxkhmodal.7Month')"),
171
169
  style: {
172
170
  height: 300,
173
171
  marginTop: 16
174
172
  },
175
173
  children: [/*#__PURE__*/_jsx(VmBarCharts, {
176
174
  dataList: [{
177
- name: '考核得分',
175
+ name: translateLocaleText("t('vtxkhmodal.assessmentScore')"),
178
176
  data: (monthData === null || monthData === void 0 ? void 0 : monthData.map(function (ele) {
179
177
  return ele.point;
180
178
  })) || [],
@@ -184,8 +182,8 @@ var BaseInfo = function BaseInfo(props) {
184
182
  return ele.month;
185
183
  }),
186
184
  yAxisList: [{
187
- unit: '',
188
- name: '(分)',
185
+ unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
186
+ name: translateLocaleText("t('vtxkhmodal.scoreUnitWithParentheses')"),
189
187
  key: ''
190
188
  }],
191
189
  loading: loading,
@@ -14,6 +14,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
14
14
  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; }
15
15
  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; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
17
18
  /**
18
19
  * 考核信息-列表
19
20
  */
@@ -55,7 +56,7 @@ var List = function List(props) {
55
56
  records = _ReocrdService$useRec.records,
56
57
  loading = _ReocrdService$useRec.loading;
57
58
  var columns = [{
58
- title: '考核图片',
59
+ title: translateLocaleText("t('vtxkhmodal.image')"),
59
60
  dataIndex: 'photos',
60
61
  key: 'photos',
61
62
  width: 120,
@@ -77,31 +78,31 @@ var List = function List(props) {
77
78
  }) : '--';
78
79
  }
79
80
  }, {
80
- title: '考核时间',
81
+ title: translateLocaleText("t('vtxkhmodal.hours')"),
81
82
  dataIndex: 'checkDate',
82
83
  key: 'checkDate',
83
84
  width: 150,
84
85
  ellipsis: true
85
86
  }, {
86
- title: '考核活动',
87
+ title: translateLocaleText("t('vtxkhmodal.assessmentActivity')"),
87
88
  dataIndex: 'checkActivityName',
88
89
  key: 'checkActivityName',
89
90
  width: 200
90
91
  }, {
91
- title: '考核人',
92
+ title: translateLocaleText("t('vtxkhmodal.assessor')"),
92
93
  dataIndex: 'checkUserName',
93
94
  key: 'checkUserName'
94
95
  }, {
95
- title: '考核分组',
96
+ title: translateLocaleText("t('vtxkhmodal.group')"),
96
97
  dataIndex: 'ruleGroupName',
97
98
  key: 'ruleGroupName'
98
99
  }, {
99
- title: '考核标准',
100
+ title: translateLocaleText("t('vtxkhmodal.assessmentStandard')"),
100
101
  dataIndex: 'ruleName',
101
102
  key: 'ruleName',
102
103
  width: 150
103
104
  }, {
104
- title: '分值',
105
+ title: translateLocaleText("t('vtxkhmodal.score')"),
105
106
  dataIndex: 'deductPoints',
106
107
  key: 'deductPoints',
107
108
  align: 'right'
@@ -142,26 +143,26 @@ var List = function List(props) {
142
143
  });
143
144
  };
144
145
  return /*#__PURE__*/_jsxs(VmWrapper, {
145
- title: "\u8003\u6838\u8BE6\u60C5",
146
+ title: translateLocaleText("t('vtxkhmodal.details')"),
146
147
  filterType: "rangePicker",
147
148
  dateValue: [startDate, endDate],
148
149
  filterChange: filterChange,
149
150
  extraLeft: /*#__PURE__*/_jsx(VmFilter.VMSelect, {
150
151
  options: [{
151
152
  value: '1',
152
- label: '全部'
153
+ label: translateLocaleText("t('export.all')")
153
154
  }, {
154
155
  value: 'RCDC',
155
- label: '日常督查'
156
+ label: translateLocaleText("t('vtxkhmodal.day')")
156
157
  }, {
157
158
  value: 'ZXDC',
158
- label: '专项督查'
159
+ label: translateLocaleText("t('vtxkhmodal.specialSupervision')")
159
160
  }, {
160
161
  value: 'DSFCP',
161
- label: '第三方测评'
162
+ label: translateLocaleText("t('vtxkhmodal.thirdPartyEvaluation')")
162
163
  }, {
163
164
  value: 'RCXC',
164
- label: '日常巡查'
165
+ label: translateLocaleText("t('vtxkhmodal.day2')")
165
166
  }],
166
167
  style: {
167
168
  width: 132
@@ -176,16 +177,16 @@ var List = function List(props) {
176
177
  children: [/*#__PURE__*/_jsx("div", {
177
178
  className: "kh-record-summary",
178
179
  children: [{
179
- name: '考核次数',
180
+ name: translateLocaleText("t('vtxkhmodal.times')"),
180
181
  value: khRes === null || khRes === void 0 ? void 0 : khRes.monthCheckTims,
181
182
  key: 'count',
182
- unit: '',
183
+ unit: translateLocaleText("t('common.timesUnit')"),
183
184
  fontType: 'blue'
184
185
  }, {
185
- name: '累计扣分',
186
+ name: translateLocaleText("t('vtxkhmodal.totalDeductedPoints')"),
186
187
  value: khRes === null || khRes === void 0 ? void 0 : khRes.monthDeductPoint,
187
188
  key: 'subtract',
188
- unit: '',
189
+ unit: translateLocaleText("t('vtxkhmodal.scoreUnit')"),
189
190
  fontType: 'red'
190
191
  }].map(function (ele) {
191
192
  return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, ele), {}, {
@@ -2,6 +2,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  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; }
3
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
4
  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); }
5
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
5
6
  /**
6
7
  * 考核弹窗
7
8
  */
@@ -29,10 +30,10 @@ var VtxKhModal = function VtxKhModal(props) {
29
30
  onCancel: onCancel,
30
31
  tabs: [{
31
32
  key: TABS_BASE,
32
- title: '总览信息'
33
+ title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
33
34
  }, {
34
35
  key: TABS_RECORD,
35
- title: '考核记录'
36
+ title: translateLocaleText("t('vtxkhmodal.records')")
36
37
  }],
37
38
  contents: _defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
38
39
  id: id,