@vtx/modals2 5.0.57 → 5.0.59

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 (77) hide show
  1. package/lib/_components/vm-calendar/index.js +14 -4
  2. package/lib/_components/vm-calendar/style/index.less +4 -1
  3. package/lib/_components/vm-card-statistics/index.less +27 -27
  4. package/lib/_components/vm-custom/index.js +1 -1
  5. package/lib/_components/vm-factor-list/index.less +11 -11
  6. package/lib/_components/vm-filter/index.js +25 -0
  7. package/lib/_components/vm-pie-charts/index.js +14 -4
  8. package/lib/_components/vm-popover/index.less +7 -7
  9. package/lib/_components/vm-progress/index.js +6 -0
  10. package/lib/_components/vm-table/index.js +3 -3
  11. package/lib/_components/vm-table/style/index.less +12 -7
  12. package/lib/_components/vm-video/index.js +6 -1
  13. package/lib/style/index.less +5 -0
  14. package/lib/vtx-area-modal/api.js +2 -0
  15. package/lib/vtx-base-modal/Header/index.less +98 -98
  16. package/lib/vtx-base-modal/index.js +5 -0
  17. package/lib/vtx-car-modal/api.js +179 -74
  18. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  19. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  20. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  21. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +133 -0
  22. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +84 -0
  23. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +71 -0
  24. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +223 -0
  25. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +549 -0
  26. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.less +6 -0
  27. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +291 -0
  28. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
  29. package/lib/vtx-car-modal/content/JXH/index.js +9 -1
  30. package/lib/vtx-car-modal/imgs/calendar/auto.png +0 -0
  31. package/lib/vtx-car-modal/imgs/calendar/dark_auto.png +0 -0
  32. package/lib/vtx-car-modal/imgs/calendar/dark_electricity.png +0 -0
  33. package/lib/vtx-car-modal/imgs/calendar/dark_oil.png +0 -0
  34. package/lib/vtx-car-modal/imgs/calendar/dark_transition.png +0 -0
  35. package/lib/vtx-car-modal/imgs/calendar/dark_water.png +0 -0
  36. package/lib/vtx-car-modal/imgs/calendar/dark_yy_mileage.png +0 -0
  37. package/lib/vtx-car-modal/imgs/calendar/electricity.png +0 -0
  38. package/lib/vtx-car-modal/imgs/calendar/oil.png +0 -0
  39. package/lib/vtx-car-modal/imgs/calendar/transition.png +0 -0
  40. package/lib/vtx-car-modal/imgs/calendar/water.png +0 -0
  41. package/lib/vtx-car-modal/imgs/calendar/yy_mileage.png +0 -0
  42. package/lib/vtx-car-modal/index.js +9 -1
  43. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  44. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -0
  45. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  46. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +2 -0
  47. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +2 -0
  48. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -0
  49. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  50. package/lib/vtx-restaurant-modal/config.js +52 -52
  51. package/lib/vtx-road-modal/api.js +348 -11
  52. package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -5
  53. package/lib/vtx-road-modal/components/BaseInfo/index.js +6 -5
  54. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +63 -0
  55. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +434 -0
  56. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +80 -0
  57. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +127 -0
  58. package/lib/vtx-road-modal/components/LaneCalendar/index.js +194 -0
  59. package/lib/vtx-road-modal/components/LaneStatistical/index.js +312 -0
  60. package/lib/vtx-road-modal/components/LaneStatistical/index.less +32 -0
  61. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  62. package/lib/vtx-road-modal/components/index.js +4 -1
  63. package/lib/vtx-road-modal/imgs/car.png +0 -0
  64. package/lib/vtx-road-modal/imgs/dark_car.png +0 -0
  65. package/lib/vtx-road-modal/imgs/dark_person.png +0 -0
  66. package/lib/vtx-road-modal/imgs/person.png +0 -0
  67. package/lib/vtx-road-modal/imgs/schedule.png +0 -0
  68. package/lib/vtx-road-modal/imgs/work.png +0 -0
  69. package/lib/vtx-road-modal/imgs//344/274/230.png +0 -0
  70. package/lib/vtx-road-modal/imgs//345/267/256.png +0 -0
  71. package/lib/vtx-road-modal/imgs//350/211/257.png +0 -0
  72. package/lib/vtx-road-modal/index.js +18 -13
  73. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +2 -0
  74. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +2 -0
  75. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +2 -0
  76. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +2 -2
  77. package/package.json +81 -81
