@vtx/modals2 6.0.0-beta.0 → 6.0.0-beta.10

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 (143) hide show
  1. package/lib/_components/index.js +1 -0
  2. package/lib/_components/vm-appraisal-info/api.js +55 -0
  3. package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
  4. package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
  5. package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
  6. package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
  7. package/lib/_components/vm-appraisal-info/index.js +230 -0
  8. package/lib/_components/vm-appraisal-info/index.less +7 -0
  9. package/lib/_components/vm-calendar/index.js +3 -4
  10. package/lib/_components/vm-factor/index.js +2 -1
  11. package/lib/_components/vm-filter/index.js +8 -8
  12. package/lib/_components/vm-filter/style/index.less +7 -11
  13. package/lib/_components/vm-info-collection/index.js +3 -2
  14. package/lib/_components/vm-line-charts/index.js +4 -1
  15. package/lib/_components/vm-progress/index.js +2 -1
  16. package/lib/_components/vm-repair-maintain/index.js +34 -2
  17. package/lib/_components/vm-table/index.js +3 -3
  18. package/lib/_components/vm-tag/index.js +2 -1
  19. package/lib/_components/vm-title/index.js +2 -1
  20. package/lib/_components/vm-video/HistoryGrid.js +53 -3
  21. package/lib/_components/vm-video/RealtimeGrid.js +24 -3
  22. package/lib/_components/vm-video/index.js +99 -37
  23. package/lib/_components/vm-video/index.less +18 -14
  24. package/lib/_components/vm-wrapper/index.js +1 -1
  25. package/lib/_components/vm-wrapper/style/index.less +4 -2
  26. package/lib/_hooks/useGetChannels.js +20 -6
  27. package/lib/_service/index.js +7 -33
  28. package/lib/_util/http.js +32 -5
  29. package/lib/_util/index.js +6 -5
  30. package/lib/hooks/useTranslation.js +21 -23
  31. package/lib/locales/en.json +140 -1
  32. package/lib/locales/zh-CN.json +142 -3
  33. package/lib/vtx-base-modal/Tabs/index.js +2 -1
  34. package/lib/vtx-base-modal/index.js +2 -1
  35. package/lib/vtx-car-modal/api.js +415 -25
  36. package/lib/vtx-car-modal/components/Info/index.js +1 -1
  37. package/lib/vtx-car-modal/content/Common/EleUse/index.js +218 -0
  38. package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
  39. package/lib/vtx-car-modal/content/Common/OilUse/index.js +230 -0
  40. package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
  41. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
  42. package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
  43. package/lib/vtx-car-modal/content/Common/WaterUse/index.js +201 -0
  44. package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
  45. package/lib/vtx-car-modal/content/Common/index.js +9 -1
  46. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +2 -1
  47. package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
  48. package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
  49. package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
  50. package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
  51. package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
  52. package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
  53. package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
  54. package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
  55. package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
  56. package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
  57. package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
  58. package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
  59. package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
  60. package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
  61. package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
  62. package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
  63. package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
  64. package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
  65. package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
  66. package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
  67. package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
  68. package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
  69. package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
  70. package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
  71. package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
  72. package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
  73. package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
  74. package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
  75. package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
  76. package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
  77. package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
  78. package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
  79. package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
  80. package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
  81. package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
  82. package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
  83. package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
  84. package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
  85. package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
  86. package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
  87. package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
  88. package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
  89. package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
  90. package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
  91. package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
  92. package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
  93. package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
  94. package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
  95. package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
  96. package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
  97. package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
  98. package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
  99. package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
  100. package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
  101. package/lib/vtx-car-modal/imgs/zjl.png +0 -0
  102. package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
  103. package/lib/vtx-car-modal/index.js +31 -9
  104. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +3 -3
  105. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +2 -5
  106. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +7 -1
  107. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +8 -4
  108. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
  109. package/lib/vtx-cp-modal/index.js +12 -12
  110. package/lib/vtx-default-modal/index.js +7 -6
  111. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
  112. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +2 -2
  113. package/lib/vtx-df-modal/components/WorkCondition/Table.js +2 -2
  114. package/lib/vtx-df-modal/index.js +7 -15
  115. package/lib/vtx-kh-modal/components/Record/index.js +1 -205
  116. package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -3
  117. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +50 -33
  118. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +3 -3
  119. package/lib/vtx-road-modal/components/BaseInfo/Work.js +9 -1
  120. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +8 -1
  121. package/lib/vtx-road-modal/index.js +6 -3
  122. package/lib/vtx-road-modal/utils/url.js +12 -0
  123. package/lib/vtx-shxq-modal/api.js +2 -2
  124. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +2 -2
  125. package/lib/vtx-shxq-modal/index.js +21 -4
  126. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +4 -1
  127. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
  128. package/lib/vtx-wr-modal/index.js +28 -7
  129. package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
  130. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
  131. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
  132. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
  133. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
  134. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
  135. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
  136. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
  137. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
  138. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
  139. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
  140. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
  141. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
  142. package/lib/vtx-zzz-modal/index.js +28 -22
  143. package/package.json +6 -6
