@vtx/modals2 6.0.0-beta.1 → 6.0.0-beta.3

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 (403) hide show
  1. package/lib/_components/vm-calendar/index.js +3 -4
  2. package/lib/_components/vm-empty/index.js +1 -1
  3. package/lib/_components/vm-factor/index.js +2 -1
  4. package/lib/_components/vm-filter/index.js +8 -8
  5. package/lib/_components/vm-info-collection/index.js +3 -2
  6. package/lib/_components/vm-map/index.js +1 -1
  7. package/lib/_components/vm-progress/index.js +2 -1
  8. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +1 -1
  9. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +1 -1
  10. package/lib/_components/vm-repair-maintain/RmRecord.js +1 -1
  11. package/lib/_components/vm-repair-maintain/RmType.js +1 -1
  12. package/lib/_components/vm-repair-maintain/index.js +1 -1
  13. package/lib/_components/vm-table/index.js +3 -3
  14. package/lib/_components/vm-tag/index.js +2 -1
  15. package/lib/_components/vm-title/index.js +2 -1
  16. package/lib/_components/vm-video/index.js +1 -1
  17. package/lib/_components/vm-wrapper/index.js +2 -2
  18. package/lib/_components/vm-wrapper/style/index.less +4 -2
  19. package/lib/_util/http.js +6 -5
  20. package/lib/_util/index.js +6 -5
  21. package/lib/locales/en.json +1516 -1377
  22. package/lib/locales/zh-CN.json +1516 -1377
  23. package/lib/vtx-area-modal/api.js +1 -1
  24. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +1 -1
  25. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +1 -1
  26. package/lib/vtx-area-modal/components/BaseInfo/index.js +1 -1
  27. package/lib/vtx-base-modal/index.js +2 -1
  28. package/lib/vtx-car-modal/api.js +415 -25
  29. package/lib/vtx-car-modal/components/Info/index.js +1 -1
  30. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +1 -1
  31. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +1 -1
  32. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +1 -1
  33. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +1 -1
  34. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +1 -1
  35. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +1 -1
  36. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +1 -1
  37. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +1 -1
  38. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -1
  39. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +1 -1
  40. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +1 -1
  41. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +1 -1
  42. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +1 -1
  43. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +1 -1
  44. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +1 -1
  45. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +1 -1
  46. package/lib/vtx-car-modal/content/Common/EleUse/index.js +206 -0
  47. package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
  48. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +1 -1
  49. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +1 -1
  50. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +1 -1
  51. package/lib/vtx-car-modal/content/Common/OilUse/index.js +218 -0
  52. package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
  53. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
  54. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
  55. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -1
  56. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -1
  57. package/lib/vtx-car-modal/content/Common/WaterUse/index.js +196 -0
  58. package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
  59. package/lib/vtx-car-modal/content/Common/index.js +9 -1
  60. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +1 -1
  61. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +1 -1
  62. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +1 -1
  63. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +1 -1
  64. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +1 -1
  65. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +1 -1
  66. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +1 -1
  67. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +1 -1
  68. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
  69. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +1 -1
  70. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +1 -1
  71. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
  72. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +1 -1
  73. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +1 -1
  74. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +1 -1
  75. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +1 -1
  76. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +1 -1
  77. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +1 -1
  78. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +1 -1
  79. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +1 -1
  80. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +1 -1
  81. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +1 -1
  82. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +1 -1
  83. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +1 -1
  84. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +1 -1
  85. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +1 -1
  86. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -1
  87. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +1 -1
  88. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +1 -1
  89. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +1 -1
  90. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +1 -1
  91. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -1
  92. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +1 -1
  93. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +1 -1
  94. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +1 -1
  95. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +1 -1
  96. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +1 -1
  97. package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
  98. package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
  99. package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
  100. package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
  101. package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
  102. package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
  103. package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
  104. package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
  105. package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
  106. package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
  107. package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
  108. package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
  109. package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
  110. package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
  111. package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
  112. package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
  113. package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
  114. package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
  115. package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
  116. package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
  117. package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
  118. package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
  119. package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
  120. package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
  121. package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
  122. package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
  123. package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
  124. package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
  125. package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
  126. package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
  127. package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
  128. package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
  129. package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
  130. package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
  131. package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
  132. package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
  133. package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
  134. package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
  135. package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
  136. package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
  137. package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
  138. package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
  139. package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
  140. package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
  141. package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
  142. package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
  143. package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
  144. package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
  145. package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
  146. package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
  147. package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
  148. package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
  149. package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
  150. package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
  151. package/lib/vtx-car-modal/imgs/zjl.png +0 -0
  152. package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
  153. package/lib/vtx-car-modal/index.js +23 -3
  154. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
  155. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +1 -1
  156. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +1 -1
  157. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +1 -1
  158. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +1 -1
  159. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +1 -1
  160. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +1 -1
  161. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +1 -1
  162. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +1 -1
  163. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +1 -1
  164. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -4
  165. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +1 -1
  166. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +1 -1
  167. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +1 -1
  168. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +1 -1
  169. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +1 -1
  170. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +1 -1
  171. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +1 -1
  172. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +1 -1
  173. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +1 -1
  174. package/lib/vtx-cc-cp-modal/index.js +1 -1
  175. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +1 -1
  176. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +1 -1
  177. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +1 -1
  178. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +1 -1
  179. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
  180. package/lib/vtx-cc-unit-modal/components/CarList/index.js +1 -1
  181. package/lib/vtx-cc-unit-modal/components/Collection/index.js +1 -1
  182. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
  183. package/lib/vtx-cc-unit-modal/components/Factory/index.js +1 -1
  184. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +1 -1
  185. package/lib/vtx-cc-unit-modal/index.js +1 -1
  186. package/lib/vtx-cp-modal/api.js +1 -1
  187. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +1 -1
  188. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +1 -1
  189. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +1 -1
  190. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +1 -1
  191. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +1 -1
  192. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -1
  193. package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
  194. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +1 -1
  195. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +1 -1
  196. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +1 -1
  197. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +1 -1
  198. package/lib/vtx-cp-modal/components/SyInfo/index.js +1 -1
  199. package/lib/vtx-cp-modal/index.js +1 -1
  200. package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
  201. package/lib/vtx-default-modal/index.js +1 -1
  202. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +1 -1
  203. package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
  204. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +1 -1
  205. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
  206. package/lib/vtx-device-modal/index.js +1 -1
  207. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +1 -1
  208. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +1 -1
  209. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +1 -1
  210. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +1 -1
  211. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +1 -1
  212. package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
  213. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +1 -1
  214. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +1 -1
  215. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +1 -1
  216. package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +1 -1
  217. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +1 -1
  218. package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
  219. package/lib/vtx-df-modal/components/Calendar/index.js +1 -1
  220. package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +1 -1
  221. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +1 -1
  222. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +1 -1
  223. package/lib/vtx-df-modal/components/Metering/List.js +1 -1
  224. package/lib/vtx-df-modal/components/Metering/index.js +1 -1
  225. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +1 -1
  226. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +1 -1
  227. package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +1 -1
  228. package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +1 -1
  229. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +1 -1
  230. package/lib/vtx-df-modal/components/WorkCondition/Table.js +1 -1
  231. package/lib/vtx-df-modal/components/WorkCondition/index.js +1 -1
  232. package/lib/vtx-df-modal/index.js +1 -1
  233. package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +1 -1
  234. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +1 -1
  235. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +1 -1
  236. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +1 -1
  237. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +1 -1
  238. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +1 -1
  239. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +1 -1
  240. package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +1 -1
  241. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +1 -1
  242. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +1 -1
  243. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +1 -1
  244. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +1 -1
  245. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +1 -1
  246. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +1 -1
  247. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
  248. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +1 -1
  249. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +1 -1
  250. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +1 -1
  251. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +1 -1
  252. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +1 -1
  253. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +1 -1
  254. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +1 -1
  255. package/lib/vtx-housing-estate-modal/index.js +1 -1
  256. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +1 -1
  257. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
  258. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +1 -1
  259. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +1 -1
  260. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +1 -1
  261. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +1 -1
  262. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +1 -1
  263. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +1 -1
  264. package/lib/vtx-jzlj-df-tpd-modal/index.js +1 -1
  265. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +1 -1
  266. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +1 -1
  267. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +1 -1
  268. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
  269. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +1 -1
  270. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +1 -1
  271. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +1 -1
  272. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +1 -1
  273. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +1 -1
  274. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +1 -1
  275. package/lib/vtx-jzlj-gcxm-modal/index.js +1 -1
  276. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +1 -1
  277. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
  278. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +1 -1
  279. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +1 -1
  280. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +1 -1
  281. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +1 -1
  282. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +1 -1
  283. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +1 -1
  284. package/lib/vtx-jzlj-xnc-modal/index.js +1 -1
  285. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +1 -1
  286. package/lib/vtx-jzlj-ysqy-modal/index.js +1 -1
  287. package/lib/vtx-kh-modal/api2.js +1 -1
  288. package/lib/vtx-kh-modal/components/BaseInfo/index.js +1 -1
  289. package/lib/vtx-kh-modal/components/Record/index.js +1 -1
  290. package/lib/vtx-kh-modal/index.js +1 -1
  291. package/lib/vtx-qyry-modal/api.js +1 -1
  292. package/lib/vtx-qyry-modal/index.js +1 -1
  293. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +1 -1
  294. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +1 -1
  295. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
  296. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +1 -1
  297. package/lib/vtx-restaurant-modal/components/Alarm/index.js +1 -1
  298. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +1 -1
  299. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +1 -1
  300. package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
  301. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +1 -1
  302. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +1 -1
  303. package/lib/vtx-restaurant-modal/components/Basic/index.js +1 -1
  304. package/lib/vtx-restaurant-modal/components/Calendar/index.js +4 -4
  305. package/lib/vtx-restaurant-modal/components/Collection/index.js +1 -1
  306. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +51 -34
  307. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +4 -4
  308. package/lib/vtx-restaurant-modal/index.js +1 -1
  309. package/lib/vtx-road-modal/api.js +1 -1
  310. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +1 -1
  311. package/lib/vtx-road-modal/components/BaseInfo/Work.js +1 -1
  312. package/lib/vtx-road-modal/components/BaseInfo/index.js +1 -1
  313. package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
  314. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +1 -1
  315. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +1 -1
  316. package/lib/vtx-road-modal/components/LaneCalendar/index.js +1 -1
  317. package/lib/vtx-road-modal/components/LaneStatistical/index.js +1 -1
  318. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  319. package/lib/vtx-road-modal/index.js +1 -1
  320. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +1 -1
  321. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +1 -1
  322. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +1 -1
  323. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +1 -1
  324. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +1 -1
  325. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +1 -1
  326. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +1 -1
  327. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +1 -1
  328. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +1 -1
  329. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +1 -1
  330. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +1 -1
  331. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +1 -1
  332. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +1 -1
  333. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +1 -1
  334. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
  335. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +1 -1
  336. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +1 -1
  337. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +1 -1
  338. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +1 -1
  339. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +1 -1
  340. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +1 -1
  341. package/lib/vtx-sdyd-tfd-modal/index.js +1 -1
  342. package/lib/vtx-shxq-modal/api.js +1 -1
  343. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +1 -1
  344. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +1 -1
  345. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
  346. package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
  347. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +1 -1
  348. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +1 -1
  349. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +1 -1
  350. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +1 -1
  351. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
  352. package/lib/vtx-shxq-modal/index.js +1 -1
  353. package/lib/vtx-staff-modal/api.js +1 -1
  354. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +1 -1
  355. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +1 -1
  356. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +1 -1
  357. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +1 -1
  358. package/lib/vtx-staff-modal/components/Attendance/Record.js +1 -1
  359. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +1 -1
  360. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +1 -1
  361. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +1 -1
  362. package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
  363. package/lib/vtx-staff-modal/components/Calendar/index.js +1 -1
  364. package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
  365. package/lib/vtx-staff-modal/index.js +1 -1
  366. package/lib/vtx-tfd-modal/api.js +1 -1
  367. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +1 -1
  368. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +1 -1
  369. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
  370. package/lib/vtx-wr-modal/components/Appraise/index.js +1 -1
  371. package/lib/vtx-wr-modal/components/Base/Jbxx.js +1 -1
  372. package/lib/vtx-wr-modal/components/Base/Ptss.js +1 -1
  373. package/lib/vtx-wr-modal/components/Base/Sjjg.js +1 -1
  374. package/lib/vtx-wr-modal/components/Base/index.js +1 -1
  375. package/lib/vtx-wr-modal/components/Build/index.js +1 -1
  376. package/lib/vtx-wr-modal/components/File/index.js +1 -1
  377. package/lib/vtx-wr-modal/components/Score/index.js +1 -1
  378. package/lib/vtx-wr-modal/index.js +1 -1
  379. package/lib/vtx-zf-modal/components/Base/index.js +1 -1
  380. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +1 -1
  381. package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
  382. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +1 -1
  383. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
  384. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
  385. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
  386. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
  387. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
  388. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
  389. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
  390. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
  391. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
  392. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
  393. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
  394. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
  395. package/lib/vtx-zf-modal/components/File/index.js +1 -1
  396. package/lib/vtx-zf-modal/components/Process/index.js +1 -1
  397. package/lib/vtx-zf-modal/components/Record/index.js +1 -1
  398. package/lib/vtx-zf-modal/components/Right/index.js +1 -1
  399. package/lib/vtx-zg-modal/api.js +1 -1
  400. package/lib/vtx-zg-modal/components/BaseInfo/index.js +1 -1
  401. package/lib/vtx-zg-modal/index.js +1 -1
  402. package/lib/vtx-zzz-modal/index.js +3 -3
  403. package/package.json +1 -1
