@vtx/modals2 5.0.4 → 5.0.6

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 (104) hide show
  1. package/lib/_components/vm-bar-charts/index.js +9 -5
  2. package/lib/_components/vm-extra-tab/style/index.less +6 -3
  3. package/lib/_components/vm-map/index.js +1 -1
  4. package/lib/_components/vm-pie-charts/index.js +3 -1
  5. package/lib/_components/vm-tag/style/index.less +1 -0
  6. package/lib/_components/vm-video/HistoryGrid.js +52 -0
  7. package/lib/_components/vm-video/RealtimeGrid.js +8 -4
  8. package/lib/_components/vm-video/index.js +298 -112
  9. package/lib/_components/vm-video/index.less +10 -1
  10. package/lib/_service/index.js +5 -0
  11. package/lib/_util/index.js +0 -5
  12. package/lib/vtx-base-modal/Header/index.js +3 -1
  13. package/lib/vtx-base-modal/index.js +6 -3
  14. package/lib/vtx-car-modal/components/Info/index.js +2 -1
  15. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
  16. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +131 -104
  17. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +206 -158
  18. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +19 -4
  19. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
  20. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
  21. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
  22. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
  23. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
  24. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
  25. package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
  26. package/lib/vtx-car-modal/content/index.js +2 -1
  27. package/lib/vtx-car-modal/imgs/butter.png +0 -0
  28. package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
  29. package/lib/vtx-car-modal/imgs/clock.png +0 -0
  30. package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
  31. package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
  32. package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
  33. package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
  34. package/lib/vtx-car-modal/imgs/track.png +0 -0
  35. package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
  36. package/lib/vtx-car-modal/imgs/track_green.png +0 -0
  37. package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
  38. package/lib/vtx-car-modal/imgs/water.png +0 -0
  39. package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
  40. package/lib/vtx-car-modal/index.js +9 -3
  41. package/lib/vtx-default-modal/components/BaseInfo/index.js +6 -3
  42. package/lib/vtx-default-modal/index.js +9 -6
  43. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +0 -1
  44. package/lib/vtx-df-modal/index.js +0 -2
  45. package/lib/vtx-housing-estate-modal/api.js +559 -0
  46. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
  47. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
  48. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
  49. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
  50. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
  51. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
  52. package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
  53. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
  54. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
  55. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
  56. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
  57. package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
  58. package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
  59. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
  60. package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
  61. package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
  62. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
  63. package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
  64. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
  65. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
  66. package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
  67. package/lib/vtx-housing-estate-modal/components/index.js +5 -0
  68. package/lib/vtx-housing-estate-modal/config.js +77 -0
  69. package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
  70. package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
  71. package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
  72. package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
  73. package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
  74. package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
  75. package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
  76. package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
  77. package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
  78. package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
  79. package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
  80. package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
  81. package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
  82. package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
  83. package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
  84. package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
  85. package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
  86. package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
  87. package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
  88. package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
  89. package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
  90. package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
  91. package/lib/vtx-housing-estate-modal/index.js +108 -0
  92. package/lib/vtx-housing-estate-modal/style/index.js +4 -0
  93. package/lib/vtx-housing-estate-modal/style/index.less +1 -0
  94. package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
  95. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  96. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
  97. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +15 -5
  98. package/lib/vtx-staff-modal/index.js +4 -1
  99. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -8
  100. package/lib/vtx-zg-modal/components/BaseInfo/index.js +0 -1
  101. package/package.json +1 -1
  102. package/lib/resources/jessibuca/decoder.js +0 -3839
  103. package/lib/resources/jessibuca/decoder.wasm +0 -0
  104. package/lib/resources/jessibuca/jessibuca.js +0 -5350
