@vtx/modals2 6.0.0-beta.30 → 6.0.0-beta.32
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/vtx-car-modal/api.js +3 -3
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +2 -2
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +2 -2
- package/lib/vtx-road-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +1 -1
- package/lib/vtx-zf-modal/components/Base/index.less +9 -0
- package/lib/vtx-zf-modal/components/Process/index.less +7 -0
- package/package.json +1 -1
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -504,7 +504,7 @@ export var JxhService = {
|
|
|
504
504
|
loading = _useRequest20.loading;
|
|
505
505
|
return {
|
|
506
506
|
dailyData: ((dailyDataRes === null || dailyDataRes === void 0 ? void 0 : dailyDataRes.data) || []).map(function (item) {
|
|
507
|
-
var percent = item.workMileage / item.driveMileage * 100;
|
|
507
|
+
var percent = item.workMileage / (item.driveMileage || 1) * 100;
|
|
508
508
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
509
509
|
percent: (percent > 100 ? 100 : percent).toFixed(2)
|
|
510
510
|
});
|
|
@@ -778,7 +778,7 @@ export var LjsyService = {
|
|
|
778
778
|
loading: loading
|
|
779
779
|
};
|
|
780
780
|
},
|
|
781
|
-
|
|
781
|
+
useGetWorkInfoAnalysisNew: function useGetWorkInfoAnalysisNew(_ref13) {
|
|
782
782
|
var carId = _ref13.carId,
|
|
783
783
|
startDate = _ref13.startDate,
|
|
784
784
|
endDate = _ref13.endDate;
|
|
@@ -796,7 +796,7 @@ export var LjsyService = {
|
|
|
796
796
|
data = _useRequest34.data,
|
|
797
797
|
loading = _useRequest34.loading;
|
|
798
798
|
return {
|
|
799
|
-
|
|
799
|
+
workInfoAnalysis: (data === null || data === void 0 ? void 0 : data.data) || {},
|
|
800
800
|
loading: loading
|
|
801
801
|
};
|
|
802
802
|
},
|
|
@@ -106,7 +106,7 @@ function RateLegend() {
|
|
|
106
106
|
background: 'var(--blue-color)'
|
|
107
107
|
}
|
|
108
108
|
}), /*#__PURE__*/_jsx("div", {
|
|
109
|
-
children: "(80%-100%
|
|
109
|
+
children: "(80%-100%)"
|
|
110
110
|
}), /*#__PURE__*/_jsx("div", {
|
|
111
111
|
className: 'vtx-car-calendar-complete-legend',
|
|
112
112
|
style: {
|
|
@@ -95,7 +95,7 @@ function RateLegend() {
|
|
|
95
95
|
background: 'var(--blue-color)'
|
|
96
96
|
}
|
|
97
97
|
}), /*#__PURE__*/_jsx("div", {
|
|
98
|
-
children: "(80%-100%
|
|
98
|
+
children: "(80%-100%)"
|
|
99
99
|
}), /*#__PURE__*/_jsx("div", {
|
|
100
100
|
className: 'vtx-car-calendar-complete-legend',
|
|
101
101
|
style: {
|
|
@@ -258,7 +258,7 @@ function Calendar(_ref) {
|
|
|
258
258
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
259
259
|
type: "green",
|
|
260
260
|
img: workMileageIcon,
|
|
261
|
-
value: (workMileage / 1000).toFixed(2),
|
|
261
|
+
value: workMileage ? (workMileage / 1000).toFixed(2) : 0,
|
|
262
262
|
style: {
|
|
263
263
|
width: '139px',
|
|
264
264
|
justifyContent: 'space-between'
|
|
@@ -48,13 +48,13 @@ var BaseInfo = function BaseInfo() {
|
|
|
48
48
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49
49
|
date = _useState2[0],
|
|
50
50
|
setDate = _useState2[1];
|
|
51
|
-
var _LjsyService$useGetWo = LjsyService.
|
|
51
|
+
var _LjsyService$useGetWo = LjsyService.useGetWorkInfo({
|
|
52
52
|
carId: id,
|
|
53
53
|
startDate: dayjs(date).subtract(6, 'day').format('YYYY-MM-DD'),
|
|
54
54
|
endDate: dayjs(date).format('YYYY-MM-DD')
|
|
55
55
|
}),
|
|
56
56
|
taskDaySummary = _LjsyService$useGetWo.taskDaySummary;
|
|
57
|
-
var _LjsyService$useGetWo2 = LjsyService.
|
|
57
|
+
var _LjsyService$useGetWo2 = LjsyService.useGetWorkInfoAnalysisNew({
|
|
58
58
|
carId: id,
|
|
59
59
|
startDate: dayjs(date).subtract(6, 'day').format('YYYY-MM-DD'),
|
|
60
60
|
endDate: dayjs(date).format('YYYY-MM-DD')
|
|
@@ -62,7 +62,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
62
62
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
63
63
|
type: "blue",
|
|
64
64
|
img: mileageIcon,
|
|
65
|
-
value: (planMileage / 1000).toFixed(2),
|
|
65
|
+
value: planMileage ? (planMileage / 1000).toFixed(2) : 0,
|
|
66
66
|
style: {
|
|
67
67
|
width: '139px',
|
|
68
68
|
justifyContent: 'space-between',
|
|
@@ -71,7 +71,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
71
71
|
}), /*#__PURE__*/_jsx(VmCalendarInner, {
|
|
72
72
|
type: "green",
|
|
73
73
|
img: workMileageIcon,
|
|
74
|
-
value: (workMileage / 1000).toFixed(2),
|
|
74
|
+
value: workMileage ? (workMileage / 1000).toFixed(2) : 0,
|
|
75
75
|
style: {
|
|
76
76
|
width: '139px',
|
|
77
77
|
justifyContent: 'space-between'
|
|
@@ -131,7 +131,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
131
131
|
background: 'var(--blue-color)'
|
|
132
132
|
}
|
|
133
133
|
}), /*#__PURE__*/_jsx("div", {
|
|
134
|
-
children: "(80%-100%
|
|
134
|
+
children: "(80%-100%)"
|
|
135
135
|
}), /*#__PURE__*/_jsx("div", {
|
|
136
136
|
className: 'vtx-road-calendar-complete-legend',
|
|
137
137
|
style: {
|
|
@@ -173,7 +173,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
173
173
|
background: 'var(--blue-color)'
|
|
174
174
|
}
|
|
175
175
|
}), /*#__PURE__*/_jsx("div", {
|
|
176
|
-
children: "(80%-100%
|
|
176
|
+
children: "(80%-100%)"
|
|
177
177
|
}), /*#__PURE__*/_jsx("div", {
|
|
178
178
|
className: 'vtx-road-calendar-complete-legend',
|
|
179
179
|
style: {
|
|
@@ -32,6 +32,15 @@
|
|
|
32
32
|
padding: 16px 18px;
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
overflow-y: auto;
|
|
35
|
+
.zf-base-item {
|
|
36
|
+
.zf-base-label {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
& > span:last-child {
|
|
40
|
+
word-wrap: break-word;
|
|
41
|
+
white-space: normal;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
35
44
|
.zf-base-list {
|
|
36
45
|
display: flex;
|
|
37
46
|
flex-wrap: wrap;
|