@vtx/modals2 5.0.3 → 5.0.4
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/index.js +4 -3
- package/lib/_components/vm-bar-charts/index.js +1 -1
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor/index.js +10 -5
- package/lib/_components/vm-factor/style/index.less +5 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +2 -1
- package/lib/_components/vm-info-collection/index.js +2 -2
- package/lib/_components/vm-line-charts/index.js +1 -1
- package/lib/_components/vm-map/index.js +5 -5
- package/lib/_components/vm-pie-charts/index.js +7 -5
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
- package/lib/_components/vm-repair-maintain/RmType.js +32 -0
- package/lib/_components/vm-repair-maintain/api.js +92 -0
- package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
- package/lib/_components/vm-repair-maintain/index.js +56 -0
- package/lib/_components/vm-repair-maintain/style/index.js +1 -0
- package/lib/_components/vm-repair-maintain/style/index.less +25 -0
- package/lib/_components/vm-table/index.js +7 -4
- package/lib/_components/vm-table/style/index.less +3 -2
- package/lib/_components/vm-tag/style/index.less +9 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- package/lib/index.js +7 -2
- package/lib/style/index.less +2 -6
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +5 -2
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/index.js +16 -2
- package/lib/vtx-cc-cp-modal/api.js +381 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
- package/lib/vtx-cc-cp-modal/components/index.js +7 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/index.js +119 -0
- package/lib/vtx-cc-cp-modal/style/index.js +1 -0
- package/lib/vtx-cc-cp-modal/style/index.less +13 -0
- package/lib/vtx-cc-unit-modal/api.js +361 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
- package/lib/vtx-cc-unit-modal/components/index.js +7 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/index.js +137 -0
- package/lib/vtx-cc-unit-modal/style/index.js +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +14 -0
- package/lib/vtx-cp-modal/api.js +3 -3
- package/lib/vtx-cp-modal/index.js +4 -1
- package/lib/vtx-default-modal/index.js +10 -7
- package/lib/vtx-device-modal/api.js +531 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +611 -0
- package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
- package/lib/vtx-device-modal/components/index.js +3 -0
- package/lib/vtx-device-modal/config.js +21 -0
- package/lib/vtx-device-modal/imgs/current.png +0 -0
- package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
- package/lib/vtx-device-modal/imgs/history.png +0 -0
- package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
- package/lib/vtx-device-modal/index.js +96 -0
- package/lib/vtx-device-modal/style/index.js +1 -0
- package/lib/vtx-device-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/index.js +11 -9
- package/lib/vtx-kh-modal/api2.js +178 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
- package/lib/vtx-kh-modal/components/Record/index.js +204 -0
- package/lib/vtx-kh-modal/components/Record/index.less +7 -0
- package/lib/vtx-kh-modal/components/index.js +3 -0
- package/lib/vtx-kh-modal/imgs/count.png +0 -0
- package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/score.png +0 -0
- package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
- package/lib/vtx-kh-modal/index.js +46 -0
- package/lib/vtx-kh-modal/style/index.js +4 -0
- package/lib/vtx-kh-modal/style/index.less +1 -0
- package/lib/vtx-restaurant-modal/api.js +297 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
- package/lib/vtx-restaurant-modal/components/index.js +7 -0
- package/lib/vtx-restaurant-modal/config.js +283 -0
- package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-restaurant-modal/index.js +168 -0
- package/lib/vtx-restaurant-modal/style/index.js +1 -0
- package/lib/vtx-restaurant-modal/style/index.less +13 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -59
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +287 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
- package/lib/vtx-zg-modal/components/index.js +1 -0
- package/lib/vtx-zg-modal/imgs/dot.png +0 -0
- package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
- package/lib/vtx-zg-modal/index.js +42 -0
- package/lib/vtx-zg-modal/style/index.js +3 -0
- package/lib/vtx-zg-modal/style/index.less +1 -0
- package/lib/vtx-zzz-modal/index.js +10 -10
- package/package.json +1 -1
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.vm-modal-tabs {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 60px;
|
|
4
|
-
background: var(--vm-tabs-bg);
|
|
5
|
-
border-radius: 8px 8px 0 0;
|
|
6
|
-
border: none;
|
|
7
|
-
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
gap: 16px;
|
|
11
|
-
align-items: center;
|
|
12
|
-
|
|
13
|
-
&-item {
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 36px;
|
|
16
|
-
padding: 0 14px;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
color: var(--vm-tabs-font-color);
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
&-active {
|
|
25
|
-
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
-
border-radius: 26px;
|
|
27
|
-
color: var(--vm-tab-item-active-color);
|
|
28
|
-
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
.vm-modal-tabs {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 60px;
|
|
4
|
+
background: var(--vm-tabs-bg);
|
|
5
|
+
border-radius: 8px 8px 0 0;
|
|
6
|
+
border: none;
|
|
7
|
+
// border: 2px solid var(--vm-tab-border-color);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
&-item {
|
|
14
|
+
display: flex;
|
|
15
|
+
height: 36px;
|
|
16
|
+
padding: 0 14px;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
color: var(--vm-tabs-font-color);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
&-active {
|
|
25
|
+
background: var(--vm-tab-item-active-bg-color);
|
|
26
|
+
border-radius: 26px;
|
|
27
|
+
color: var(--vm-tab-item-active-color);
|
|
28
|
+
box-shadow: var(--vm-tab-item-active-box-shadow);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -13,7 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
import { getVtxToken } from '@vtx/utils';
|
|
14
14
|
import { useMemoizedFn, useSetState } from 'ahooks';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
|
-
import
|
|
16
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
17
17
|
import { VmIframeModal } from "../_components";
|
|
18
18
|
import VtxThemeProvider from "../_components/vm-theme-provider";
|
|
19
19
|
import VmHeader from "./Header";
|
|
@@ -31,7 +31,7 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
31
31
|
_props$theme = props.theme,
|
|
32
32
|
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
33
33
|
_props$type = props.type,
|
|
34
|
-
type = _props$type === void 0 ? '
|
|
34
|
+
type = _props$type === void 0 ? '' : _props$type,
|
|
35
35
|
id = props.id,
|
|
36
36
|
startDate = props.startDate,
|
|
37
37
|
endDate = props.endDate,
|
|
@@ -170,6 +170,9 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
170
170
|
openHistory: openHistory
|
|
171
171
|
}), /*#__PURE__*/_jsxs("div", {
|
|
172
172
|
className: 'vm-base-modal-body',
|
|
173
|
+
style: {
|
|
174
|
+
paddingTop: tabs.length > 1 ? 0 : 16
|
|
175
|
+
},
|
|
173
176
|
children: [tabs.length > 1 && /*#__PURE__*/_jsx(VmTabs, {
|
|
174
177
|
tabs: tabs,
|
|
175
178
|
onChange: function onChange(key) {
|
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -26,7 +26,8 @@ export var BaseService = {
|
|
|
26
26
|
var _useRequest2 = useRequest(function () {
|
|
27
27
|
return http.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
|
|
28
28
|
body: {
|
|
29
|
-
id: id
|
|
29
|
+
id: id,
|
|
30
|
+
url: window.location.origin
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
}, {
|
|
@@ -126,7 +127,7 @@ export var BaseService = {
|
|
|
126
127
|
return http.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/pageList"), {
|
|
127
128
|
body: {
|
|
128
129
|
carCode: carCode,
|
|
129
|
-
|
|
130
|
+
alarmTypeCodes: alarmStrategyName,
|
|
130
131
|
startTime: startTime,
|
|
131
132
|
endTime: endTime,
|
|
132
133
|
page: page,
|
|
@@ -474,7 +475,7 @@ export var JxhService = {
|
|
|
474
475
|
loading = _useRequest19.loading;
|
|
475
476
|
return {
|
|
476
477
|
dailyData: ((dailyDataRes === null || dailyDataRes === void 0 ? void 0 : dailyDataRes.data) || []).map(function (item) {
|
|
477
|
-
var percent = item.
|
|
478
|
+
var percent = item.workMileage / item.driveMileage * 100;
|
|
478
479
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
479
480
|
percent: (percent > 100 ? 100 : percent).toFixed(2)
|
|
480
481
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-car-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 230px;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-car-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 230px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -88,6 +88,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
88
88
|
},
|
|
89
89
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
90
90
|
flex: '1',
|
|
91
|
+
style: {
|
|
92
|
+
minWidth: 0
|
|
93
|
+
},
|
|
91
94
|
children: /*#__PURE__*/_jsxs("div", {
|
|
92
95
|
className: 'vtx-car-info-right-wrap',
|
|
93
96
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -41,6 +41,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
41
41
|
},
|
|
42
42
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
43
43
|
flex: '1',
|
|
44
|
+
style: {
|
|
45
|
+
minWidth: 0
|
|
46
|
+
},
|
|
44
47
|
children: /*#__PURE__*/_jsxs("div", {
|
|
45
48
|
className: 'vtx-car-info-right-wrap',
|
|
46
49
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -111,7 +114,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
111
114
|
span: 12,
|
|
112
115
|
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
113
116
|
name: '行驶时长',
|
|
114
|
-
unit: '
|
|
117
|
+
unit: '',
|
|
115
118
|
value: secondToFormatTimeArray((todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.driveDuration) / 1000),
|
|
116
119
|
img: isDark ? darkDurationIcon : durationIcon
|
|
117
120
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -175,6 +178,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
175
178
|
color: 'geekblue'
|
|
176
179
|
}],
|
|
177
180
|
xAxis: xAxis,
|
|
181
|
+
unit: 'km',
|
|
178
182
|
yAxisList: [{
|
|
179
183
|
key: '',
|
|
180
184
|
unit: 'km',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-oil-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-oil-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vtx-car-water-wrap {
|
|
2
|
-
height: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
1
|
+
.vtx-car-water-wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useSetState } from 'ahooks';
|
|
14
14
|
import { useContext } from 'react';
|
|
15
|
-
import { VmTable, VmWrapper } from "../../../../_components";
|
|
15
|
+
import { VmTable, VmTag, VmWrapper } from "../../../../_components";
|
|
16
16
|
import { secondToFormatTime } from "../../../../_util";
|
|
17
17
|
import { JxhService } from "../../../api";
|
|
18
18
|
import { CarContext } from "../../../index";
|
|
@@ -42,12 +42,18 @@ var List = function List(props) {
|
|
|
42
42
|
title: '报警路段',
|
|
43
43
|
dataIndex: 'roadName',
|
|
44
44
|
key: 'roadName',
|
|
45
|
-
width:
|
|
45
|
+
width: 200
|
|
46
46
|
}, {
|
|
47
47
|
title: '报警类型',
|
|
48
48
|
dataIndex: 'subCategoryName',
|
|
49
49
|
key: 'subCategoryName',
|
|
50
|
-
width:
|
|
50
|
+
width: 120,
|
|
51
|
+
render: function render(text, record) {
|
|
52
|
+
return /*#__PURE__*/_jsx(VmTag, {
|
|
53
|
+
title: text,
|
|
54
|
+
type: record.subCategoryCode === 'CarOverSpeed' ? 'red' : 'yellow'
|
|
55
|
+
});
|
|
56
|
+
}
|
|
51
57
|
}, {
|
|
52
58
|
title: '报警开始时间',
|
|
53
59
|
dataIndex: 'startTime',
|
|
@@ -40,6 +40,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
40
40
|
},
|
|
41
41
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
42
42
|
flex: '1',
|
|
43
|
+
style: {
|
|
44
|
+
minWidth: 0
|
|
45
|
+
},
|
|
43
46
|
children: /*#__PURE__*/_jsxs("div", {
|
|
44
47
|
className: 'vtx-car-info-right-wrap',
|
|
45
48
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -136,6 +139,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
136
139
|
})
|
|
137
140
|
}],
|
|
138
141
|
xAxis: xAxis,
|
|
142
|
+
unit: '%',
|
|
139
143
|
yAxisList: [{
|
|
140
144
|
key: "\u2000",
|
|
141
145
|
unit: 'km',
|
|
@@ -146,7 +150,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
146
150
|
name: '(%)'
|
|
147
151
|
} : {}]),
|
|
148
152
|
lineList: extraData !== null && extraData > 0 ? [{
|
|
149
|
-
name: '
|
|
153
|
+
name: '有效完成率',
|
|
150
154
|
data: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values.length) > 0 ? workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.values[1] : [],
|
|
151
155
|
yAxisIndex: 1
|
|
152
156
|
}] : [],
|
|
@@ -102,8 +102,8 @@ var StaticInfo = function StaticInfo() {
|
|
|
102
102
|
width: 100
|
|
103
103
|
}, {
|
|
104
104
|
title: '核算作业里程(km)',
|
|
105
|
-
dataIndex: '
|
|
106
|
-
key: '
|
|
105
|
+
dataIndex: 'workMileage',
|
|
106
|
+
key: 'workMileage',
|
|
107
107
|
render: function render(text) {
|
|
108
108
|
return /*#__PURE__*/_jsx("span", {
|
|
109
109
|
children: text || '-'
|
|
@@ -153,7 +153,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
153
153
|
}
|
|
154
154
|
var percent = item.percent,
|
|
155
155
|
driveMileage = item.driveMileage,
|
|
156
|
-
|
|
156
|
+
workMileage = item.workMileage;
|
|
157
157
|
var color = 'gray';
|
|
158
158
|
if (percent > 0 && percent <= 50) {
|
|
159
159
|
color = 'red';
|
|
@@ -180,7 +180,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
180
180
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
181
181
|
type: "green",
|
|
182
182
|
img: workMileageIcon,
|
|
183
|
-
value:
|
|
183
|
+
value: workMileage,
|
|
184
184
|
style: {
|
|
185
185
|
width: '139px',
|
|
186
186
|
justifyContent: 'space-between'
|
|
@@ -216,7 +216,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
216
216
|
}), index);
|
|
217
217
|
}), /*#__PURE__*/_jsxs(Space, {
|
|
218
218
|
children: [/*#__PURE__*/_jsx("div", {
|
|
219
|
-
children: "\u6709\u6548\
|
|
219
|
+
children: "\u6709\u6548\u4F5C\u4E1A\u7387\uFF1A"
|
|
220
220
|
}), /*#__PURE__*/_jsx("div", {
|
|
221
221
|
className: 'vtx-car-calendar-complete-legend',
|
|
222
222
|
style: {
|
|
@@ -276,10 +276,11 @@ var StaticInfo = function StaticInfo() {
|
|
|
276
276
|
}, {
|
|
277
277
|
name: '核算作业里程',
|
|
278
278
|
data: dailyData.map(function (item) {
|
|
279
|
-
return "\u2000".concat(item.
|
|
279
|
+
return "\u2000".concat(item.workMileage);
|
|
280
280
|
}),
|
|
281
281
|
color: 'green'
|
|
282
282
|
}],
|
|
283
|
+
unit: '%',
|
|
283
284
|
xAxis: dailyData.map(function (item) {
|
|
284
285
|
return item.workDate;
|
|
285
286
|
}),
|
|
@@ -100,24 +100,28 @@ var WorkRecord = function WorkRecord() {
|
|
|
100
100
|
dataIndex: 'workDate',
|
|
101
101
|
key: 'workDate',
|
|
102
102
|
width: 100,
|
|
103
|
-
sorter: true
|
|
103
|
+
sorter: true,
|
|
104
|
+
fixed: 'left'
|
|
104
105
|
}, {
|
|
105
106
|
title: '作业开始时间',
|
|
106
107
|
dataIndex: 'workStartTime',
|
|
107
108
|
key: 'workStartTime',
|
|
108
109
|
width: 150,
|
|
109
|
-
sorter: true
|
|
110
|
+
sorter: true,
|
|
111
|
+
fixed: 'left'
|
|
110
112
|
}, {
|
|
111
113
|
title: '作业结束时间',
|
|
112
114
|
dataIndex: 'workEndTime',
|
|
113
115
|
key: 'workEndTime',
|
|
114
116
|
width: 150,
|
|
115
|
-
sorter: true
|
|
117
|
+
sorter: true,
|
|
118
|
+
fixed: 'left'
|
|
116
119
|
}, {
|
|
117
120
|
title: '作业类型',
|
|
118
121
|
dataIndex: 'workTypeName',
|
|
119
122
|
key: 'workTypeName',
|
|
120
123
|
width: 100,
|
|
124
|
+
fixed: 'left',
|
|
121
125
|
render: function render(text, record) {
|
|
122
126
|
return /*#__PURE__*/_jsx(VmTag, {
|
|
123
127
|
title: text,
|
|
@@ -129,6 +133,7 @@ var WorkRecord = function WorkRecord() {
|
|
|
129
133
|
dataIndex: 'roadName',
|
|
130
134
|
key: 'roadName',
|
|
131
135
|
width: 150,
|
|
136
|
+
fixed: 'left',
|
|
132
137
|
ellipsis: true
|
|
133
138
|
}];
|
|
134
139
|
if (extraData !== null && extraData > 0) {
|
|
@@ -139,10 +144,10 @@ var WorkRecord = function WorkRecord() {
|
|
|
139
144
|
align: 'right',
|
|
140
145
|
width: 110
|
|
141
146
|
}, {
|
|
142
|
-
title: '计划趟次',
|
|
147
|
+
title: '计划趟次(趟)',
|
|
143
148
|
dataIndex: 'workCount',
|
|
144
149
|
key: 'workCount',
|
|
145
|
-
width:
|
|
150
|
+
width: 110,
|
|
146
151
|
align: 'right',
|
|
147
152
|
render: function render(text, record) {
|
|
148
153
|
return /*#__PURE__*/_jsx("span", {
|
|
@@ -150,16 +155,16 @@ var WorkRecord = function WorkRecord() {
|
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
157
|
}, {
|
|
153
|
-
title: '核算作业里程',
|
|
158
|
+
title: '核算作业里程(km)',
|
|
154
159
|
dataIndex: 'workMileage',
|
|
155
160
|
key: 'workMileage',
|
|
156
|
-
width:
|
|
161
|
+
width: 130,
|
|
157
162
|
align: 'right'
|
|
158
163
|
}, {
|
|
159
|
-
title: '作业趟次',
|
|
164
|
+
title: '作业趟次(趟)',
|
|
160
165
|
dataIndex: 'actualWorkCount',
|
|
161
166
|
key: 'actualWorkCount',
|
|
162
|
-
width:
|
|
167
|
+
width: 110,
|
|
163
168
|
align: 'right'
|
|
164
169
|
}, {
|
|
165
170
|
title: '作业均速(km/h)',
|
|
@@ -260,7 +265,7 @@ var WorkRecord = function WorkRecord() {
|
|
|
260
265
|
xAxis: names,
|
|
261
266
|
unit: "%",
|
|
262
267
|
dataList: [{
|
|
263
|
-
name: '
|
|
268
|
+
name: '有效完成率',
|
|
264
269
|
data: (values === null || values === void 0 ? void 0 : values.length) > 1 ? values[1] : [],
|
|
265
270
|
areaStyle: {
|
|
266
271
|
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
|
|
@@ -302,6 +307,7 @@ var WorkRecord = function WorkRecord() {
|
|
|
302
307
|
name: '核算作业里程',
|
|
303
308
|
data: (values === null || values === void 0 ? void 0 : values.length) > 0 ? values[0] : []
|
|
304
309
|
}],
|
|
310
|
+
unit: 'km',
|
|
305
311
|
loading: workAnaLoading,
|
|
306
312
|
height: 190,
|
|
307
313
|
yAxisList: [{
|
|
@@ -317,9 +323,11 @@ var WorkRecord = function WorkRecord() {
|
|
|
317
323
|
span: 24,
|
|
318
324
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
319
325
|
title: '作业明细',
|
|
320
|
-
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
326
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({
|
|
321
327
|
columns: columns
|
|
322
|
-
}, tableProps)
|
|
328
|
+
}, tableProps), {}, {
|
|
329
|
+
indexFixed: true
|
|
330
|
+
}))
|
|
323
331
|
})
|
|
324
332
|
})]
|
|
325
333
|
});
|
|
@@ -115,6 +115,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
115
115
|
},
|
|
116
116
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
117
117
|
flex: '1',
|
|
118
|
+
style: {
|
|
119
|
+
minWidth: 0
|
|
120
|
+
},
|
|
118
121
|
children: /*#__PURE__*/_jsxs("div", {
|
|
119
122
|
className: 'vtx-car-info-right-wrap',
|
|
120
123
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -46,6 +46,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
46
46
|
},
|
|
47
47
|
children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
|
|
48
48
|
flex: '1',
|
|
49
|
+
style: {
|
|
50
|
+
minWidth: 0
|
|
51
|
+
},
|
|
49
52
|
children: /*#__PURE__*/_jsxs("div", {
|
|
50
53
|
className: 'vtx-car-info-right-wrap',
|
|
51
54
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -4,6 +4,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
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); }
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
|
+
import { VmCustom, VmVideo } from "../_components";
|
|
7
8
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
8
9
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
9
10
|
import VtxBaseModal from "../vtx-base-modal";
|
|
@@ -71,7 +72,7 @@ export var CarContext = /*#__PURE__*/React.createContext({
|
|
|
71
72
|
});
|
|
72
73
|
var Provider = CarContext.Provider;
|
|
73
74
|
var VtxCarModal = function VtxCarModal(props) {
|
|
74
|
-
var
|
|
75
|
+
var _contents;
|
|
75
76
|
var id = props.id,
|
|
76
77
|
title = props.title,
|
|
77
78
|
theme = props.theme,
|
|
@@ -193,6 +194,9 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
193
194
|
}
|
|
194
195
|
return tabs;
|
|
195
196
|
}, [info === null || info === void 0 ? void 0 : info.actionType]);
|
|
197
|
+
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
|
|
199
|
+
})), 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, {})));
|
|
196
200
|
var _useGetConfig = useGetConfig(code, tabs),
|
|
197
201
|
tabsData = _useGetConfig.tabsData;
|
|
198
202
|
var tabsList = useMemo(function () {
|
|
@@ -213,6 +217,16 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
213
217
|
}
|
|
214
218
|
return tabsList;
|
|
215
219
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), beenOilStatus]);
|
|
220
|
+
if (tabsList !== null && tabsList !== void 0 && tabsList.length) {
|
|
221
|
+
tabsList.forEach(function (ele) {
|
|
222
|
+
if (ele.url) {
|
|
223
|
+
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
224
|
+
id: id,
|
|
225
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
226
|
+
}, ele.key);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
216
230
|
var value = useMemo(function () {
|
|
217
231
|
return {
|
|
218
232
|
id: id,
|
|
@@ -250,7 +264,7 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
250
264
|
color: info.carStatus === 'OFFLINE' ? 'red' : 'green',
|
|
251
265
|
value: info.carStatusStr
|
|
252
266
|
}],
|
|
253
|
-
contents:
|
|
267
|
+
contents: contents
|
|
254
268
|
})
|
|
255
269
|
})
|
|
256
270
|
});
|