@@ -9,15 +9,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import { Calendar, Progress } from 'antd';
11
11
  import classnames from 'classnames';
12
- import dayjs from "../../_util/setupDayjs";
13
12
  import useSettings from "../../_hooks/useSettings";
14
13
  import "./style";
15
- import zhCN from 'antd/es/calendar/locale/zh_CN.js';
16
14
  import enUS from 'antd/es/calendar/locale/en_US.js';
17
- import { getRuntimeLocale } from "./../../hooks/useTranslation.js";
15
+ import zhCN from 'antd/es/calendar/locale/zh_CN.js';
18
16
  import BlockA from "../../_imgs/block_alarm.png";
19
17
  import BlockN from "../../_imgs/block_normal.png";
20
18
  import { transformRgb } from "../../_util";
19
+ import { getRuntimeLanguage } from "./../../hooks/useTranslation.ts";
21
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
21
  var prefix = 'vm-calendar';
23
22
  function VmCalendar(props) {
@@ -40,7 +39,7 @@ function VmCalendar(props) {
40
39
  '--height': height + 'px'
41
40
  }),
42
41
  children: /*#__PURE__*/_jsx(Calendar, _objectSpread({
43
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS,
42
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS,
44
43
  headerRender: function headerRender() {
45
44
  return null;
46
45
  },
@@ -5,7 +5,7 @@ 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 classnames from 'classnames';
8
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
8
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
9
9
  import useSettings from "../../_hooks/useSettings";
10
10
  import no_chart from "./assets/no_chart.png";
11
11
  import no_data from "./assets/no_data.png";
@@ -5,6 +5,7 @@ import _ from 'lodash';
5
5
  import { Fragment } from 'react';
6
6
  import useSettings from "../../_hooks/useSettings";
7
7
  import { DownIcon, UpIcon } from "../../_util/iconSvgHtml";
8
+ import { translateLocaleText } from "../../hooks/useTranslation.ts";
8
9
  import "./style";
9
10
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
11
  export default function VmFactor(_ref) {
@@ -20,7 +21,7 @@ export default function VmFactor(_ref) {
20
21
  compare = _ref.compare,
21
22
  compareValue = _ref.compareValue,
22
23
  _ref$compareName = _ref.compareName,
23
- compareName = _ref$compareName === void 0 ? '与昨日比' : _ref$compareName,
24
+ compareName = _ref$compareName === void 0 ? translateLocaleText("t('_components.comparedWithYesterday')") : _ref$compareName,
24
25
  _ref$compareUnit = _ref.compareUnit,
25
26
  compareUnit = _ref$compareUnit === void 0 ? '' : _ref$compareUnit,
26
27
  _ref$isError = _ref.isError,
@@ -13,14 +13,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  import { SearchOutlined } from '@ant-design/icons';
14
14
  import { useDebounce } from 'ahooks';
15
15
  import { DatePicker, Input, Select } from 'antd';
16
- import zhCN from 'antd/es/date-picker/locale/zh_CN';
17
16
  import enUS from 'antd/es/date-picker/locale/en_US';
18
- import { getRuntimeLocale, translateLocaleText } from "./../../hooks/useTranslation.js";
19
- import "../../_util/setupDayjs";
17
+ import zhCN from 'antd/es/date-picker/locale/zh_CN';
18
+ import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.ts";
20
19
  import { useEffect, useState } from 'react';
21
20
  import useSettings from "../../_hooks/useSettings";
22
- import "./style";
21
+ import "../../_util/setupDayjs";
23
22
  import VmEmpty from "../vm-empty";
23
+ import "./style";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  var RangePicker = DatePicker.RangePicker,
26
26
  MonthPicker = DatePicker.MonthPicker,
@@ -42,7 +42,7 @@ export var VMRangePicker = function VMRangePicker(props) {
42
42
  },
43
43
  allowClear: false
44
44
  }, props), {}, {
45
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS
45
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
46
46
  }));
47
47
  };