@@ -33,7 +33,8 @@ var WorkRecord = function WorkRecord() {
33
33
  id = _useContext.id,
34
34
  sDate = _useContext.startDate,
35
35
  eDate = _useContext.endDate,
36
- service = _useContext.service;
36
+ service = _useContext.service,
37
+ info = _useContext.info;
37
38
  var _useSetState = useSetState({
38
39
  startDate: sDate ? sDate : dayjs().subtract(6, 'day'),
39
40
  endDate: eDate ? eDate : dayjs(),
@@ -239,10 +240,24 @@ var WorkRecord = function WorkRecord() {
239
240
  flex: '108px',
240
241
  children: /*#__PURE__*/_jsx(VmProgress.Circle, {
241
242
  rate: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.workRate) || 0,
242
- name: '有效作业率'
243
+ name: '有效作业率',
244
+ strokeColor: isDark ? {
245
+ '0%': '#009DFF',
246
+ '100%': '#44FF98'
247
+ } : {
248
+ '0%': '#1677FF',
249
+ '100%': '#48A2FF'
250
+ }
243
251
  })
244
252
  }), /*#__PURE__*/_jsxs(Col, {
245
- children: [/*#__PURE__*/_jsx(VmFactor, {
253
+ children: [(info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' && /*#__PURE__*/_jsx(VmFactor, {
254
+ name: '规划里程',
255
+ unit: 'km',
256
+ type: 'sm',
257
+ value: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.planMileage) || 0,
258
+ fontType: 'blue',
259
+ img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png")
260
+ }), /*#__PURE__*/_jsx(VmFactor, {
246
261
  name: '行驶里程',
247
262
  unit: 'km',
248
263
  type: 'sm',
@@ -261,7 +276,7 @@ var WorkRecord = function WorkRecord() {
261
276
  })
262
277
  }), /*#__PURE__*/_jsx(Col, {
263
278
  span: 12,
264
- children: extraData !== null && extraData > 0 ? /*#__PURE__*/_jsx(VmLineCharts, {
279
+ children: extraData !== null && extraData > 0 || (info === null || info === void 0 ? void 0 : info.driveMode) === 'unmanned' ? /*#__PURE__*/_jsx(VmLineCharts, {
265
280
  xAxis: names,
266
281
  unit: "%",
267
282
  dataList: [{
@@ -0,0 +1,33 @@
1
+ import { VmBarCharts } from "../../../../_components";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default function (props) {
4
+ return /*#__PURE__*/_jsx(VmBarCharts, {
5
+ dataList: [{
6
+ name: '规划里程',
7
+ data: [20, 50, 63, 51, 23],
8
+ yAxisIndex: 0,
9
+ color: 'geekblue'
10
+ }, {
11
+ name: '核算作业里程',
12
+ data: [20, 50, 63, 51, 23],
13
+ yAxisIndex: 0,
14
+ color: 'green'
15
+ }],
16
+ lineList: [{
17
+ name: '总电耗',
18
+ data: [2, 2, 4, 1, 5],
19
+ yAxisIndex: 1,
20
+ color: '#FFAB0C'
21
+ }],
22
+ xAxis: [1, 2, 3, 4, 5],
23
+ yAxisList: [{
24
+ unit: 'km',
25
+ name: '(km)'
26
+ }, {
27
+ unit: 'kwh',
28
+ name: '(kwh)'
29
+ }]
30
+
31
+ // loading={loadingJxh}
32
+ });
33
+ }
@@ -0,0 +1,255 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ 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; }
13
+ import { QuestionCircleOutlined } from '@ant-design/icons';
14
+ import { Space, Tooltip } from 'antd';
15
+ import { VmBarCharts, VmCalendar, VmCalendarInner, VmCalendarPercent, VmTable } from "../../../../_components";
16
+ import useSettings from "../../../../_hooks/useSettings";
17
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
18
+ var butter_dark = require("../../../imgs/butter_dark.png");
19
+ var butter = require("../../../imgs/butter.png");
20
+ var water_dark = require("../../../imgs/water_dark.png");
21
+ var water = require("../../../imgs/water.png");
22
+ var track_dark = require("../../../imgs/track_dark.png");
23
+ var track = require("../../../imgs/track.png");
24
+ export default function (_ref) {
25
+ var id = _ref.id,
26
+ month = _ref.month,
27
+ type = _ref.type,
28
+ legend = _ref.legend,
29
+ getRateColor = _ref.getRateColor,
30
+ _ref$baseColumns = _ref.baseColumns,
31
+ baseColumns = _ref$baseColumns === void 0 ? [] : _ref$baseColumns;
32
+ var _useSettings = useSettings(),
33
+ isDark = _useSettings.isDark,
34
+ chartFontColor = _useSettings.chartFontColor;
35
+ var dateCellRender = function dateCellRender(value) {
36
+ // const date = dayjs(value).format('YYYY-MM-DD');
37
+ // const item = keyByDate[date];
38
+ // if (!item) {
39
+ // return null;
40
+ // }
41
+ // const { percent, driveMileage, workMileage } = item;
42
+ var percent = 50;
43
+ var color = getRateColor(percent);
44
+ return /*#__PURE__*/_jsxs(_Fragment, {
45
+ children: [/*#__PURE__*/_jsx(VmCalendarPercent, {
46
+ percent: percent,
47
+ color: color
48
+ }), /*#__PURE__*/_jsx(VmCalendarInner, {
49
+ type: "blue",
50
+ img: isDark ? track_dark : track,
51
+ value: "0/0",
52
+ style: {
53
+ width: '139px',
54
+ justifyContent: 'space-between',
55
+ margin: '4px 0'
56
+ }
57
+ }), /*#__PURE__*/_jsx(VmCalendarInner, {
58
+ type: "yellow",
59
+ img: isDark ? butter_dark : butter,
60
+ value: 0,
61
+ style: {
62
+ width: '139px',
63
+ justifyContent: 'space-between',
64
+ margin: '4px 0'
65
+ }
66
+ }), /*#__PURE__*/_jsx(VmCalendarInner, {
67
+ type: "green",
68
+ img: isDark ? water_dark : water,
69
+ value: 0,
70
+ style: {
71
+ width: '139px',
72
+ justifyContent: 'space-between'
73
+ }
74
+ })]
75
+ });
76
+ };
77
+ var tableProps = {
78
+ pagination: false,
79
+ dataSource: []
80
+ };
81
+ var columns = [].concat(_toConsumableArray(baseColumns), [{
82
+ title: /*#__PURE__*/_jsxs(Space, {
83
+ children: [/*#__PURE__*/_jsx("span", {
84
+ children: "\u5B8C\u6210\u7387"
85
+ }), /*#__PURE__*/_jsx(Tooltip, {
86
+ title: "\u6838\u7B97\u4F5C\u4E1A\u91CC\u7A0B/\u884C\u9A76\u91CC\u7A0B",
87
+ children: /*#__PURE__*/_jsx(QuestionCircleOutlined, {})
88
+ })]
89
+ }),
90
+ dataIndex: 'percent',
91
+ key: 'percent',
92
+ render: function render(text) {
93
+ return /*#__PURE__*/_jsx("span", {
94
+ children: (text || 0) + '%'
95
+ });
96
+ },
97
+ align: 'right',
98
+ width: 100
99
+ }, {
100
+ title: '总电耗(kwh)',
101
+ dataIndex: 'butter',
102
+ key: 'butter',
103
+ align: 'right',
104
+ width: 100
105
+ }, {
106
+ title: '总水耗(L)',
107
+ dataIndex: 'water',
108
+ key: 'water',
109
+ align: 'right',
110
+ width: 100
111
+ }]);
112
+ return /*#__PURE__*/_jsxs(_Fragment, {
113
+ children: [type === 'calendar' && /*#__PURE__*/_jsxs(_Fragment, {
114
+ children: [/*#__PURE__*/_jsxs("div", {
115
+ className: 'vtx-car-calendar-head',
116
+ children: [[{
117
+ name: '总电耗(kwh)',
118
+ img: isDark ? butter_dark : butter,
119
+ type: 'yellow'
120
+ }, {
121
+ name: '总水耗(L)',
122
+ img: isDark ? water_dark : water,
123
+ type: 'green'
124
+ }, {
125
+ name: '核算作业里程/行驶里程(km)',
126
+ img: isDark ? track_dark : track,
127
+ type: 'blue'
128
+ }].map(function (item, index) {
129
+ return /*#__PURE__*/_jsx(VmCalendarInner, _objectSpread(_objectSpread({}, item), {}, {
130
+ value: item.name
131
+ }), index);
132
+ }), legend]
133
+ }), /*#__PURE__*/_jsx("div", {
134
+ style: {
135
+ flex: 1,
136
+ minHeight: 0
137
+ },
138
+ children: /*#__PURE__*/_jsx(VmCalendar, {
139
+ dateCellRender: dateCellRender,
140
+ value: month
141
+ })
142
+ })]
143
+ }), type === 'list' && /*#__PURE__*/_jsx(VmTable, _objectSpread({
144
+ columns: columns,
145
+ rowKey: "id"
146
+ }, tableProps)), type === 'chart' && /*#__PURE__*/_jsxs(_Fragment, {
147
+ children: [/*#__PURE__*/_jsx("div", {
148
+ style: {
149
+ height: '50%'
150
+ },
151
+ children: /*#__PURE__*/_jsx(VmBarCharts, {
152
+ dataList: [{
153
+ name: '规划里程',
154
+ data: [20, 50, 63, 51, 23],
155
+ yAxisIndex: 0,
156
+ color: 'geekblue'
157
+ }, {
158
+ name: '核算作业里程',
159
+ data: [20, 50, 63, 51, 23],
160
+ yAxisIndex: 0,
161
+ color: 'green'
162
+ }, {
163
+ name: '行驶里程',
164
+ data: [20, 50, 63, 51, 23],
165
+ yAxisIndex: 0,
166
+ color: 'blue'
167
+ }],
168
+ lineList: [{
169
+ name: '完成率',
170
+ data: [2, 2, 4, 1, 5],
171
+ yAxisIndex: 1,
172
+ color: '#0FB964'
173
+ }],
174
+ xAxis: ['2025-01', '2025-02', '2025-03', '2025-04', '2025-05'],
175
+ yAxisList: [{
176
+ unit: 'km',
177
+ name: '(km)'
178
+ }, {
179
+ unit: '%',
180
+ name: '(%)'
181
+ }],
182
+ otherProps: {
183
+ title: {
184
+ top: 0,
185
+ left: 0,
186
+ text: '作业情况',
187
+ textStyle: {
188
+ fontSize: 14,
189
+ color: chartFontColor,
190
+ fontWeight: 400
191
+ }
192
+ }
193
+ },
194
+ tooltipProps: {
195
+ formatter: function formatter(params) {
196
+ var _params$;
197
+ var html = '';
198
+ params === null || params === void 0 || params.forEach(function (item) {
199
+ html += "".concat(item.marker, "<div style=\"min-width: 120px;display: inline-block;line-height: 26px;\">").concat(item.seriesName, "</div><span style=\"font-weight: 600;text-align: right;\">").concat(item.value).concat(item.seriesName === '完成率' ? '%' : 'km', "</span><br/>");
200
+ });
201
+ return html ? "".concat(params === null || params === void 0 || (_params$ = params[0]) === null || _params$ === void 0 ? void 0 : _params$.axisValue, "<br/>").concat(html) : '';
202
+ }
203
+ }
204
+ })
205
+ }), /*#__PURE__*/_jsx("div", {
206
+ style: {
207
+ height: '50%'
208
+ },
209
+ children: /*#__PURE__*/_jsx(VmBarCharts, {
210
+ lineList: [{
211
+ name: '平均电量消耗',
212
+ data: [2, 2, 4, 1, 5],
213
+ yAxisIndex: 0,
214
+ color: '#FFAB0C'
215
+ }, {
216
+ name: '平均水量消耗',
217
+ data: [20, 50, 63, 51, 23],
218
+ yAxisIndex: 1,
219
+ color: '#0FB964'
220
+ }],
221
+ xAxis: [1, 2, 3, 4, 5],
222
+ yAxisList: [{
223
+ unit: 'kwh',
224
+ name: '(kwh)'
225
+ }, {
226
+ unit: 'L',
227
+ name: '(L)'
228
+ }],
229
+ otherProps: {
230
+ title: {
231
+ top: 0,
232
+ left: 0,
233
+ text: '能耗情况',
234
+ textStyle: {
235
+ fontSize: 14,
236
+ color: chartFontColor,
237
+ fontWeight: 400
238
+ }
239
+ }
240
+ },
241
+ tooltipProps: {
242
+ formatter: function formatter(params) {
243
+ var _params$2;
244
+ var html = '';
245
+ params === null || params === void 0 || params.forEach(function (item) {
246
+ html += "".concat(item.marker, "<div style=\"min-width: 120px;display: inline-block;line-height: 26px;\">").concat(item.seriesName, "</div><span style=\"font-weight: 600;text-align: right;\">").concat(item.value).concat(item.seriesName === '平均水量消耗' ? 'L' : 'kwh', "</span><br/>");
247
+ });
248
+ return html ? "".concat(params === null || params === void 0 || (_params$2 = params[0]) === null || _params$2 === void 0 ? void 0 : _params$2.axisValue, "<br/>").concat(html) : '';
249
+ }
250
+ }
251
+ })
252
+ })]
253
+ })]
254
+ });
255
+ }
@@ -0,0 +1,75 @@
1
+ import { Col, Row, Space } from 'antd';
2
+ import { VmProgress } from "../../../..//_components";
3
+ import useSettings from "../../../../_hooks/useSettings";
4
+ import butter from "../../../imgs/butter.png";
5
+ import butter_dark from "../../../imgs/butter_dark.png";
6
+ import water from "../../../imgs/water.png";
7
+ import water_dark from "../../../imgs/water_dark.png";
8
+ import "./index.less";
9
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
+ function Monitor(_ref) {
11
+ var _ref$carInfo = _ref.carInfo,
12
+ carInfo = _ref$carInfo === void 0 ? {} : _ref$carInfo;
13
+ var _useSettings = useSettings(),
14
+ isDark = _useSettings.isDark;
15
+ return /*#__PURE__*/_jsx("div", {
16
+ className: "unmaned_factor_bg",
17
+ children: /*#__PURE__*/_jsxs(Row, {
18
+ children: [/*#__PURE__*/_jsx(Col, {
19
+ span: 8,
20
+ children: /*#__PURE__*/_jsx(Item, {
21
+ icon: isDark ? butter_dark : butter,
22
+ unit: "%",
23
+ value: 60,
24
+ rate: 60,
25
+ strokeColor: ['#FFA700', '#FFC637']
26
+ })
27
+ }), /*#__PURE__*/_jsx(Col, {
28
+ span: 8,
29
+ children: /*#__PURE__*/_jsxs("div", {
30
+ className: "unmaned_factor_simple",
31
+ children: [/*#__PURE__*/_jsx("div", {
32
+ children: carInfo.gpsSpeed || 0
33
+ }), /*#__PURE__*/_jsx("div", {
34
+ className: "unit",
35
+ children: '今日行驶(km)'
36
+ })]
37
+ })
38
+ }), /*#__PURE__*/_jsx(Col, {
39
+ span: 8,
40
+ children: /*#__PURE__*/_jsx(Item, {
41
+ icon: isDark ? water_dark : water,
42
+ unit: "L",
43
+ value: 60,
44
+ rate: 60,
45
+ strokeColor: ['#00CF5D', '#04EC6C']
46
+ })
47
+ })]
48
+ })
49
+ });
50
+ }
51
+ function Item(_ref2) {
52
+ var icon = _ref2.icon,
53
+ value = _ref2.value,
54
+ unit = _ref2.unit,
55
+ rate = _ref2.rate,
56
+ strokeColor = _ref2.strokeColor;
57
+ return /*#__PURE__*/_jsxs(_Fragment, {
58
+ children: [/*#__PURE__*/_jsxs(Row, {
59
+ justify: 'space-between',
60
+ align: "middle",
61
+ children: [/*#__PURE__*/_jsx("img", {
62
+ src: icon,
63
+ className: "unmaned_factor_icon"
64
+ }), /*#__PURE__*/_jsxs(Space, {
65
+ align: "center",
66
+ size: 1,
67
+ children: [value || 0, unit || '']
68
+ })]
69
+ }), /*#__PURE__*/_jsx(VmProgress.Line, {
70
+ rate: rate,
71
+ strokeColor: strokeColor
72
+ })]
73
+ });
74
+ }
75
+ export default Monitor;
@@ -0,0 +1,22 @@
1
+ .unmaned_factor_bg {
2
+ background: url('../../../imgs/factor_bg.png') no-repeat;
3
+ background-size: 100% 36px;
4
+ background-position: left bottom;
5
+ padding: 13px 0;
6
+ margin-bottom: 6px;
7
+ font-size: 18px;
8
+ line-height: 18px;
9
+ .unmaned_factor_simple {
10
+ width: 100%;
11
+ text-align: center;
12
+ font-size: 30px;
13
+ .unit {
14
+ font-size: 12px;
15
+ margin-top: 4px;
16
+ }
17
+ }
18
+ }
19
+ .unmaned_factor_icon {
20
+ height: 20px;
21
+ width: auto;
22
+ }
@@ -0,0 +1,87 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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 { Col, Row } from 'antd';
8
+ import { VmFactor, VmProgress } from "../../../../_components";
9
+ import useSettings from "../../../../_hooks/useSettings";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ export default function (props) {
12
+ var info = props.info;
13
+ var _useSettings = useSettings(),
14
+ isDark = _useSettings.isDark;
15
+ var data = [{
16
+ name: '规划里程',
17
+ unit: 'km',
18
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
19
+ img: isDark ? require("../../../imgs/track_dark.png") : require("../../../imgs/track.png"),
20
+ fontType: 'blue'
21
+ }, {
22
+ name: '运行时长',
23
+ unit: '',
24
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
25
+ img: isDark ? require("../../../imgs/clock_dark.png") : require("../../../imgs/clock.png"),
26
+ fontType: 'blue'
27
+ }, {
28
+ name: '总电耗',
29
+ unit: 'kwh',
30
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
31
+ img: isDark ? require("../../../imgs/butter_dark.png") : require("../../../imgs/butter.png"),
32
+ fontType: 'yellow'
33
+ }, {
34
+ name: '核算作业里程',
35
+ unit: 'km',
36
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
37
+ img: isDark ? require("../../../imgs/track_green_dark.png") : require("../../../imgs/track_green.png"),
38
+ fontType: 'green'
39
+ }, {
40
+ name: '作业时长',
41
+ unit: '',
42
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
43
+ img: isDark ? require("../../../imgs/clock_green_dark.png") : require("../../../imgs/clock_green.png"),
44
+ fontType: 'green'
45
+ }, {
46
+ name: '总水耗',
47
+ unit: 'L',
48
+ value: info === null || info === void 0 ? void 0 : info.planCollectPoints,
49
+ img: isDark ? require("../../../imgs/water_dark.png") : require("../../../imgs/water.png"),
50
+ fontType: 'green'
51
+ }];
52
+ return /*#__PURE__*/_jsxs(Row, {
53
+ gutter: [47, 47],
54
+ align: 'middle',
55
+ style: {
56
+ height: '100%',
57
+ marginLeft: 30
58
+ },
59
+ children: [/*#__PURE__*/_jsx(Col, {
60
+ flex: '112px',
61
+ children: /*#__PURE__*/_jsx(VmProgress.Circle, {
62
+ rate: (info === null || info === void 0 ? void 0 : info.rate) || 50,
63
+ name: '完成率',
64
+ strokeColor: isDark ? {
65
+ '0%': '#009DFF',
66
+ '100%': '#44FF98'
67
+ } : {
68
+ '0%': '#1677FF',
69
+ '100%': '#48A2FF'
70
+ }
71
+ })
72
+ }), /*#__PURE__*/_jsx(Col, {
73
+ flex: '1',
74
+ children: /*#__PURE__*/_jsx(Row, {
75
+ gutter: [0, 27],
76
+ children: data.map(function (item) {
77
+ return /*#__PURE__*/_jsx(Col, {
78
+ span: 8,
79
+ children: /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, item), {}, {
80
+ type: 'sm'
81
+ }))
82
+ }, item.name);
83
+ })
84
+ })
85
+ })]
86
+ });
87
+ }
@@ -0,0 +1,10 @@
1
+ import Analysis from "./Analysis";
2
+ import Calendar from "./Calendar";
3
+ import Monitor from "./Monitor";
4
+ import WorkInfo from "./WorkInfo";
5
+ export default {
6
+ Monitor: Monitor,
7
+ WorkInfo: WorkInfo,
8
+ Analysis: Analysis,
9
+ Calendar: Calendar
10
+ };
@@ -3,4 +3,5 @@ import Common from "./Common";
3
3
  import JXH from "./JXH";
4
4
  import Ljsy from "./Ljsy";
5
5
  import Ljzy from "./Ljzy";
6
- export { Cc, Common, JXH, Ljsy, Ljzy };
6
+ import Unmanned from "./Unmanned";
7
+ export { Cc, Common, JXH, Ljsy, Ljzy, Unmanned };
Binary file
Binary file
Binary file
@@ -89,7 +89,9 @@ var VtxCarModal = function VtxCarModal(props) {
89
89
  _props$frameParams = props.frameParams,
90
90
  frameParams = _props$frameParams === void 0 ? {} : _props$frameParams,
91
91
  _props$defaultCode = props.defaultCode,
92
- defaultCode = _props$defaultCode === void 0 ? '' : _props$defaultCode;
92
+ defaultCode = _props$defaultCode === void 0 ? '' : _props$defaultCode,
93
+ _props$iframeUrl = props.iframeUrl,
94
+ iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl;
93
95
  var _BaseService$useBaseI = BaseService.useBaseInfo(id),
94
96
  detail = _BaseService$useBaseI.detail,
95
97
  info = _BaseService$useBaseI.info;
@@ -192,10 +194,13 @@ var VtxCarModal = function VtxCarModal(props) {
192
194
  title: '报警信息'
193
195
  }];
194
196
  }
195
- return tabs;
197
+ return tabs.concat([{
198
+ key: TABS_VIDEO,
199
+ title: '视频信息'
200
+ }]);
196
201
  }, [info === null || info === void 0 ? void 0 : info.actionType]);
197
202
  var contents = (_contents = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_BASE, /*#__PURE__*/_jsx(Common.BaseInfo, {})), TABS_STATIC, /*#__PURE__*/_jsx(Common.StaticInfo, {})), TABS_ALARM, /*#__PURE__*/_jsx(Common.AlarmInfo, {})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
198
- videoPlaceCode: info === null || info === void 0 ? void 0 : info.carCode
203
+ channels: channels
199
204
  })), TABS_OIL, /*#__PURE__*/_jsx(Common.OilConsumption, {})), TABS_WATER, /*#__PURE__*/_jsx(Common.WaterConsumption, {})), TABS_MAINTENANCE, /*#__PURE__*/_jsx(Common.Maintenance, {})), TABS_DETAIL, /*#__PURE__*/_jsx(Common.DetailInfo, {})), TABS_DEVICE, /*#__PURE__*/_jsx(Common.DeviceInfo, {})), TABS_JXH_BASE, /*#__PURE__*/_jsx(JXH.BaseInfo, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_JXH_STATIC, /*#__PURE__*/_jsx(JXH.StaticInfo, {})), TABS_JXH_WORK, /*#__PURE__*/_jsx(JXH.WorkRecord, {})), TABS_JXH_ALARM, /*#__PURE__*/_jsx(JXH.AlarmInfo, {})), TABS_LJSY_BASE, /*#__PURE__*/_jsx(Ljsy.BaseInfo, {})), TABS_LJSY_STATIC, /*#__PURE__*/_jsx(Ljsy.StaticInfo, {})), TABS_LJSY_WORK, /*#__PURE__*/_jsx(Ljsy.WorkRecord, {})), TABS_LJSY_ALARM, /*#__PURE__*/_jsx(Ljsy.AlarmInfo, {})), TABS_CC_BASE, /*#__PURE__*/_jsx(Cc.BaseInfo, {})), TABS_CC_ORDER, /*#__PURE__*/_jsx(Cc.OrderInfo, {})), TABS_CC_STATIC, /*#__PURE__*/_jsx(Cc.StaticInfo, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_CC_WORK, /*#__PURE__*/_jsx(Cc.WorkRecord, {})), TABS_CC_ALARM, /*#__PURE__*/_jsx(Cc.AlarmInfo, {})), TABS_LJZY_BASE, /*#__PURE__*/_jsx(Ljzy.BaseInfo, {})), TABS_LJZY_STATIC, /*#__PURE__*/_jsx(Ljzy.StaticInfo, {})), TABS_LJZY_WORK, /*#__PURE__*/_jsx(Ljzy.WorkRecord, {})));