@@ -0,0 +1,291 @@
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useSetState } from 'ahooks';
14
+ import { Col, Row, Space } from 'antd';
15
+ import dayjs from 'dayjs';
16
+ import * as echarts from 'echarts';
17
+ import { useContext } from 'react';
18
+ import { VmFactor, VmLineCharts, VmProgress, VmTable, VmTag, VmWrapper } from "../../../../_components";
19
+ import useSettings from "../../../../_hooks/useSettings";
20
+ import { Hw2Service, JxhService } from "../../../api";
21
+ import { CarContext } from "../../../index";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
+ var workTypeColors = ['blue', 'green', 'yellow', 'purple', 'orange'];
24
+ var Hw2WorkRecord = function Hw2WorkRecord() {
25
+ var _useSettings = useSettings(),
26
+ isDark = _useSettings.isDark,
27
+ chartFontColor = _useSettings.chartFontColor;
28
+ var _useContext = useContext(CarContext),
29
+ id = _useContext.id,
30
+ sDate = _useContext.startDate,
31
+ eDate = _useContext.endDate,
32
+ service = _useContext.service;
33
+ var _useSetState = useSetState({
34
+ startDate: sDate ? sDate : dayjs().subtract(6, 'day'),
35
+ endDate: eDate ? eDate : dayjs()
36
+ }),
37
+ _useSetState2 = _slicedToArray(_useSetState, 2),
38
+ state = _useSetState2[0],
39
+ setState = _useSetState2[1];
40
+ var startDate = dayjs(state.startDate).format('YYYY-MM-DD');
41
+ var endDate = dayjs(state.endDate).format('YYYY-MM-DD');
42
+ var _Hw2Service$useWorkRe = Hw2Service.useWorkRecord(id, startDate, endDate),
43
+ workRecord = _Hw2Service$useWorkRe.workRecord,
44
+ loading = _Hw2Service$useWorkRe.loading;
45
+ var _workRecord$totalWork = workRecord.totalWorkInfo,
46
+ totalWorkInfo = _workRecord$totalWork === void 0 ? {} : _workRecord$totalWork,
47
+ _workRecord$workInfo = workRecord.workInfo,
48
+ workInfo = _workRecord$workInfo === void 0 ? [] : _workRecord$workInfo,
49
+ _workRecord$details = workRecord.details,
50
+ details = _workRecord$details === void 0 ? [] : _workRecord$details;
51
+ // 作业类型
52
+ var _JxhService$useWorkTy = JxhService.useWorkTypeJxh(service),
53
+ workTypeRes = _JxhService$useWorkTy.workTypeRes;
54
+ var workTypeColorMap = (workTypeRes || []).reduce(function (pre, cur, index) {
55
+ pre[cur.code] = workTypeColors[index % workTypeColors.length];
56
+ return pre;
57
+ }, {});
58
+ var tableProps = {
59
+ rowKey: 'ruleId',
60
+ pagination: false,
61
+ dataSource: details || [],
62
+ loading: loading
63
+ };
64
+ var columns = [_defineProperty(_defineProperty({
65
+ title: '排班日期',
66
+ dataIndex: 'workDate',
67
+ key: 'workDate',
68
+ width: 100,
69
+ sorter: true
70
+ }, "sorter", function sorter(a, b) {
71
+ return a.workDate > b.workDate ? 1 : -1;
72
+ }), "fixed", 'left'), {
73
+ title: '排班班次',
74
+ dataIndex: 'shiftInfoName',
75
+ key: 'shiftInfoName',
76
+ width: 150
77
+ }, {
78
+ title: '排班司机',
79
+ dataIndex: 'driverName',
80
+ key: 'driverName',
81
+ width: 120
82
+ }, {
83
+ title: '排班路段',
84
+ dataIndex: 'roadName',
85
+ key: 'roadName',
86
+ width: 150
87
+ }, {
88
+ title: '车道类型',
89
+ dataIndex: 'facilityTypeName',
90
+ key: 'facilityTypeName',
91
+ width: 120
92
+ }, {
93
+ title: '作业类型',
94
+ dataIndex: 'workTypeName',
95
+ key: 'workTypeName',
96
+ width: 100,
97
+ render: function render(text, record) {
98
+ return /*#__PURE__*/_jsx(VmTag, {
99
+ title: text,
100
+ type: workTypeColorMap[record.workTypeCode]
101
+ });
102
+ }
103
+ }, {
104
+ title: '排班趟数',
105
+ dataIndex: 'workCount',
106
+ key: 'workCount',
107
+ width: 100,
108
+ ellipsis: true,
109
+ align: 'right'
110
+ }, {
111
+ title: '排班里程(km)',
112
+ dataIndex: 'planMileage',
113
+ key: 'planMileage',
114
+ width: 120,
115
+ ellipsis: true,
116
+ align: 'right'
117
+ }, {
118
+ title: '作业里程(km)',
119
+ dataIndex: 'workMileage',
120
+ key: 'workMileage',
121
+ width: 120,
122
+ ellipsis: true,
123
+ align: 'right'
124
+ }, {
125
+ title: '任务完成率',
126
+ dataIndex: 'completeRate',
127
+ key: 'completeRate',
128
+ width: 120,
129
+ align: 'right',
130
+ render: function render(text) {
131
+ return "".concat(text, "%");
132
+ }
133
+ }, {
134
+ title: '作业质量',
135
+ dataIndex: 'workQuality',
136
+ key: 'workQuality',
137
+ width: 100,
138
+ render: function render(text) {
139
+ var colorMap = {
140
+ 优: 'green',
141
+ 良: 'yellow',
142
+ 差: 'red'
143
+ };
144
+ return text ? /*#__PURE__*/_jsx(VmTag, {
145
+ title: text,
146
+ type: colorMap[text]
147
+ }) : '-';
148
+ }
149
+ }];
150
+ return /*#__PURE__*/_jsxs(Row, {
151
+ style: {
152
+ padding: 16,
153
+ height: '100%'
154
+ },
155
+ gutter: [16, 16],
156
+ children: [/*#__PURE__*/_jsx(Col, {
157
+ span: 24,
158
+ style: {
159
+ height: 273
160
+ },
161
+ children: /*#__PURE__*/_jsx(VmWrapper, {
162
+ title: '作业汇总分析',
163
+ filterType: 'rangePicker',
164
+ filterChange: function filterChange(date) {
165
+ setState({
166
+ startDate: date[0],
167
+ endDate: date[1]
168
+ });
169
+ },
170
+ dateValue: [state.startDate, state.endDate],
171
+ disabledDate: function disabledDate(current) {
172
+ return current && current > dayjs().endOf('day');
173
+ },
174
+ children: /*#__PURE__*/_jsxs(Row, {
175
+ children: [/*#__PURE__*/_jsx(Col, {
176
+ span: 12,
177
+ children: /*#__PURE__*/_jsxs(Row, {
178
+ gutter: [34, 34],
179
+ align: 'middle',
180
+ justify: 'center',
181
+ style: {
182
+ width: '100%',
183
+ height: '100%'
184
+ },
185
+ children: [/*#__PURE__*/_jsx(Col, {
186
+ flex: '108px',
187
+ children: /*#__PURE__*/_jsx(VmProgress.Circle, {
188
+ rate: (totalWorkInfo === null || totalWorkInfo === void 0 ? void 0 : totalWorkInfo.completeRate) || 0,
189
+ name: '完成率',
190
+ strokeColor: isDark ? {
191
+ '0%': '#009DFF',
192
+ '100%': '#44FF98'
193
+ } : {
194
+ '0%': '#1677FF',
195
+ '100%': '#48A2FF'
196
+ }
197
+ })
198
+ }), /*#__PURE__*/_jsxs(Col, {
199
+ children: [/*#__PURE__*/_jsxs(Space, {
200
+ size: 30,
201
+ children: [/*#__PURE__*/_jsx(VmFactor, {
202
+ name: '排班里程',
203
+ unit: 'km',
204
+ type: 'sm',
205
+ value: (totalWorkInfo === null || totalWorkInfo === void 0 ? void 0 : totalWorkInfo.planMileage) || 0,
206
+ fontType: 'green',
207
+ img: isDark ? require("../../../imgs/calendar/dark_green_mileage.png") : require("../../../imgs/calendar/green_mileage.png")
208
+ }), /*#__PURE__*/_jsx(VmFactor, {
209
+ name: '行驶里程',
210
+ unit: 'km',
211
+ type: 'sm',
212
+ value: (totalWorkInfo === null || totalWorkInfo === void 0 ? void 0 : totalWorkInfo.driverMileage) || 0,
213
+ fontType: 'blue',
214
+ img: isDark ? require("../../../imgs/calendar/dark_mileage.png") : require("../../../imgs/calendar/blue_mileage.png")
215
+ })]
216
+ }), /*#__PURE__*/_jsx(VmFactor, {
217
+ name: '作业里程',
218
+ unit: 'km',
219
+ type: 'sm',
220
+ fontType: 'blue',
221
+ value: (totalWorkInfo === null || totalWorkInfo === void 0 ? void 0 : totalWorkInfo.workMileage) || 0,
222
+ img: isDark ? require("../../../imgs/calendar/dark_mileage.png") : require("../../../imgs/calendar/mileage.png")
223
+ })]
224
+ })]
225
+ })
226
+ }), /*#__PURE__*/_jsx(Col, {
227
+ span: 12,
228
+ children: /*#__PURE__*/_jsx(VmLineCharts, {
229
+ xAxis: _.map(workInfo, 'date'),
230
+ unit: "%",
231
+ dataList: [{
232
+ name: '完成率',
233
+ data: _.map(workInfo, 'completeRate'),
234
+ areaStyle: {
235
+ color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
236
+ offset: 0,
237
+ color: 'rgba(32, 187, 112, 0.30)'
238
+ }, {
239
+ offset: 1,
240
+ color: 'rgba(32, 187, 112, 0.05)'
241
+ }])
242
+ },
243
+ lineStyle: {
244
+ color: '#20BB70'
245
+ },
246
+ itemStyle: {
247
+ color: '#20BB70'
248
+ },
249
+ markLine: {
250
+ data: [{
251
+ type: 'average',
252
+ name: '均值'
253
+ }],
254
+ label: {
255
+ show: true,
256
+ position: 'insideEndTop',
257
+ formatter: '{b}: {c}',
258
+ color: chartFontColor,
259
+ fontWeight: 'normal'
260
+ },
261
+ lineStyle: {
262
+ color: '#F69518'
263
+ }
264
+ }
265
+ }],
266
+ loading: loading,
267
+ height: 190
268
+ })
269
+ })]
270
+ })
271
+ })
272
+ }), /*#__PURE__*/_jsx(Col, {
273
+ span: 24,
274
+ style: {
275
+ height: 'calc(100% - 273px)'
276
+ },
277
+ children: /*#__PURE__*/_jsx(VmWrapper, {
278
+ title: '作业明细',
279
+ style: {
280
+ height: '100%'
281
+ },
282
+ children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({
283
+ columns: columns
284
+ }, tableProps), {}, {
285
+ indexFixed: true
286
+ }))
287
+ })
288
+ })]
289
+ });
290
+ };
291
+ export default Hw2WorkRecord;
@@ -85,7 +85,7 @@ var WorkRecord = function WorkRecord() {
85
85
  });
