@vtx/modals2 5.0.59 → 6.0.0-beta.1

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 +217 -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
@@ -1,112 +1,113 @@
1
1
  import { VmMap } from "../../../_components";
2
2
  import Right from "../Right";
3
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
3
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
5
  export default (function (props) {
5
6
  var _detail$location, _detail$location2, _detail$location3, _detail$location4;
6
7
  var detail = props.detail;
7
8
  var base = [{
8
- name: '案件来源',
9
+ name: translateLocaleText("t('vtxzfmodal.caseSource')"),
9
10
  key: 'caseFromStr'
10
11
  }, {
11
- name: '受案机关',
12
+ name: translateLocaleText("t('vtxzfmodal.acceptanceAuthority')"),
12
13
  key: 'acceptDepartment'
13
14
  }, {
14
- name: '受案时间',
15
+ name: translateLocaleText("t('vtxzfmodal.hours')"),
15
16
  key: 'acceptTime'
16
17
  }, {
17
- name: '案发时间',
18
+ name: translateLocaleText("t('vtxzfmodal.hours2')"),
18
19
  key: 'accidentTime'
19
20
  }, {
20
- name: '登记时间',
21
+ name: translateLocaleText("t('vtxzfmodal.hours3')"),
21
22
  key: 'registrationTime'
22
23
  }, {
23
- name: '登记人',
24
+ name: translateLocaleText("t('vtxzfmodal.registrant')"),
24
25
  key: 'undertakeUserName'
25
26
  }, {
26
- name: '案情概述',
27
+ name: translateLocaleText("t('vtxzfmodal.caseSummary')"),
27
28
  key: 'caseDescription',
28
29
  weights: 2
29
30
  }, {
30
- name: '案发地点',
31
+ name: translateLocaleText("t('vtxzfmodal.point')"),
31
32
  key: 'accidentAddress',
32
33
  weights: 2
33
34
  }];
34
35
  var dsrUnit = [{
35
- name: '当事人类型',
36
+ name: translateLocaleText("t('vtxzfmodal.currentType')"),
36
37
  key: 'casePartyTypeName'
37
38
  }, {
38
- name: '单位名称',
39
+ name: translateLocaleText("t('vtxzfmodal.unitName')"),
39
40
  key: 'partyName'
40
41
  }, {
41
- name: '法定代表人',
42
+ name: translateLocaleText("t('vtxzfmodal.legalRepresentative')"),
42
43
  key: 'corporate'
43
44
  }, {
44
- name: '统一社会信用代码',
45
+ name: translateLocaleText("t('vtxzfmodal.unifiedSocialCreditCode')"),
45
46
  key: 'socialCode'
46
47
  }, {
47
- name: '联系电话',
48
+ name: translateLocaleText("t('vtxzfmodal.phone')"),
48
49
  key: 'phone'
49
50
  }, {
50
- name: '身份证号',
51
+ name: translateLocaleText("t('vtxzfmodal.idCardNo')"),
51
52
  key: 'identityCode'
52
53
  }, {
53
- name: '住所地址',
54
+ name: translateLocaleText("t('vtxzfmodal.address')"),
54
55
  key: 'liveAddress',
55
56
  weights: 2
56
57
  }];
57
58
  var dsrPerson = [{
58
- name: '当事人类型',
59
+ name: translateLocaleText("t('vtxzfmodal.currentType')"),
59
60
  key: 'casePartyTypeName'
60
61
  }, {
61
- name: '姓名',
62
+ name: translateLocaleText("t('vtxzfmodal.personName')"),
62
63
  key: 'partyName'
63
64
  }, {
64
- name: '联系电话',
65
+ name: translateLocaleText("t('vtxzfmodal.phone')"),
65
66
  key: 'phone'
66
67
  }, {
67
- name: '身份证号',
68
+ name: translateLocaleText("t('vtxzfmodal.idCardNo')"),
68
69
  key: 'identityCode'
69
70
  }, {
70
- name: '住所地址',
71
+ name: translateLocaleText("t('vtxzfmodal.address')"),
71
72
  key: 'liveAddress',
72
73
  weights: 2
73
74
  }, {
74
- name: '工作单位及职务',
75
+ name: translateLocaleText("t('vtxzfmodal.unitPosition')"),
75
76
  key: 'job',
76
77
  weights: 2
77
78
  }];
78
79
  var cbxx = [{
79
- name: '承办单位',
80
+ name: translateLocaleText("t('vtxzfmodal.unit')"),
80
81
  key: 'undertakeOrgName'
81
82
  }, {
82
- name: '主办人',
83
+ name: translateLocaleText("t('vtxzfmodal.primaryHandler')"),
83
84
  key: 'undertakeUserName'
84
85
  }, {
85
- name: '协办人',
86
+ name: translateLocaleText("t('vtxzfmodal.assistantHandler')"),
86
87
  key: 'assistUserName'
87
88
  }];
88
89
  var laxx = [{
89
- name: '案件流程',
90
+ name: translateLocaleText("t('vtxzfmodal.caseProcess')"),
90
91
  key: 'caseTypeName'
91
92
  }, {
92
- name: '案件编号',
93
+ name: translateLocaleText("t('vtxzfmodal.caseNo')"),
93
94
  key: 'caseCode'
94
95
  }, {
95
- name: '卷宗编号',
96
+ name: translateLocaleText("t('vtxzfmodal.fileNo')"),
96
97
  key: 'fileCode'
97
98
  }, {
98
- name: '立案时间',
99
+ name: translateLocaleText("t('vtxzfmodal.hours4')"),
99
100
  key: 'lianTime'
100
101
  }, {
101
- name: '案件案由',
102
+ name: translateLocaleText("t('vtxzfmodal.caseCause')"),
102
103
  key: 'caseCauseManageName',
103
104
  weights: 2
104
105
  }, {
105
- name: '违反条款',
106
+ name: translateLocaleText("t('vtxzfmodal.violatedClause')"),
106
107
  key: 'breakContent',
107
108
  weights: 2
108
109
  }, {
109
- name: '处罚条款',
110
+ name: translateLocaleText("t('vtxzfmodal.penaltyClause')"),
110
111
  key: 'punishContent',
111
112
  weights: 2
112
113
  }];
@@ -118,7 +119,7 @@ export default (function (props) {
118
119
  className: "zf-left-top",
119
120
  children: [/*#__PURE__*/_jsxs("div", {
120
121
  className: "zf-base-title",
121
- children: ["\u6848\u4EF6\u4FE1\u606F", detail.caseTypeName && /*#__PURE__*/_jsx("span", {
122
+ children: [translateLocaleText("t('vtxzfmodal.caseInformation')"), detail.caseTypeName && /*#__PURE__*/_jsx("span", {
122
123
  className: "zf-base-subTitle",
123
124
  children: "\u3010".concat(detail.caseTypeName, "-").concat(detail.currentTask, "\u3011")
124
125
  })]
@@ -156,7 +157,7 @@ export default (function (props) {
156
157
  className: "zf-left-bottom",
157
158
  children: [/*#__PURE__*/_jsx("div", {
158
159
  className: "zf-base-title",
159
- children: "\u5F53\u4E8B\u4EBA\u4FE1\u606F"
160
+ children: translateLocaleText("t('vtxzfmodal.current')")
160
161
  }), /*#__PURE__*/_jsx("div", {
161
162
  className: "zf-base-info",
162
163
  style: {
@@ -164,7 +165,7 @@ export default (function (props) {
164
165
  },
165
166
  children: /*#__PURE__*/_jsx("div", {
166
167
  className: "zf-base-list",
167
- children: (detail.casePartyType == 'unit' ? dsrUnit : dsrPerson).map(function (item) {
168
+ children: (detail.casePartyType === 'unit' ? dsrUnit : dsrPerson).map(function (item) {
168
169
  return /*#__PURE__*/_jsxs("div", {
169
170
  className: "zf-base-item",
170
171
  style: {
@@ -184,7 +185,7 @@ export default (function (props) {
184
185
  className: "zf-left-bottom",
185
186
  children: [/*#__PURE__*/_jsx("div", {
186
187
  className: "zf-base-title",
187
- children: "\u627F\u529E\u4FE1\u606F"
188
+ children: translateLocaleText("t('vtxzfmodal.handlingInformation')")
188
189
  }), /*#__PURE__*/_jsx("div", {
189
190
  className: "zf-base-info",
190
191
  style: {
@@ -212,7 +213,7 @@ export default (function (props) {
212
213
  className: "zf-left-bottom",
213
214
  children: [/*#__PURE__*/_jsx("div", {
214
215
  className: "zf-base-title",
215
- children: "\u7ACB\u6848\u4FE1\u606F"
216
+ children: translateLocaleText("t('vtxzfmodal.filingInformation')")
216
217
  }), /*#__PURE__*/_jsx("div", {
217
218
  className: "zf-base-info",
218
219
  style: {
@@ -31,6 +31,7 @@ import { UnorderedListOutlined } from '@ant-design/icons';
31
31
  import "./index.less";
32
32
  import viewRichText from "./view";
33
33
  import CKModal from "./widgets/CKModal";
34
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
34
35
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
35
36
  var defaultPlugins = ClassicEditor.builtinPlugins;
36
37
  function CkEditorCustom(_ref, ref) {
@@ -77,22 +78,22 @@ function CkEditorCustom(_ref, ref) {
77
78
  heading: {
78
79
  options: [{
79
80
  model: 'paragraph',
80
- title: '正文',
81
+ title: translateLocaleText("t('vtxzfmodal.paragraph')"),
81
82
  class: 'ck-heading_paragraph'
82
83
  }, {
83
84
  model: 'heading1',
84
85
  view: 'h1',
85
- title: '标题1',
86
+ title: translateLocaleText("t('vtxzfmodal.title1')"),
86
87
  class: 'ck-heading_heading1'
87
88
  }, {
88
89
  model: 'heading2',
89
90
  view: 'h2',
90
- title: '标题2',
91
+ title: translateLocaleText("t('vtxzfmodal.title2')"),
91
92
  class: 'ck-heading_heading2'
92
93
  }, {
93
94
  model: 'heading3',
94
95
  view: 'h3',
95
- title: '标题3',
96
+ title: translateLocaleText("t('vtxzfmodal.title3')"),
96
97
  class: 'ck-heading_heading3'
97
98
  }]
98
99
  },
@@ -163,7 +164,7 @@ function CkEditorCustom(_ref, ref) {
163
164
  setState({
164
165
  modalVisible: true,
165
166
  modalType: defaultData.type,
166
- modalTitle: '编辑',
167
+ modalTitle: translateLocaleText("t('vtxzfmodal.edit')"),
167
168
  defaultData: _objectSpread(_objectSpread({}, defaultData), {}, {
168
169
  id: configid
169
170
  })
@@ -182,7 +183,7 @@ function CkEditorCustom(_ref, ref) {
182
183
  children: [/*#__PURE__*/_jsx("div", {
183
184
  className: classNames("tab1"),
184
185
  style: {
185
- display: state.active == 'source' ? 'block' : 'none'
186
+ display: state.active === 'source' ? 'block' : 'none'
186
187
  },
187
188
  children: /*#__PURE__*/_jsx("div", {
188
189
  className: classNames("block"),
@@ -195,7 +196,7 @@ function CkEditorCustom(_ref, ref) {
195
196
  }), /*#__PURE__*/_jsxs("div", {
196
197
  className: classNames("tab2"),
197
198
  style: {
198
- display: state.active == 'design' ? 'flex' : 'none'
199
+ display: state.active === 'design' ? 'flex' : 'none'
199
200
  },
200
201
  children: [/*#__PURE__*/_jsx("div", {
201
202
  className: classNames("editor"),
@@ -207,33 +208,33 @@ function CkEditorCustom(_ref, ref) {
207
208
  className: classNames('right_bar_title'),
208
209
  children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {
209
210
  className: classNames('right_bar_title_icon')
210
- }), "\u8868\u5355\u7EC4\u4EF6"]
211
+ }), translateLocaleText("t('vtxzfmodal.formComponents')")]
211
212
  }), [{
212
- name: '文本框',
213
+ name: translateLocaleText("t('vtxzfmodal.text')"),
213
214
  type: 'input',
214
215
  func: 'insertCustomInput'
215
216
  }, {
216
- name: '日期',
217
+ name: translateLocaleText("t('vtxzfmodal.date')"),
217
218
  type: 'date',
218
219
  func: 'insertCustomDate'
219
220
  }, {
220
- name: '文本域',
221
+ name: translateLocaleText("t('vtxzfmodal.text2')"),
221
222
  type: 'textarea',
222
223
  func: 'insertCustomTextarea'
223
224
  }, {
224
- name: '签名图片',
225
+ name: translateLocaleText("t('vtxzfmodal.signatureImage')"),
225
226
  type: 'sign',
226
227
  func: 'insertCustomSign'
227
228
  }, {
228
- name: '可编辑文本',
229
+ name: translateLocaleText("t('vtxzfmodal.editText')"),
229
230
  type: 'editable-div',
230
231
  func: 'insertEditableDiv'
231
232
  }, {
232
- name: '单选框',
233
+ name: translateLocaleText("t('vtxzfmodal.singleSelection')"),
233
234
  type: 'radio',
234
235
  func: 'insertCustomRadio'
235
236
  }, {
236
- name: '复选框',
237
+ name: translateLocaleText("t('vtxzfmodal.checkbox')"),
237
238
  type: 'checkbox',
238
239
  func: 'insertCustomCheckbox'
239
240
  }].map(function (item) {
@@ -244,7 +245,7 @@ function CkEditorCustom(_ref, ref) {
244
245
  setState({
245
246
  modalVisible: true,
246
247
  modalType: item.type,
247
- modalTitle: "".concat(item.name, " > \u914D\u7F6E"),
248
+ modalTitle: "".concat(item.name, " > ").concat(translateLocaleText("t('vtxzfmodal.configuration')")),
248
249
  executeFunc: item.func
249
250
  });
250
251
  },
@@ -255,7 +256,7 @@ function CkEditorCustom(_ref, ref) {
255
256
  }), /*#__PURE__*/_jsx("div", {
256
257
  className: classNames("tab3"),
257
258
  style: {
258
- display: state.active == 'preview' ? 'block' : 'none'
259
+ display: state.active === 'preview' ? 'block' : 'none'
259
260
  },
260
261
  children: /*#__PURE__*/_jsx("div", {
261
262
  className: classNames("block"),
@@ -268,17 +269,17 @@ function CkEditorCustom(_ref, ref) {
268
269
  }), /*#__PURE__*/_jsx("div", {
269
270
  className: classNames("footer"),
270
271
  children: [{
271
- name: '源码',
272
+ name: translateLocaleText("t('vtxzfmodal.sourceCode')"),
272
273
  key: 'source'
273
274
  }, {
274
- name: '设计',
275
+ name: translateLocaleText("t('vtxzfmodal.design')"),
275
276
  key: 'design'
276
277
  }, {
277
- name: '预览',
278
+ name: translateLocaleText("t('vtxzfmodal.preview')"),
278
279
  key: 'preview'
279
280
  }].map(function (item) {
280
281
  return /*#__PURE__*/_jsx("span", {
281
- className: classNames(state.active == item.key ? 'checked' : ''),
282
+ className: classNames(state.active === item.key ? 'checked' : ''),
282
283
  onClick: function onClick() {
283
284
  setState({
284
285
  active: item.key,
@@ -15,6 +15,7 @@ import React, { useEffect } from "react";
15
15
  import Config from "./config";
16
16
  import classNames from "classnames";
17
17
  import { VtxFormLayout } from '@vtx/components';
18
+ import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
18
19
  import { jsx as _jsx } from "react/jsx-runtime";
19
20
  export default function CKModal(props) {
20
21
  var _props$defaultData = props.defaultData,
@@ -35,8 +36,9 @@ export default function CKModal(props) {
35
36
  };
36
37
  return /*#__PURE__*/_jsx(Modal, {
37
38
  title: "".concat(props.title),
38
- visible: props.visible,
39
+ open: props.visible,
39
40
  maskClosable: false,
41
+ destroyOnHidden: true,
40
42
  onCancel: props.onClose,
41
43
  onOk: function onOk() {
42
44
  return form.submit();
@@ -48,27 +50,27 @@ export default function CKModal(props) {
48
50
  children: /*#__PURE__*/_jsx(VtxFormLayout, {
49
51
  cols: 1,
50
52
  children: (Config[props.type] || []).map(function (item) {
51
- if (item.type == 'label') {
53
+ if (item.type === 'label') {
52
54
  return /*#__PURE__*/_jsx("div", {
53
55
  className: classNames("label"),
54
- children: item.name
56
+ children: translateLocaleText(item.name)
55
57
  }, item.key);
56
58
  } else {
57
59
  return /*#__PURE__*/_jsx(VtxFormLayout.FormItem, {
58
- label: item.name,
60
+ label: translateLocaleText(item.name),
59
61
  name: item.key,
60
62
  weights: 1,
61
63
  rules: [{
62
64
  required: item.require,
63
- message: '必填'
65
+ message: translateLocaleText("t('vtxzfmodal.required')")
64
66
  }],
65
67
  getValueFromEvent: function getValueFromEvent(e) {
66
68
  return (e.target.value || '').trim();
67
69
  },
68
70
  children: /*#__PURE__*/_jsx(Input, {
69
- placeholder: "\u8BF7\u8F93\u5165"
71
+ placeholder: translateLocaleText("t('common.placeholder.input')")
70
72
  })
71
- });
73
+ }, item.key);
72
74
  }
73
75
  })
74
76
  })
@@ -1,99 +1,99 @@
1
1
  var Config = {
2
2
  input: [{
3
3
  type: 'field',
4
- name: '字段名',
4
+ name: "t('vtxzfmodal.fieldName')",
5
5
  key: 'label',
6
6
  require: true
7
7
  }, {
8
8
  type: 'field',
9
- name: '字段',
9
+ name: "t('vtxzfmodal.field')",
10
10
  key: 'name',
11
11
  require: true
12
12
  }, {
13
13
  type: 'field',
14
- name: '排序号',
14
+ name: "t('vtxzfmodal.sortOrder')",
15
15
  key: 'order',
16
16
  require: true
17
17
  }, {
18
18
  type: 'field',
19
- name: '宽度',
19
+ name: "t('vtxzfmodal.width')",
20
20
  key: 'width'
21
21
  }],
22
22
  date: [{
23
23
  type: 'field',
24
- name: '字段名',
24
+ name: "t('vtxzfmodal.fieldName')",
25
25
  key: 'label',
26
26
  require: true
27
27
  }, {
28
28
  type: 'field',
29
- name: '字段',
29
+ name: "t('vtxzfmodal.field')",
30
30
  key: 'name',
31
31
  require: true
32
32
  }, {
33
33
  type: 'field',
34
- name: '排序号',
34
+ name: "t('vtxzfmodal.sortOrder')",
35
35
  key: 'order',
36
36
  require: true
37
37
  }, {
38
38
  type: 'field',
39
- name: '宽度',
39
+ name: "t('vtxzfmodal.width')",
40
40
  key: 'width'
41
41
  }],
42
42
  radio: [{
43
43
  type: 'field',
44
- name: '字段名',
44
+ name: "t('vtxzfmodal.fieldName')",
45
45
  key: 'label',
46
46
  require: true
47
47
  }, {
48
48
  type: 'field',
49
- name: '字段',
49
+ name: "t('vtxzfmodal.field')",
50
50
  key: 'name',
51
51
  require: true
52
52
  }, {
53
53
  type: 'field',
54
- name: '排序号',
54
+ name: "t('vtxzfmodal.sortOrder')",
55
55
  key: 'order',
56
56
  require: true
57
57
  }, {
58
58
  type: 'field',
59
- name: '数据源',
59
+ name: "t('vtxzfmodal.dataSource')",
60
60
  key: 'url',
61
61
  require: true
62
62
  }],
63
63
  checkbox: [{
64
64
  type: 'field',
65
- name: '字段名',
65
+ name: "t('vtxzfmodal.fieldName')",
66
66
  key: 'label',
67
67
  require: true
68
68
  }, {
69
69
  type: 'field',
70
- name: '字段',
70
+ name: "t('vtxzfmodal.field')",
71
71
  key: 'name',
72
72
  require: true
73
73
  }, {
74
74
  type: 'field',
75
- name: '排序号',
75
+ name: "t('vtxzfmodal.sortOrder')",
76
76
  key: 'order',
77
77
  require: true
78
78
  }, {
79
79
  type: 'field',
80
- name: '数据源',
80
+ name: "t('vtxzfmodal.dataSource')",
81
81
  key: 'url',
82
82
  require: true
83
83
  }],
84
84
  textarea: [{
85
85
  type: 'field',
86
- name: '字段名',
86
+ name: "t('vtxzfmodal.fieldName')",
87
87
  key: 'label',
88
88
  require: true
89
89
  }, {
90
90
  type: 'field',
91
- name: '字段',
91
+ name: "t('vtxzfmodal.field')",
92
92
  key: 'name',
93
93
  require: true
94
94
  }, {
95
95
  type: 'field',
96
- name: '排序号',
96
+ name: "t('vtxzfmodal.sortOrder')",
97
97
  key: 'order',
98
98
  require: true
99
99
  }, {
@@ -103,42 +103,42 @@ var Config = {
103
103
  }],
104
104
  sign: [{
105
105
  type: 'field',
106
- name: '字段名',
106
+ name: "t('vtxzfmodal.fieldName')",
107
107
  key: 'label',
108
108
  require: true
109
109
  }, {
110
110
  type: 'field',
111
- name: '字段',
111
+ name: "t('vtxzfmodal.field')",
112
112
  key: 'name',
113
113
  require: true
114
114
  }, {
115
115
  type: 'field',
116
- name: '排序号',
116
+ name: "t('vtxzfmodal.sortOrder')",
117
117
  key: 'order',
118
118
  require: true
119
119
  }, {
120
120
  type: 'field',
121
- name: '文字',
121
+ name: "t('vtxzfmodal.word')",
122
122
  key: 'text'
123
123
  }],
124
124
  'editable-div': [{
125
125
  type: 'field',
126
- name: '字段名',
126
+ name: "t('vtxzfmodal.fieldName')",
127
127
  key: 'label',
128
128
  require: true
129
129
  }, {
130
130
  type: 'field',
131
- name: '字段',
131
+ name: "t('vtxzfmodal.field')",
132
132
  key: 'name',
133
133
  require: true
134
134
  }, {
135
135
  type: 'field',
136
- name: '排序号',
136
+ name: "t('vtxzfmodal.sortOrder')",
137
137
  key: 'order',
138
138
  require: true
139
139
  }, {
140
140
  type: 'field',
141
- name: '填充字符数',
141
+ name: "t('vtxzfmodal.fillCharacterCount')",
142
142
  key: 'fill',
143
143
  require: false
144
144
  }]
@@ -16,6 +16,7 @@ import Base64 from 'base-64';
16
16
  import { useEffect, useState } from 'react';
17
17
  import { VmTable } from "../../../_components";
18
18
  import Right from "../Right";
19
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
19
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
21
  var preview = function preview() {
21
22
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
@@ -35,12 +36,12 @@ var renderFile = function renderFile(list) {
35
36
  onClick: function onClick() {
36
37
  return preview(item);
37
38
  },
38
- children: "\u9884\u89C8"
39
+ children: translateLocaleText("t('vtxzfmodal.preview')")
39
40
  }), /*#__PURE__*/_jsx(Button, {
40
41
  onClick: function onClick() {
41
42
  return window.open("/cloudFile/common/downloadFile?token=".concat(getVtxToken('token'), "&id=").concat(item.id));
42
43
  },
43
- children: "\u4E0B\u8F7D"
44
+ children: translateLocaleText("t('vtxzfmodal.download')")
44
45
  })]
45
46
  }),
46
47
  children: /*#__PURE__*/_jsx("a", {
@@ -84,12 +85,12 @@ export default (function (props) {
84
85
  }, [id]);
85
86
  var fileProps = {
86
87
  columns: [{
87
- title: '序号',
88
+ title: translateLocaleText("t('common.serialNumber')"),
88
89
  dataIndex: 'orderIndex',
89
90
  key: 'orderIndex',
90
91
  width: 40
91
92
  }, {
92
- title: '名称',
93
+ title: translateLocaleText("t('vtxzfmodal.fileName')"),
93
94
  dataIndex: 'file',
94
95
  key: 'file',
95
96
  width: 160,
@@ -98,19 +99,19 @@ export default (function (props) {
98
99
  return renderFile(JSON.parse(text));
99
100
  }
100
101
  }, {
101
- title: '上传节点',
102
+ title: translateLocaleText("t('vtxzfmodal.point2')"),
102
103
  dataIndex: 'taskName',
103
104
  key: 'taskName',
104
105
  width: 120,
105
106
  ellipsis: true
106
107
  }, {
107
- title: '上传时间',
108
+ title: translateLocaleText("t('vtxzfmodal.uploadTime')"),
108
109
  dataIndex: 'uploadTime',
109
110
  key: 'uploadTime',
110
111
  width: 100,
111
112
  ellipsis: true
112
113
  }, {
113
- title: '上传人',
114
+ title: translateLocaleText("t('vtxzfmodal.uploader')"),
114
115
  dataIndex: 'updateStaffName',
115
116
  key: 'updateStaffName',
116
117
  width: 120,
@@ -127,12 +128,12 @@ export default (function (props) {
127
128
  };
128
129
  var videoProps = {
129
130
  columns: [{
130
- title: '序号',
131
+ title: translateLocaleText("t('common.serialNumber')"),
131
132
  dataIndex: 'orderIndex',
132
133
  key: 'orderIndex',
133
134
  width: 60
134
135
  }, {
135
- title: '名称',
136
+ title: translateLocaleText("t('vtxzfmodal.videoName')"),
136
137
  dataIndex: 'video',
137
138
  key: 'video',
138
139
  width: 160,
@@ -141,19 +142,19 @@ export default (function (props) {
141
142
  return renderFile(JSON.parse(text));
142
143
  }
143
144
  }, {
144
- title: '上传节点',
145
+ title: translateLocaleText("t('vtxzfmodal.point2')"),
145
146
  dataIndex: 'taskName',
146
147
  key: 'taskName',
147
148
  width: 120,
148
149
  ellipsis: true
149
150
  }, {
150
- title: '上传时间',
151
+ title: translateLocaleText("t('vtxzfmodal.uploadTime')"),
151
152
  dataIndex: 'uploadTime',
152
153
  key: 'uploadTime',
153
154
  width: 100,
154
155
  ellipsis: true
155
156
  }, {
156
- title: '上传人',
157
+ title: translateLocaleText("t('vtxzfmodal.uploader')"),
157
158
  dataIndex: 'updateStaffName',
158
159
  key: 'updateStaffName',
159
160
  width: 120,
@@ -176,13 +177,13 @@ export default (function (props) {
176
177
  className: "zf-left-panel",
177
178
  children: [/*#__PURE__*/_jsx("div", {
178
179
  className: "zf-file-title",
179
- children: "\u9644\u4EF6"
180
+ children: translateLocaleText("t('vtxzfmodal.attachment')")
180
181
  }), /*#__PURE__*/_jsx(VmTable, _objectSpread({}, fileProps))]
181
182
  }), /*#__PURE__*/_jsxs("div", {
182
183
  className: "zf-left-panel",
183
184
  children: [/*#__PURE__*/_jsx("div", {
184
185
  className: "zf-file-title",
185
- children: "\u5173\u8054\u89C6\u9891"
186
+ children: translateLocaleText("t('vtxzfmodal.video')")
186
187
  }), /*#__PURE__*/_jsx(VmTable, _objectSpread({}, videoProps))]
187
188
  })]
188
189
  }), /*#__PURE__*/_jsx(Right, {