48
48
  export var VMDatePicker = function VMDatePicker(props) {
@@ -57,7 +57,7 @@ export var VMDatePicker = function VMDatePicker(props) {
57
57
  },
58
58
  allowClear: false
59
59
  }, props), {}, {
60
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS
60
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
61
61
  }));
62
62
  };
63
63
  export var VMMonthPicker = function VMMonthPicker(props) {
@@ -72,7 +72,7 @@ export var VMMonthPicker = function VMMonthPicker(props) {
72
72
  },
73
73
  allowClear: false
74
74
  }, props), {}, {
75
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS
75
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
76
76
  }));
77
77
  };
78
78
  export var VMYearPicker = function VMYearPicker(props) {
@@ -87,7 +87,7 @@ export var VMYearPicker = function VMYearPicker(props) {
87
87
  },
88
88
  allowClear: false
89
89
  }, props), {}, {
90
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS
90
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS
91
91
  }));
92
92
  };
93
93
  export var VMSelect = function VMSelect(props) {
@@ -12,6 +12,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
12
12
  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); }
13
13
  import { VtxImage, VtxUpload } from '@vtx/components';
14
14
  import { isNumber } from 'lodash';
15
+ import { translateLocaleText } from "../../hooks/useTranslation.ts";
15
16
  import "./style";