86
86
  };
87
87
  var tableProps = {
88
- rowKey: 'index',
88
+ rowKey: 'ruleId',
89
89
  pagination: _objectSpread(_objectSpread({}, pagination), {}, {
90
90
  total: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.total) || 0,
91
91
  defaultPageSize: 10,
@@ -2,9 +2,17 @@ import BaseInfo from "./BaseInfo";
2
2
  import StaticInfo from "./StaticInfo";
3
3
  import WorkRecord from "./WorkRecord";
4
4
  import AlarmInfo from "./AlarmInfo";
5
+ import Hw2WorkRecord from "./Hw2WorkRecord";
6
+ import Hw2AlarmInfo from "./Hw2AlarmInfo";
7
+ import Hw2BaseInfo from "./Hw2BaseInfo";
8
+ import Hw2StaticInfo from "./Hw2StaticInfo";
5
9
  export default {
6
10
  BaseInfo: BaseInfo,
7
11
  StaticInfo: StaticInfo,
8
12
  WorkRecord: WorkRecord,
9
- AlarmInfo: AlarmInfo
13
+ AlarmInfo: AlarmInfo,
14
+ Hw2WorkRecord: Hw2WorkRecord,
15
+ Hw2AlarmInfo: Hw2AlarmInfo,
16
+ Hw2BaseInfo: Hw2BaseInfo,
17
+ Hw2StaticInfo: Hw2StaticInfo
10
18
  };
@@ -47,6 +47,14 @@ var TABS_JXH_STATIC = 'jxh-static';
47
47
  var TABS_JXH_ALARM = 'jxh-alarm';
48
48
  // 机械化-作业记录
49
49
  var TABS_JXH_WORK = 'jxh-work';
50
+ // 机械化-总览信息
51
+ var TABS_JXH_BASE_HW_2 = 'jxh-base-hw2';
52
+ // 机械化-作业日历
53
+ var TABS_JXH_STATIC_HW_2 = 'jxh-static-hw2';
54
+ // 机械化-报警信息
55
+ var TABS_JXH_ALARM_HW_2 = 'jxh-alarm-hw2';
56
+ // 机械化-作业记录
57
+ var TABS_JXH_WORK_HW_2 = 'jxh-work-hw2';
50
58
  // 垃圾收运-总览信息
51
59
  var TABS_LJSY_BASE = 'ljsy-base';
52
60
  // 垃圾收运-运行日历
@@ -243,7 +251,7 @@ var VtxCarModal = function VtxCarModal(props) {
243
251
  }, [info === null || info === void 0 ? void 0 : info.actionType]);
244
252
  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, {
245
253
  channels: channels
246
- })), 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(_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, {})), TABS_JZLJ_CAR_BASE, /*#__PURE__*/_jsx(Jzlj.BaseInfo, {})), TABS_JZLJ_CAR_DISPOSE, /*#__PURE__*/_jsx(Jzlj.Dispose, {})), TABS_JZLJ_CAR_COLLECTION, /*#__PURE__*/_jsx(Jzlj.Collection, {})), TABS_JZLJ_CAR_ALARM, /*#__PURE__*/_jsx(Jzlj.Alarm, {})), TABS_JZLJ_CAR_RUNNING_CALENDAR, /*#__PURE__*/_jsx(Jzlj.RunCalendar, {})));
254
+ })), 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_JXH_BASE_HW_2, /*#__PURE__*/_jsx(JXH.Hw2BaseInfo, {})), TABS_JXH_STATIC_HW_2, /*#__PURE__*/_jsx(JXH.Hw2StaticInfo, {})), TABS_JXH_WORK_HW_2, /*#__PURE__*/_jsx(JXH.Hw2WorkRecord, {})), TABS_JXH_ALARM_HW_2, /*#__PURE__*/_jsx(JXH.Hw2AlarmInfo, {})), TABS_LJSY_BASE, /*#__PURE__*/_jsx(Ljsy.BaseInfo, {})), TABS_LJSY_STATIC, /*#__PURE__*/_jsx(Ljsy.StaticInfo, {})), TABS_LJSY_WORK, /*#__PURE__*/_jsx(Ljsy.WorkRecord, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, 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, {})), 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, {})), TABS_JZLJ_CAR_BASE, /*#__PURE__*/_jsx(Jzlj.BaseInfo, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_JZLJ_CAR_DISPOSE, /*#__PURE__*/_jsx(Jzlj.Dispose, {})), TABS_JZLJ_CAR_COLLECTION, /*#__PURE__*/_jsx(Jzlj.Collection, {})), TABS_JZLJ_CAR_ALARM, /*#__PURE__*/_jsx(Jzlj.Alarm, {})), TABS_JZLJ_CAR_RUNNING_CALENDAR, /*#__PURE__*/_jsx(Jzlj.RunCalendar, {})));
247
255
  var _useGetConfig = useGetConfig(code, tabs),
