@vtx/modals2 5.0.4 → 5.0.5
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.
- package/lib/_components/vm-bar-charts/index.js +9 -5
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-pie-charts/index.js +3 -1
- package/lib/_components/vm-tag/style/index.less +1 -0
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/index.js +6 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +131 -104
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +206 -158
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +19 -4
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +9 -3
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
- package/lib/vtx-default-modal/index.js +0 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +0 -1
- package/lib/vtx-df-modal/index.js +0 -2
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +15 -5
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -8
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +0 -1
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
|
@@ -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
|
+
}
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
-
|
|
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
|
|
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) {
|
|
@@ -66,7 +67,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
66
67
|
},
|
|
67
68
|
children: photos.map(function (item) {
|
|
68
69
|
return /*#__PURE__*/_jsx(VtxImage, {
|
|
69
|
-
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(
|
|
70
|
+
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
70
71
|
alt: item.name,
|
|
71
72
|
style: {
|
|
72
73
|
width: '100%',
|
|
@@ -27,7 +27,6 @@ var TABS_Calendar = 'calendar';
|
|
|
27
27
|
var VtxDfModal = function VtxDfModal(props) {
|
|
28
28
|
var id = props.id,
|
|
29
29
|
title = props.title,
|
|
30
|
-
subTitle = props.subTitle,
|
|
31
30
|
theme = props.theme,
|
|
32
31
|
startDate = props.startDate,
|
|
33
32
|
endDate = props.endDate,
|
|
@@ -120,7 +119,6 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
120
119
|
id: id,
|
|
121
120
|
type: "facility",
|
|
122
121
|
title: title,
|
|
123
|
-
subTitle: subTitle,
|
|
124
122
|
theme: theme,
|
|
125
123
|
source: source,
|
|
126
124
|
startDate: startDate,
|