@@ -1,10 +1,11 @@
1
+ import { translateLocaleText } from "../hooks/useTranslation.js";
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
@@ -10,7 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  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; }
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
- import { useIntl } from 'dumi';
14
13
  import zhCN from "../locales/zh-CN.json";
15
14
  import enUS from "../locales/en.json";
16
15
  var keyFieldMap = {
@@ -57,9 +56,9 @@ export function getTranslationKey(text) {
57
56
  return undefined;
58
57
  }
59
58
  var match = text.match(/^t\('([^']+)'\)$/);
60
- return match && match[1];
59
+ return match === null || match === void 0 ? void 0 : match[1];
61
60
  }
62
- function getHashLocale() {
61
+ function getHashLanguage() {
63
62
  if (typeof window === 'undefined') {
64
63
  return undefined;
65
64
  }
@@ -70,13 +69,13 @@ function getHashLocale() {
70
69
  }
71
70
  return new URLSearchParams(hash.slice(queryIndex + 1)).get('vtxLanguage') || undefined;
72
71
  }
73
- export function getRuntimeLocale() {
74
- var _window$localStorage, _window$localStorage2;
75
- var searchLocale = typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('vtxLanguage') : undefined;
76
- var hashLocale = getHashLocale();
77
- var storedLocale = typeof window !== 'undefined' ? ((_window$localStorage = window.localStorage) === null || _window$localStorage === void 0 ? void 0 : _window$localStorage.getItem('vtxLanguage')) || ((_window$localStorage2 = window.localStorage) === null || _window$localStorage2 === void 0 ? void 0 : _window$localStorage2.getItem('vtxLanguage')) : undefined;
78
- var locale = searchLocale || hashLocale || storedLocale;
79
- return locale === 'en-US' || locale === 'en_US' || locale === 'en-us' ? 'en-US' : 'zh-CN';
72
+ export function getRuntimeLanguage() {
73
+ var _window$localStorage;
74
+ var searchLanguage = typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('vtxLanguage') : undefined;
75
+ var hashLanguage = getHashLanguage();
76
+ var storedLanguage = typeof window !== 'undefined' ? (_window$localStorage = window.localStorage) === null || _window$localStorage === void 0 ? void 0 : _window$localStorage.getItem('vtxLanguage') : undefined;
77
+ var language = searchLanguage || hashLanguage || storedLanguage;
78
+ return language === 'en-US' || language === 'en_US' || language === 'en-us' || language === 'en' ? 'en-US' : 'zh-CN';
80
79
  }
81
80
  function formatMessage(template, values) {
82
81
  if (!values) {
@@ -98,20 +97,20 @@ export function translateLocaleText(text, values) {
98
97
  if (!key) {
99
98
  return text;
100
99
  }
101
- var locale = getRuntimeLocale();
102
- var localeData = locale === 'en-US' ? enUS : zhCN;
100
+ var language = getRuntimeLanguage();
101
+ var localeData = language === 'en-US' ? enUS : zhCN;
103
102
  return formatMessage(localeData[key] || zhCN[key] || key, values);
104
103
  }
105
104
  function applyKeyFields(source, t) {
106
105
  var next = _objectSpread({}, source);
107
- Object.entries(keyFieldMap).forEach(function (_ref) {
108
- var _ref2 = _slicedToArray(_ref, 2),
109
- keyField = _ref2[0],
110
- targetField = _ref2[1];
106
+ for (var _i = 0, _Object$entries = Object.entries(keyFieldMap); _i < _Object$entries.length; _i++) {
107
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
108
+ keyField = _Object$entries$_i[0],
109
+ targetField = _Object$entries$_i[1];
111
110
  if (typeof source[keyField] === 'string' && source[keyField]) {
112
111
  next[targetField] = translationByKey(source[keyField], t);
113
112
  }
114
- });
113
+ }
115
114
  return next;
116
115
  }
117
116
  function _translationConst(lists, t) {
@@ -193,19 +192,18 @@ function _translationConst(lists, t) {
193
192
  return loopOptions(lists);
194
193
  }
195
194
  export { _translationConst as translationConst };
196
- export function getT(intl) {
195
+ export function getT() {
197
196
  var t = function t(id, values) {
198
- return intl.formatMessage({
199
- id: id
200
- }, values);
197
+ var language = getRuntimeLanguage();
198
+ var localeData = language === 'en-US' ? enUS : zhCN;
199
+ return formatMessage(localeData[id] || zhCN[id] || id, values);
201
200
  };
202
201
  return {
203
202
  t: t
204
203
  };
205
204
  }
206
205
  export function useTranslation() {
207
- var intl = useIntl();
208
- var _getT = getT(intl),
206
+ var _getT = getT(),
209
207
  t = _getT.t;
210
208
  return {
211
209
  t: t,
@@ -1373,5 +1373,144 @@
1373
1373
  "vtxjzljxncmodal.constructionWasteCategory": "Construction Waste Category",
1374
1374
  "vtxjzljxncmodal.totalTrips": "Total Trips",
1375
1375
  "vtxjzljxncmodal.disposalCertificateCode": "Disposal Certificate No.",
1376
- "vtxjzljxncmodal.jointOrderOperation": "Joint Order Operation"
1376
+ "vtxjzljxncmodal.jointOrderOperation": "Joint Order Operation",
1377
+ "vtxcarmodal.statisticalScope": "Statistical Scope",
1378
+ "vtxcarmodal.waterRefuelTime": "Water Refilling Time",
1379
+ "vtxcarmodal.waterRefuelType": "Water Refilling Type",
1380
+ "vtxcarmodal.waterRefuelPoint": "Water Refilling Point",
1381
+ "vtxcarmodal.waterRefuelAmountM3": "Water Refilling Amount (m3)",
1382
+ "vtxcarmodal.waterRefuelAmount": "Water Refilling Amount",
1383
+ "vtxcarmodal.waterRefuelMoney": "Water Refilling Amount",
1384
+ "vtxcarmodal.waterRefuelMoneyYuan": "Water Refilling Amount (Yuan)",
1385
+ "vtxcarmodal.waterRefuelSummary": "Water Refilling Summary",
1386
+ "vtxcarmodal.waterRefuelCount": "Water Refilling Count",
1387
+ "vtxcarmodal.waterRefuelFrequency": "Water Refilling Frequency",
1388
+ "vtxcarmodal.waterCost": "Water Cost",
1389
+ "vtxcarmodal.waterRefuelTypeAnalysis": "Water Refilling Type Analysis",
1390
+ "vtxcarmodal.waterRefuelDetail": "Water Refilling Details",
1391
+ "vtxcarmodal.oilRefuelTime": "Refueling Time",
1392
+ "vtxcarmodal.oilRefuelPoint": "Refueling Point",
1393
+ "vtxcarmodal.oilProduct": "Oil Product",
1394
+ "vtxcarmodal.oilRefuelAmountL": "Refueling Amount (L)",
1395
+ "vtxcarmodal.totalPriceYuan": "Total Price (Yuan)",
1396
+ "vtxcarmodal.mileageKm": "Mileage (km)",
1397
+ "vtxcarmodal.oilRefuelSummary": "Refueling Summary",
1398
+ "vtxcarmodal.oilRefuelCount": "Refueling Count",
1399
+ "vtxcarmodal.oilRefuelAmount": "Refueling Amount",
1400
+ "vtxcarmodal.oilRefuelMoney": "Refueling Amount",
1401
+ "vtxcarmodal.fuelConsumptionPer100Km": "Fuel Consumption per 100 km",
1402
+ "vtxcarmodal.oilCost": "Fuel Cost",
1403
+ "vtxcarmodal.oilRefuelTimePreferenceAnalysis": "Refueling Time Preference Analysis",
1404
+ "vtxcarmodal.oilRefuelDetail": "Refueling Details",
1405
+ "vtxcarmodal.chargeTime": "Charging Time",
1406
+ "vtxcarmodal.chargeLocation": "Charging Location",
1407
+ "vtxcarmodal.chargeMoneyYuan": "Charging Amount (Yuan)",
1408
+ "vtxcarmodal.chargeSummary": "Charging Summary",
1409
+ "vtxcarmodal.chargeCount": "Charging Count",
1410
+ "vtxcarmodal.chargeMoney": "Charging Amount",
1411
+ "vtxcarmodal.singleChargeMoney": "Single Charging Amount",
1412
+ "vtxcarmodal.chargeFrequency": "Charging Frequency",
1413
+ "vtxcarmodal.electricCost": "Electricity Cost",
1414
+ "vtxcarmodal.chargeTimePreferenceAnalysis": "Charging Time Preference Analysis",
1415
+ "vtxcarmodal.chargeDetail": "Charging Details",
1416
+ "vtxcarmodal.insuranceType": "Insurance Type",
1417
+ "vtxcarmodal.insuredAmountYuan": "Insured Amount (Yuan)",
1418
+ "vtxcarmodal.expirationTime": "Expiration Time",
1419
+ "vtxcarmodal.remainingDaysDays": "Remain Days (days)",
1420
+ "vtxcarmodal.purchaseAmount": "Purchase Amount",
1421
+ "vtxcarmodal.depreciatedAmount": "Depreciated Amount",
1422
+ "vtxcarmodal.remainingDepreciationAmount": "Remain Depreciation Amount",
1423
+ "vtxcarmodal.insuranceInformation": "Insurance Information",
1424
+ "vtxcarmodal.compulsoryInsuranceTotalAmount": "Compulsory Insurance Total Amount",
1425
+ "vtxcarmodal.commercialInsuranceTotalAmount": "Commercial Insurance Total Amount",
1426
+ "vtxcarmodal.annualInspectionInformation": "Annual Inspection Information",
1427
+ "vtxcarmodal.annualInspectionTotalFee": "Annual Inspection Total Fee",
1428
+ "vtxcarmodal.currentAnnualInspection": "Current Annual Inspection",
1429
+ "vtxcarmodal.annualInspectionDate": "Annual Inspection Date",
1430
+ "vtxcarmodal.annualInspectionFeeYuan": "Annual Inspection Fee (Yuan)",
1431
+ "vtxcarmodal.cumulativeMaintenanceCount": "Cumulative Maintenance Count",
1432
+ "vtxcarmodal.maintenanceTotalFee": "Maintenance Total Fee",
1433
+ "vtxcarmodal.typeAnalysis": "Type Analysis",
1434
+ "vtxcarmodal.depreciationInformation": "Depreciation Information",
1435
+ "vtxcarmodal.residualValueRatio": "Residual Value Ratio",
1436
+ "vtxcarmodal.depreciationRate": "Depreciation Rate",
1437
+ "vtxcarmodal.accidentInformation": "Accident Information",
1438
+ "vtxcarmodal.accidentCount": "Accident Count",
1439
+ "vtxcarmodal.accidentFee": "Accident Fee",
1440
+ "vtxcarmodal.accidentTypeAnalysis": "Accident Type Analysis",
1441
+ "vtxcarmodal.violationInformation": "Violation Information",
1442
+ "vtxcarmodal.violationCount": "Violation Count",
1443
+ "vtxcarmodal.violationDeduction": "Violation Deduction",
1444
+ "vtxcarmodal.violationFee": "Violation Fee",
1445
+ "vtxcarmodal.violationTypeAnalysis": "Violation Type Analysis",
1446
+ "common.unit.times": "Times",
1447
+ "common.unit.yuan": "Yuan",
1448
+ "common.unit.yuanPerKm": "Yuan/km",
1449
+ "common.unit.yuanPerTimes": "Yuan/time",
1450
+ "common.unit.dayPerTimes": "Days/time",
1451
+ "common.unit.score": "Points",
1452
+ "common.requestInfoError": "Request information error",
1453
+ "common.apiRequestNotFound404": "API request not found. Error code [404].",
1454
+ "common.serverApiException500": "Server API exception. Error code [500].",
1455
+ "common.requestErrorRetry": "Request error. Check or refresh and try again.",
1456
+ "common.serviceUnavailable": "Service unavailable",
1457
+ "common.unit.bucket": "bucket",
1458
+ "common.value.yuan": "{value} Yuan",
1459
+ "common.value.yuanPerYear": "{value} Yuan/year",
1460
+ "common.value.yuanPerTon": "{value} Yuan/ton",
1461
+ "common.value.yuanPerTimes": "{value} Yuan/time",
1462
+ "common.value.days": "{value} days",
1463
+ "common.value.count": "{value}",
1464
+ "vtxbasemodal.vehicleTrack": "Vehicle Track",
1465
+ "vtxbasemodal.personTrack": "Personnel Track",
1466
+ "vtxcarmodal.waterUseInformation": "Water Use Information",
1467
+ "vtxcarmodal.eleUseInformation": "Electricity Use Information",
1468
+ "vtxcarmodal.oilUseInformation": "Refueling Information",
1469
+ "_components.chart": "Chart",
1470
+ "_components.comparedWithYesterday": "Compared with yesterday",
1471
+ "_components.effectiveOperationRate": "Effective Operation Rate",
1472
+ "_components.basicInformation": "Basic Information",
1473
+ "vtxrestaurantmodal.collected": "Collected",
1474
+ "vtxrestaurantmodal.notCollected": "Not Collected",
1475
+ "vtxrestaurantmodal.transportVolume": "Transport Volume",
1476
+ "vtxrestaurantmodal.signingInformation": "Signing Information",
1477
+ "vtxrestaurantmodal.contractInformation": "Contract Information",
1478
+ "vtxrestaurantmodal.contractNumber": "Contract Number",
1479
+ "vtxrestaurantmodal.transportVolumeWeekMonthValue": "{week} kg/week, {month}",
1480
+ "vtxrestaurantmodal.transportVolumeDayValue": "{day} kg/day",
1481
+ "vtxrestaurantmodal.paymentMethod": "Payment Method",
1482
+ "vtxrestaurantmodal.contractAmount": "Contract Amount",
1483
+ "vtxrestaurantmodal.firstPartyClassificationPenalty": "First Party Classification Penalty",
1484
+ "vtxrestaurantmodal.agreementViolationTerminationPeriod": "Agreement Violation Termination Period",
1485
+ "vtxrestaurantmodal.capacity": "Capacity",
1486
+ "vtxrestaurantmodal.bucketCount": "Bucket Count",
1487
+ "vtxrestaurantmodal.freeBucketConfiguration": "Free Bucket Configuration",
1488
+ "vtxrestaurantmodal.deposit": "Deposit",
1489
+ "vtxrestaurantmodal.smallBucketConfiguration": "Small Bucket Configuration",
1490
+ "vtxrestaurantmodal.firstPartyInformation": "First Party Information",
1491
+ "vtxrestaurantmodal.secondPartyInformation": "Second Party Information",
1492
+ "vtxrestaurantmodal.signature": "Signature",
1493
+ "vtxrestaurantmodal.signatureSeal": "Signature Seal",
1494
+ "vtxrestaurantmodal.legalRepresentative": "Legal Representative",
1495
+ "vtxrestaurantmodal.authorizedAgent": "Authorized Agent",
1496
+ "vtxrestaurantmodal.contactPhone": "Contact Phone",
1497
+ "common.unit.day": "d",
1498
+ "vtxzfmodal.ck.attribute": "Attribute",
1499
+ "vtxzfmodal.ck.style": "Style",
1500
+ "vtxzfmodal.ck.fieldName": "Field Name",
1501
+ "vtxzfmodal.ck.field": "Field",
1502
+ "vtxzfmodal.ck.orderNo": "Order No.",
1503
+ "vtxzfmodal.ck.width": "Width",
1504
+ "vtxzfmodal.ck.dataSource": "Data Source",
1505
+ "vtxzfmodal.ck.text": "Text",
1506
+ "vtxzfmodal.ck.textInput": "Text Input",
1507
+ "vtxzfmodal.ck.date": "Date",
1508
+ "vtxzfmodal.ck.textarea": "Textarea",
1509
+ "vtxzfmodal.ck.radio": "Radio",
1510
+ "vtxzfmodal.ck.checkbox": "Checkbox",
1511
+ "vtxzfmodal.ck.editableText": "Editable Text",
1512
+ "vtxzfmodal.ck.signatureImage": "Signature Image",
1513
+ "vtxzfmodal.ck.signDefaultWord": "Sign",
1514
+ "common.placeholder.inputWithLabel": "Please enter {label}",
1515
+ "vtxrestaurantmodal.contactPerson": "Contact Person"
1377
1516
  }
@@ -1012,7 +1012,7 @@
1012
1012
  "vtxcarmodal.year2": "年度维保预算(元)",
1013
1013
  "vtxcarmodal.year3": "年度累计维保金额(元)",
1014
1014
  "vtxcarmodal.day": "每日油耗",
1015
- "vtxcarmodal.day2": "每日里程",
1015
+ "vtxcarmodal.day2": "行驶里程",
1016
1016
  "vtxcarmodal.l": "总油耗(L)",
1017
1017
  "vtxcarmodal.l2": "百公里油耗(L)",
1018
1018
  "vtxcarmodal.timesPointHours": "首次点火时间",
@@ -1089,7 +1089,7 @@
1089
1089
  "vtxcarmodal.jointOrderInformation": "联单信息",
1090
1090
  "vtxcarmodal.statisticsInformation": "统计信息",
1091
1091
  "vtxcarmodal.factoryInformation": "进厂信息",
1092
- "vtxcarmodal.operationInformation": "运行信息",
1092
+ "vtxcarmodal.operationInformation": "运营信息",
1093
1093
  "vtxcarmodal.drivingMileage": "行驶里程",
1094
1094
  "vtxcarmodal.belongUnit": "所属单位",
1095
1095
  "vtxcarmodal.useUnit": "使用单位",
@@ -1373,5 +1373,144 @@
1373
1373
  "vtxjzljxncmodal.constructionWasteCategory": "建筑垃圾类别",
1374
1374
  "vtxjzljxncmodal.totalTrips": "总车次",
1375
1375
  "vtxjzljxncmodal.disposalCertificateCode": "处置证编号",
1376
- "vtxjzljxncmodal.jointOrderOperation": "联单运行情况"
1376
+ "vtxjzljxncmodal.jointOrderOperation": "联单运行情况",
1377
+ "vtxcarmodal.statisticalScope": "统计范围",
1378
+ "vtxcarmodal.waterRefuelTime": "加水时间",
1379
+ "vtxcarmodal.waterRefuelType": "加水类型",
1380
+ "vtxcarmodal.waterRefuelPoint": "加水点",
1381
+ "vtxcarmodal.waterRefuelAmountM3": "加水量(m³)",
1382
+ "vtxcarmodal.waterRefuelAmount": "加水量",
1383
+ "vtxcarmodal.waterRefuelMoney": "加水金额",
1384
+ "vtxcarmodal.waterRefuelMoneyYuan": "加水金额(元)",
1385
+ "vtxcarmodal.waterRefuelSummary": "加水汇总",
1386
+ "vtxcarmodal.waterRefuelCount": "加水次数",
1387
+ "vtxcarmodal.waterRefuelFrequency": "加水频次",
1388
+ "vtxcarmodal.waterCost": "用水成本",
1389
+ "vtxcarmodal.waterRefuelTypeAnalysis": "加水类型分析",
1390
+ "vtxcarmodal.waterRefuelDetail": "加水明细",
1391
+ "vtxcarmodal.oilRefuelTime": "加油时间",
1392
+ "vtxcarmodal.oilRefuelPoint": "加油点",
1393
+ "vtxcarmodal.oilProduct": "油品",
1394
+ "vtxcarmodal.oilRefuelAmountL": "加油量(L)",
1395
+ "vtxcarmodal.totalPriceYuan": "总价(元)",
1396
+ "vtxcarmodal.mileageKm": "里程数(km)",
1397
+ "vtxcarmodal.oilRefuelSummary": "加油汇总",
1398
+ "vtxcarmodal.oilRefuelCount": "加油次数",
1399
+ "vtxcarmodal.oilRefuelAmount": "加油量",
1400
+ "vtxcarmodal.oilRefuelMoney": "加油金额",
1401
+ "vtxcarmodal.fuelConsumptionPer100Km": "百公里油耗",
1402
+ "vtxcarmodal.oilCost": "油耗成本",
1403
+ "vtxcarmodal.oilRefuelTimePreferenceAnalysis": "加油时段偏好分析",
1404
+ "vtxcarmodal.oilRefuelDetail": "加油明细",
1405
+ "vtxcarmodal.chargeTime": "充电时间",
1406
+ "vtxcarmodal.chargeLocation": "充电地点",
1407
+ "vtxcarmodal.chargeMoneyYuan": "充电金额(元)",
1408
+ "vtxcarmodal.chargeSummary": "充电汇总",
1409
+ "vtxcarmodal.chargeCount": "充电次数",
1410
+ "vtxcarmodal.chargeMoney": "充电金额",
1411
+ "vtxcarmodal.singleChargeMoney": "单次充电金额",
1412
+ "vtxcarmodal.chargeFrequency": "充电频次",
1413
+ "vtxcarmodal.electricCost": "用电成本",
1414
+ "vtxcarmodal.chargeTimePreferenceAnalysis": "充电时段偏好分析",
1415
+ "vtxcarmodal.chargeDetail": "充电明细",
1416
+ "vtxcarmodal.insuranceType": "保险类型",
1417
+ "vtxcarmodal.insuredAmountYuan": "投保金额(元)",
1418
+ "vtxcarmodal.expirationTime": "到期时间",
1419
+ "vtxcarmodal.remainingDaysDays": "剩余天数(天)",
1420
+ "vtxcarmodal.purchaseAmount": "购置金额",
1421
+ "vtxcarmodal.depreciatedAmount": "已折旧金额",
1422
+ "vtxcarmodal.remainingDepreciationAmount": "剩余折旧金额",
1423
+ "vtxcarmodal.insuranceInformation": "投保信息",
1424
+ "vtxcarmodal.compulsoryInsuranceTotalAmount": "强制险总金额",
1425
+ "vtxcarmodal.commercialInsuranceTotalAmount": "商业险总金额",
1426
+ "vtxcarmodal.annualInspectionInformation": "年检信息",
1427
+ "vtxcarmodal.annualInspectionTotalFee": "年检总费用",
1428
+ "vtxcarmodal.currentAnnualInspection": "当前年检",
1429
+ "vtxcarmodal.annualInspectionDate": "年检日期",
1430
+ "vtxcarmodal.annualInspectionFeeYuan": "年检费用(元)",
1431
+ "vtxcarmodal.cumulativeMaintenanceCount": "累计维保次数",
1432
+ "vtxcarmodal.maintenanceTotalFee": "维保总费用",
1433
+ "vtxcarmodal.typeAnalysis": "类型分析",
1434
+ "vtxcarmodal.depreciationInformation": "折旧信息",
1435
+ "vtxcarmodal.residualValueRatio": "残值比",
1436
+ "vtxcarmodal.depreciationRate": "折旧率",
1437
+ "vtxcarmodal.accidentInformation": "事故信息",
1438
+ "vtxcarmodal.accidentCount": "事故次数",
1439
+ "vtxcarmodal.accidentFee": "事故费用",
1440
+ "vtxcarmodal.accidentTypeAnalysis": "事故类型分析",
1441
+ "vtxcarmodal.violationInformation": "违章信息",
1442
+ "vtxcarmodal.violationCount": "违章次数",
1443
+ "vtxcarmodal.violationDeduction": "违章扣分",
1444
+ "vtxcarmodal.violationFee": "违章扣费",
1445
+ "vtxcarmodal.violationTypeAnalysis": "违章类型分析",
1446
+ "common.unit.times": "次",
1447
+ "common.unit.yuan": "元",
1448
+ "common.unit.yuanPerKm": "元/km",
1449
+ "common.unit.yuanPerTimes": "元/次",
1450
+ "common.unit.dayPerTimes": "天/次",
1451
+ "common.unit.score": "分",
1452
+ "common.requestInfoError": "请求信息错误",
1453
+ "common.apiRequestNotFound404": "接口请求不存在!错误码【404】。",
1454
+ "common.serverApiException500": "服务端应用接口异常!错误码【500】。",
1455
+ "common.requestErrorRetry": "请求错误,请检查或刷新重试!",
1456
+ "common.serviceUnavailable": "服务不可用",
1457
+ "common.unit.bucket": "桶",
1458
+ "common.value.yuan": "{value}元",
1459
+ "common.value.yuanPerYear": "{value}元/年",
1460
+ "common.value.yuanPerTon": "{value}元/吨",
1461
+ "common.value.yuanPerTimes": "{value}元/次",
1462
+ "common.value.days": "{value}天",
1463
+ "common.value.count": "{value}个",
1464
+ "vtxbasemodal.vehicleTrack": "车辆轨迹",
1465
+ "vtxbasemodal.personTrack": "人员轨迹",
1466
+ "vtxcarmodal.waterUseInformation": "用水信息",
1467
+ "vtxcarmodal.eleUseInformation": "用电信息",
1468
+ "vtxcarmodal.oilUseInformation": "加油信息",
1469
+ "_components.chart": "图表",
1470
+ "_components.comparedWithYesterday": "与昨日比",
1471
+ "_components.effectiveOperationRate": "有效作业率",
1472
+ "_components.basicInformation": "基本信息",
1473
+ "vtxrestaurantmodal.collected": "已收集",
1474
+ "vtxrestaurantmodal.notCollected": "未收集",
1475
+ "vtxrestaurantmodal.transportVolume": "运输量",
1476
+ "vtxrestaurantmodal.signingInformation": "签约信息",
1477
+ "vtxrestaurantmodal.contractInformation": "合同信息",
1478
+ "vtxrestaurantmodal.contractNumber": "合同编号",
1479
+ "vtxrestaurantmodal.transportVolumeWeekMonthValue": "{week}公斤/周,{month}",
1480
+ "vtxrestaurantmodal.transportVolumeDayValue": "{day}公斤/天",
1481
+ "vtxrestaurantmodal.paymentMethod": "费用支付方式",
1482
+ "vtxrestaurantmodal.contractAmount": "签约金额",
1483
+ "vtxrestaurantmodal.firstPartyClassificationPenalty": "甲方未按规定分类违约金",
1484
+ "vtxrestaurantmodal.agreementViolationTerminationPeriod": "协议违反解约期限",
1485
+ "vtxrestaurantmodal.capacity": "容量",
1486
+ "vtxrestaurantmodal.bucketCount": "桶数",
1487
+ "vtxrestaurantmodal.freeBucketConfiguration": "免费桶配置",
1488
+ "vtxrestaurantmodal.deposit": "押金",
1489
+ "vtxrestaurantmodal.smallBucketConfiguration": "配小桶",
1490
+ "vtxrestaurantmodal.firstPartyInformation": "甲方信息",
1491
+ "vtxrestaurantmodal.secondPartyInformation": "乙方信息",
1492
+ "vtxrestaurantmodal.signature": "签字",
1493
+ "vtxrestaurantmodal.signatureSeal": "签章",
1494
+ "vtxrestaurantmodal.legalRepresentative": "法定代表人",
1495
+ "vtxrestaurantmodal.authorizedAgent": "委托代理人",
1496
+ "vtxrestaurantmodal.contactPhone": "联系电话",
1497
+ "common.unit.day": "天",
1498
+ "vtxzfmodal.ck.attribute": "属性",
1499
+ "vtxzfmodal.ck.style": "样式",
1500
+ "vtxzfmodal.ck.fieldName": "字段名",
1501
+ "vtxzfmodal.ck.field": "字段",
1502
+ "vtxzfmodal.ck.orderNo": "排序号",
1503
+ "vtxzfmodal.ck.width": "宽度",
1504
+ "vtxzfmodal.ck.dataSource": "数据源",
1505
+ "vtxzfmodal.ck.text": "文字",
1506
+ "vtxzfmodal.ck.textInput": "文本框",
1507
+ "vtxzfmodal.ck.date": "日期",
1508
+ "vtxzfmodal.ck.textarea": "文本域",
1509
+ "vtxzfmodal.ck.radio": "单选框",
1510
+ "vtxzfmodal.ck.checkbox": "复选框",
1511
+ "vtxzfmodal.ck.editableText": "可编辑文本",
1512
+ "vtxzfmodal.ck.signatureImage": "签名图片",
1513
+ "vtxzfmodal.ck.signDefaultWord": "签",
1514
+ "common.placeholder.inputWithLabel": "请输入{label}",
1515
+ "vtxrestaurantmodal.contactPerson": "联系人"
1377
1516
  }
@@ -124,7 +124,8 @@ var Tabs = function Tabs(props) {
124
124
  children: tabs.map(function (tab, index) {
125
125
  var width = 26,
126
126
  height = 26;
127
- var ComponentIcon = iconRender[tab.key] || SummaryIcon;
127
+ var suffixKey = "".concat(tab.key || '').split('-').slice(1).join('-');
128
+ var ComponentIcon = iconRender[tab.key] || iconRender[suffixKey] || SummaryIcon;
128
129
  return /*#__PURE__*/_jsxs("div", {
129
130
  onClick: function onClick() {
130
131
  onChange(tab.key);
@@ -20,6 +20,7 @@ import VmHeader from "./Header";
20
20
  import { getTenantById, getUmsConfig } from "./service";
21
21
  import "./style";
22
22
  import VmTabs from "./Tabs";
23
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
23
24
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
25
  var getTabContent = function getTabContent(contents, tabKey) {
25
26
  if (!tabKey) {
@@ -184,7 +185,7 @@ var VmBaseModal = function VmBaseModal(props) {
184
185
  }
185
186
  }
186
187
  setIframeModalInfo({
187
- title: type === 'car' ? '车辆轨迹' : '人员轨迹',
188
+ title: type === 'car' ? translateLocaleText("t('vtxbasemodal.vehicleTrack')") : translateLocaleText("t('vtxbasemodal.personTrack')"),
188
189
  visible: true,
189
190
  src: src
190
191
  });