248
256
  tabsData = _useGetConfig.tabsData;
249
257
  var tabsList = useMemo(function () {
@@ -1,6 +1,6 @@
1
- .vm-cc-unit-map-wrap {
2
- flex: 1;
3
- min-height: 230px;
4
- width: 100%;
5
- margin-top: 10px;
6
- }
1
+ .vm-cc-unit-map-wrap {
2
+ flex: 1;
3
+ min-height: 230px;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -106,6 +106,7 @@ export default function TodayWork(props) {
106
106
  percent: item.rate,
107
107
  strokeColor: strokeColor,
108
108
  trailColor: isDark ? 'rgba(255,255,255,0.05)' : '#D2D2D2',
109
+ railColor: isDark ? 'rgba(255,255,255,0.05)' : '#D2D2D2',
109
110
  strokeWidth: 6,
110
111
  showInfo: false
111
112
  })]
@@ -1,66 +1,66 @@
1
- .vtx-device-analysis-dot {
2
- width: 6px;
3
- height: 6px;
4
- background: var(--green-color);
5
- border-radius: 50%;
6
- &.error {
7
- background: var(--red-color);
8
- }
9
- }
10
-
11
- .vtx-device-analysis-tabs {
12
- display: flex;
13
- gap: 16px;
14
- color: var(--modal-title-color);
15
- font-size: 14px;
16
- &-item {
17
- cursor: pointer;
18
- &.active {
19
- color: var(--blue-color);
20
- }
21
- }
22
- }
23
-
24
- .vtx-device-alarm-summary {
25
- width: 368px;
26
- height: 104px;
27
- padding: 20px;
28
- margin-bottom: 20px;
29
- color: var(--modal-title-color);
30
- display: flex;
31
- justify-content: space-between;
32
- flex-direction: column;
33
- cursor: pointer;
34
- background-image: url("../../imgs/current.png");
35
- background-size: 100% 100%;
36
- border-radius: 8px;
37
- border: 1px solid transparent;
38
- &-lable {
39
- font-size: 16px;
40
- font-weight: 600;
41
- }
42
- &-value {
43
- font-weight: 600;
44
- font-size: 24px;
45
- color: var(--red-color);
46
- }
47
- &.dark {
48
- background-image: url("../../imgs/current_dark.png");
49
- &:last-child {
50
- background-image: url("../../imgs/history_dark.png");
51
- }
52
- }
53
- &.active {
54
- border:1px solid var(--red-color);
55
- }
56
- &:last-child {
57
- margin-bottom: 0;
58
- background-image: url("../../imgs/history.png");
59
- .vtx-device-alarm-summary-value {
60
- color: var(--yellow-color);
61
- }
62
- &.active {
63
- border:1px solid var(--yellow-color);
64
- }
65
- }
66
- }
1
+ .vtx-device-analysis-dot {
2
+ width: 6px;
3
+ height: 6px;
4
+ background: var(--green-color);
5
+ border-radius: 50%;
6
+ &.error {
7
+ background: var(--red-color);
8
+ }
9
+ }
10
+
11
+ .vtx-device-analysis-tabs {
12
+ display: flex;
13
+ gap: 16px;
14
+ color: var(--modal-title-color);
15
+ font-size: 14px;
16
+ &-item {
17
+ cursor: pointer;
18
+ &.active {
19
+ color: var(--blue-color);
20
+ }
21
+ }
22
+ }
23
+
24
+ .vtx-device-alarm-summary {
25
+ width: 368px;
26
+ height: 104px;
27
+ padding: 20px;
28
+ margin-bottom: 20px;
29
+ color: var(--modal-title-color);
30
+ display: flex;
31
+ justify-content: space-between;
32
+ flex-direction: column;
33
+ cursor: pointer;
34
+ background-image: url("../../imgs/current.png");
35
+ background-size: 100% 100%;
36
+ border-radius: 8px;
37
+ border: 1px solid transparent;
38
+ &-lable {
39
+ font-size: 16px;
40
+ font-weight: 600;
41
+ }
42
+ &-value {
43
+ font-weight: 600;
44
+ font-size: 24px;
45
+ color: var(--red-color);
46
+ }
47
+ &.dark {
48
+ background-image: url("../../imgs/current_dark.png");
49
+ &:last-child {
50
+ background-image: url("../../imgs/history_dark.png");
51
+ }
52
+ }
53
+ &.active {
54
+ border:1px solid var(--red-color);
55
+ }
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ background-image: url("../../imgs/history.png");
59
+ .vtx-device-alarm-summary-value {
60
+ color: var(--yellow-color);
61
+ }
62
+ &.active {
63
+ border:1px solid var(--yellow-color);
64
+ }
65
+ }
66
+ }
@@ -80,11 +80,13 @@ var GDCLXL = function GDCLXL(_ref) {
80
80
  type: "dashboard",
81
81
  percent: ele.value,
82
82
  width: 120,
83
+ size: 120,
83
84
  strokeWidth: 10,
84
85
  gapDegree: 180,
85
86
  strokeLinecap: "butt",
86
87
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
87
88
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
89
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
88
90
  showInfo: false
89
91
  }), /*#__PURE__*/_jsxs("div", {
90
92
  className: "".concat(classPrefix, "-progress-desc"),
@@ -70,11 +70,13 @@ var GDCLXL = function GDCLXL(_ref) {
70
70
  type: "dashboard",
71
71
  percent: ele.value,
72
72
  width: 160,
73
+ size: 160,
73
74
  strokeWidth: 10,
74
75
  gapDegree: 180,
75
76
  strokeLinecap: "butt",
76
77
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
77
78
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
79
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
78
80
  showInfo: false
79
81
  }), /*#__PURE__*/_jsx("div", {
80
82
  className: "".concat(classPrefix, "-progress-desc"),
@@ -123,12 +123,14 @@ var RightBottom = function RightBottom(_ref) {
123
123
  }), /*#__PURE__*/_jsx(Progress, {
124
124
  type: "dashboard",
125
125
  percent: ele.value,
126
+ size: 120,
126
127
  width: 120,
127
128
  strokeWidth: 10,
128
129
  gapDegree: 180,
129
130
  strokeLinecap: "butt",
130
131
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
131
132
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
133
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
132
134
  showInfo: false
133
135
  }), /*#__PURE__*/_jsxs("div", {
134
136
  className: "".concat(classPrefix, "-rightbottom-progress-desc"),
@@ -1,16 +1,16 @@
1
- .vtx-restaurant-rule_item {
2
- border-radius: 8px 8px 8px 8px;
3
- border: 1px solid var(--gray-line-color);
4
- padding: 16px 16px 8px;
5
- margin-top: 12px;
6
- position: relative;
7
- .vtx-restaurant-border {
8
- width: 100%;
9
- position: absolute;
10
- left: 0;
11
- top: -2px;
12
- height: 44px;
13
- border-radius: 8px 8px 0px 0px;
14
- border-top: 2px solid var(--blue-color);
15
- }
16
- }
1
+ .vtx-restaurant-rule_item {
2
+ border-radius: 8px 8px 8px 8px;
3
+ border: 1px solid var(--gray-line-color);
4
+ padding: 16px 16px 8px;
5
+ margin-top: 12px;
6
+ position: relative;
7
+ .vtx-restaurant-border {
8
+ width: 100%;
9
+ position: absolute;
10
+ left: 0;
11
+ top: -2px;
12
+ height: 44px;
13
+ border-radius: 8px 8px 0px 0px;
14
+ border-top: 2px solid var(--blue-color);
15
+ }
16
+ }