200
205
  var _useGetConfig = useGetConfig(code, tabs),
201
206
  tabsData = _useGetConfig.tabsData;
@@ -257,6 +262,7 @@ var VtxCarModal = function VtxCarModal(props) {
257
262
  endDate: endDate,
258
263
  showCollect: showCollect,
259
264
  frameParams: frameParams,
265
+ iframeUrl: iframeUrl,
260
266
  tagList: [{
261
267
  color: 'blue',
262
268
  value: info.carClassName
@@ -5,11 +5,12 @@ 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 { VtxImage } from '@vtx/components';
8
+ import { getVtxToken } from '@vtx/utils';
8
9
  import { Carousel, Col, Row } from 'antd';
9
10
  import { VmEmpty, VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
10
11
  import useSettings from "../../../_hooks/useSettings";
11
12
  import { CommonService } from "../../../_service";
12
- import { getFieldRender, getUrlPara } from "../../../_util";
13
+ import { getFieldRender } from "../../../_util";
13
14
  import "./index.less";
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
16
  var BaseInfo = function BaseInfo(props) {
@@ -43,7 +44,9 @@ var BaseInfo = function BaseInfo(props) {
43
44
  return {
44
45
  id: "mapPoints_".concat(index),
45
46
  lng: item[0],
46
- lat: item[1]
47
+ lat: item[1],
48
+ icon: info === null || info === void 0 ? void 0 : info.gisIconCode,
49
+ color: info === null || info === void 0 ? void 0 : info.gisIconColor
47
50
  };
48
51
  })) || [];
49
52
  }
@@ -66,7 +69,7 @@ var BaseInfo = function BaseInfo(props) {
66
69
  },
67
70
  children: photos.map(function (item) {
68
71
  return /*#__PURE__*/_jsx(VtxImage, {
69
- src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getUrlPara('token')),
72
+ src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token')),
70
73
  alt: item.name,
71
74
  style: {
72
75
  width: '100%',