16
17
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
18
  function InfoCollection(props) {
@@ -57,7 +58,7 @@ function InfoCollection(props) {
57
58
  className: "ellipsis info-label-b-text",
58
59
  children: [item.label, " \uFF1A"]
59
60
  })
60
- }), item.label === '地址' || item.isAddress ? /*#__PURE__*/_jsx("div", {
61
+ }), item.label === translateLocaleText("t('vtxrestaurantmodal.address')") || item.isAddress ? /*#__PURE__*/_jsx("div", {
61
62
  className: "value",
62
63
  style: style,
63
64
  title: item.value || '',
@@ -123,7 +124,7 @@ var ValueDom = function ValueDom(componentType, value, isTitle) {
123
124
  node = lngLats;
124
125
  break;
125
126
  case 'SWITCH':
126
- node = value || (value ? '' : '');
127
+ node = value || (value ? translateLocaleText("t('common.yes')") : translateLocaleText("t('common.no')"));
127
128
  break;
128
129
  case 'GARBAGE_CAN':
129
130
  var arr = [];
@@ -19,7 +19,7 @@ import proj4 from 'proj4';
19
19
  import { useEffect, useRef, useState } from 'react';
20
20
  import useSettings from "../../_hooks/useSettings";
21
21
  import "./index.less";
22
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
22
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  export default function VmOlMap(_ref) {
25
25
  var _mapInfo$olProps, _points$data2, _polygons$data2, _newPoints$data3;
@@ -9,6 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import { Progress } from 'antd';
11
11
  import useSettings from "../../_hooks/useSettings";
12
+ import { translateLocaleText } from "../../hooks/useTranslation.ts";
12
13
  import "./style";
13
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
15
  export function Line(props) {
@@ -52,7 +53,7 @@ var Circle = function Circle(props) {
52
53
  _props$width2 = props.width,
53
54
  width = _props$width2 === void 0 ? 120 : _props$width2,
54
55
  _props$name = props.name,
55
- name = _props$name === void 0 ? '有效作业率' : _props$name,
56
+ name = _props$name === void 0 ? translateLocaleText("t('_components.effectiveOperationRate')") : _props$name,
56
57
  _props$unit = props.unit,
57
58
  unit = _props$unit === void 0 ? '%' : _props$unit,
58
59
  info = props.info,
@@ -7,7 +7,7 @@ import count from "./imgs/count.png";
7
7
  import VmFactor from "../vm-factor";
8
8
  import amountLight from "./imgs/amount_light.png";
9
9
  import countLight from "./imgs/count_light.png";
10
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
10
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  var RmInfoSummary = function RmInfoSummary(props) {
13
13
  var data = props.data;
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
7
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
8
8
  /**
9
9
  * 月度趋势分析
10
10
  */
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
13
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
14
14
  /**
15
15
  * 维保记录
16
16
  */
@@ -1,4 +1,4 @@
1
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
1
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
2
2
  /**
3
3
  * 维保类型分析
4
4
  */
@@ -1,4 +1,4 @@
1
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
1
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
2
2
  /**
3
3
  * 通用-维保信息
4
4
  */
@@ -21,12 +21,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
21
21
  import { DownOutlined, ExportOutlined } from '@ant-design/icons';
22
22
  import { useMemoizedFn, useSetState } from 'ahooks';
23
23
  import { Button, ConfigProvider, Dropdown, Table } from 'antd';
24
- import zhCN from 'antd/es/locale/zh_CN';
25
24
  import enUS from 'antd/es/locale/en_US';
25
+ import zhCN from 'antd/es/locale/zh_CN';
26
26
  import { useEffect, useMemo, useRef, useState } from 'react';
27
27
  import useSettings from "../../_hooks/useSettings";
28
28
  import "./style";
29
- import { getRuntimeLocale, translateLocaleText } from "./../../hooks/useTranslation.js";
29
+ import { getRuntimeLanguage, translateLocaleText } from "./../../hooks/useTranslation.ts";
30
30
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
31
  var VMTable = function VMTable(props) {
32
32
  var _props$rowKey = props.rowKey,
@@ -136,7 +136,7 @@ var VMTable = function VMTable(props) {
136
136
  }
137
137
  }, [JSON.stringify(dataSource), JSON.stringify(currentLayer)]);
138
138
  return /*#__PURE__*/_jsx(ConfigProvider, {
139
- locale: getRuntimeLocale() === 'zh-CN' ? zhCN : enUS,
139
+ locale: getRuntimeLanguage() === 'zh-CN' ? zhCN : enUS,
140
140
  children: /*#__PURE__*/_jsx(Table, _objectSpread({
141
141
  className: "vm-table ".concat(isDark ? 'dark' : ''),
142
142
  ref: tableRef,
@@ -5,13 +5,14 @@ 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 useSettings from "../../_hooks/useSettings";
8
+ import { translateLocaleText } from "../../hooks/useTranslation.ts";
8
9
  import "./style";
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  export default function VmWrapper(props) {
11
12
  var _useSettings = useSettings(),
12
13
  isDark = _useSettings.isDark;
13
14
  var _props$title = props.title,
14
- title = _props$title === void 0 ? '基本信息' : _props$title,
15
+ title = _props$title === void 0 ? translateLocaleText("t('_components.basicInformation')") : _props$title,
15
16
  _props$type = props.type,
16
17
  type = _props$type === void 0 ? 'blue' : _props$type,
17
18
  _props$style = props.style,
@@ -1,13 +1,14 @@
1
1
  import classnames from 'classnames';
2
2
  import useSettings from "../../_hooks/useSettings";
3
3
  import { ClockIcon } from "../../_util/iconSvgHtml";
4
+ import { translateLocaleText } from "../../hooks/useTranslation.ts";
4
5
  import "./style";
5
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
7
  export default function VmWrapper(props) {
7
8
  var _useSettings = useSettings(),
8
9
  isDark = _useSettings.isDark;
9
10
  var _props$title = props.title,
10
- title = _props$title === void 0 ? '基本信息' : _props$title,
11
+ title = _props$title === void 0 ? translateLocaleText("t('_components.basicInformation')") : _props$title,
11
12
  _props$time = props.time,
12
13
  time = _props$time === void 0 ? '' : _props$time,
13
14
  _props$border = props.border,
@@ -24,7 +24,7 @@ import { VmTabs } from "../vm-tabs";
24
24
  import HistoryGrid from "./HistoryGrid";
25
25
  import "./index.less";
26
26
  import RealtimeGrid from "./RealtimeGrid";
27
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
27
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
28
28
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
29
29
  var VmVideo = function VmVideo(_ref) {
30
30
  var _ref$channels = _ref.channels,
@@ -18,7 +18,7 @@ import useSettings from "../../_hooks/useSettings";
18
18
  import { ChartIcon, DateIcon, ListIcon } from "../../_util/iconSvgHtml";
19
19
  import VmFilter from "../vm-filter";
20
20
  import "./style";
21
- import { translateLocaleText } from "./../../hooks/useTranslation.js";
21
+ import { translateLocaleText } from "./../../hooks/useTranslation.ts";
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  var VMDatePicker = VmFilter.VMDatePicker,
24
24
  VMMonthPicker = VmFilter.VMMonthPicker,
@@ -90,7 +90,7 @@ export default function VmWrapper(props) {
90
90
  changeList.push({
91
91
  key: 'chart',
92
92
  icon: ListIcon,
93
- name: '图表'
93
+ name: translateLocaleText("t('_components.chart')")
94
94
  });
95
95
  }
96
96
  if (showList) {
@@ -4,7 +4,7 @@
4
4
  --wborder-color: #f1f0f0;
5
5
  --wfilter-bg: #f5f5f5;
6
6
  --wtype-bg: #fff;
7
- --tab-active-color: #1677FF;
7
+ --tab-active-color: #1677ff;
8
8
 
9
9
  &.dark {
10
10
  --wbg-color: rgba(0, 155, 233, 10%);
@@ -12,7 +12,7 @@
12
12
  --wborder-color: #1064a7;
13
13
  --wfilter-bg: #0b588e;
14
14
  --wtype-bg: #0168b0;
15
- --tab-active-color: #009DFF;
15
+ --tab-active-color: #009dff;
16
16
  }
17
17
 
18
18
  &-tabs-wrap {
@@ -55,6 +55,8 @@
55
55
  &-head {
56
56
  padding: 11px 16px;
57
57
  border-bottom: 1px solid var(--wborder-color);
58
+ border-top-left-radius: 8px;
59
+ border-top-right-radius: 8px;
58
60
  }
59
61
 
60
62
  .extra {
package/lib/_util/http.js CHANGED
@@ -15,6 +15,7 @@ import { message } from 'antd';
15
15
  import isObject from 'lodash/isObject';
16
16
  import pickBy from 'lodash/pickBy';
17
17
  import qs from 'qs';
18
+ import { translateLocaleText } from "../hooks/useTranslation.ts";
18
19
  var SECOND = 30;
19
20
  var MILL_SECOND = 1000;
20
21
  var baseUrlPrefix = process.env.PREFIX ? "/".concat(process.env.PREFIX) : '';
@@ -233,7 +234,7 @@ var Http = /*#__PURE__*/function () {
233
234
  if (((_config = config) === null || _config === void 0 || (_config = _config.url) === null || _config === void 0 ? void 0 : _config.indexOf('zdjg/jg/data/getJgDataStatistics')) > -1 || ((_config2 = config) === null || _config2 === void 0 || (_config2 = _config2.url) === null || _config2 === void 0 ? void 0 : _config2.indexOf('/cloud/zd/base/api/cp/commonFactory')) > -1) {
234
235
  return;
235
236
  }
236
- message.error(data.msg || '请求信息错误');
237
+ message.error(data.msg || translateLocaleText("t('common.requestInfoError')"));
237
238
  return;
238
239
  }
239
240
  }
@@ -257,18 +258,18 @@ var Http = /*#__PURE__*/function () {
257
258
  var msg;
258
259
  switch (error.response.status) {
259
260
  case 404:
260
- msg = '接口请求不存在!错误码【404】。';
261
+ msg = translateLocaleText("t('common.apiRequestNotFound404')");
261
262
  break;
262
263
  case 500:
263
- msg = '服务端应用接口异常!错误码【500】。';
264
+ msg = translateLocaleText("t('common.serverApiException500')");
264
265
  break;
265
266
  default:
266
- msg = '请求错误,请检查或刷新重试!';
267
+ msg = translateLocaleText("t('common.requestErrorRetry')");
267
268
  break;
268
269
  }
269
270
  message.error(msg);
270
271
  } else {
271
- message.error('服务不可用');
272
+ message.error(translateLocaleText("t('common.serviceUnavailable')"));
272
273
  }
273
274
  }
274
275
 
@@ -1,10 +1,11 @@
1
+ import { translateLocaleText } from "../hooks/useTranslation.ts";
1
2
  // 秒转化为时间的格式化字符串
2
3
  export function secondToFormatTime(times) {
3
4
  if (times <= 0) return '--';
4
5
  var timeStr = '';
5
6
  var remain = times;
6
7
  var days = Math.floor(remain / (24 * 60 * 60));
7
- if (days) timeStr += "".concat(days, "\u5929");
8
+ if (days) timeStr += "".concat(days).concat(translateLocaleText("t('common.unit.day')"));
8
9
  remain = remain % (24 * 60 * 60);
9
10
  var hours = Math.floor(remain / (60 * 60));
10
11
  if (hours) timeStr += "".concat(hours, "h");
@@ -42,7 +43,7 @@ export function secondToFormatTimeArray(times) {
42
43
  var days = Math.floor(remain / (24 * 60 * 60));
43
44
  if (days) timeList.push({
44
45
  value: days,
45
- unit: ''
46
+ unit: translateLocaleText("t('common.unit.day')")
46
47
  });
47
48
  remain = remain % (24 * 60 * 60);
48
49
  var hours = Math.floor(remain / (60 * 60));
@@ -69,7 +70,7 @@ export var getFieldRender = function getFieldRender(fields, info) {
69
70
  fields.forEach(function (item) {
70
71
  if ((info !== null && info !== void 0 && info[item.showKey] || item.showKey === 'tenderName') && !['address', 'divisionName', 'accUnitName', 'manageUnitName', 'description', 'panoramaLinkAddress'].includes(item.showKey)) {
71
72
  list.push({
72
- label: item.name,
73
+ label: item.showName || item.name,
73
74
  key: item.showKey,
74
75
  value: info === null || info === void 0 ? void 0 : info[item.showKey],
75
76
  componentType: item.component.type
@@ -80,7 +81,7 @@ export var getFieldRender = function getFieldRender(fields, info) {
80
81
  var _info$dataJson;
81
82
  if (['address', 'divisionName', 'accUnitName', 'manageUnitName', 'description', 'panoramaLinkAddress'].includes(item.showKey)) {
82
83
  list.push({
83
- label: item.name,
84
+ label: item.showName || item.name,
84
85
  key: item.showKey,
85
86
  value: info === null || info === void 0 ? void 0 : info[item.showKey],
86
87
  componentType: item.component.type
@@ -88,7 +89,7 @@ export var getFieldRender = function getFieldRender(fields, info) {
88
89
  } else if (info !== null && info !== void 0 && (_info$dataJson = info.dataJson) !== null && _info$dataJson !== void 0 && _info$dataJson[item.showKey]) {
89
90
  var _info$dataJson2;
90
91
  list.push({
91
- label: item.name,
92
+ label: item.showName || item.name,
92
93
  key: item.showKey,
93
94
  value: info === null || info === void 0 || (_info$dataJson2 = info.dataJson) === null || _info$dataJson2 === void 0 ? void 0 : _info$dataJson2[item.showKey],
94
95
  componentType: item.component.type