@vtx/modals2 5.0.57 → 5.0.58

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 (63) 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-filter/index.js +25 -0
  4. package/lib/_components/vm-pie-charts/index.js +13 -3
  5. package/lib/_components/vm-progress/index.js +6 -0
  6. package/lib/_components/vm-table/index.js +3 -3
  7. package/lib/_components/vm-table/style/index.less +12 -7
  8. package/lib/_components/vm-video/index.js +6 -1
  9. package/lib/style/index.less +5 -0
  10. package/lib/vtx-area-modal/api.js +2 -0
  11. package/lib/vtx-base-modal/index.js +5 -0
  12. package/lib/vtx-car-modal/api.js +179 -74
  13. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +133 -0
  14. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +84 -0
  15. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +71 -0
  16. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +223 -0
  17. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +549 -0
  18. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.less +6 -0
  19. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +291 -0
  20. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
  21. package/lib/vtx-car-modal/content/JXH/index.js +9 -1
  22. package/lib/vtx-car-modal/imgs/calendar/auto.png +0 -0
  23. package/lib/vtx-car-modal/imgs/calendar/dark_auto.png +0 -0
  24. package/lib/vtx-car-modal/imgs/calendar/dark_electricity.png +0 -0
  25. package/lib/vtx-car-modal/imgs/calendar/dark_oil.png +0 -0
  26. package/lib/vtx-car-modal/imgs/calendar/dark_transition.png +0 -0
  27. package/lib/vtx-car-modal/imgs/calendar/dark_water.png +0 -0
  28. package/lib/vtx-car-modal/imgs/calendar/dark_yy_mileage.png +0 -0
  29. package/lib/vtx-car-modal/imgs/calendar/electricity.png +0 -0
  30. package/lib/vtx-car-modal/imgs/calendar/oil.png +0 -0
  31. package/lib/vtx-car-modal/imgs/calendar/transition.png +0 -0
  32. package/lib/vtx-car-modal/imgs/calendar/water.png +0 -0
  33. package/lib/vtx-car-modal/imgs/calendar/yy_mileage.png +0 -0
  34. package/lib/vtx-car-modal/index.js +9 -1
  35. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -0
  36. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +2 -0
  37. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +2 -0
  38. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -0
  39. package/lib/vtx-road-modal/api.js +348 -11
  40. package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -5
  41. package/lib/vtx-road-modal/components/BaseInfo/index.js +6 -5
  42. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +63 -0
  43. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +434 -0
  44. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +80 -0
  45. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +127 -0
  46. package/lib/vtx-road-modal/components/LaneCalendar/index.js +194 -0
  47. package/lib/vtx-road-modal/components/LaneStatistical/index.js +312 -0
  48. package/lib/vtx-road-modal/components/LaneStatistical/index.less +32 -0
  49. package/lib/vtx-road-modal/components/index.js +4 -1
  50. package/lib/vtx-road-modal/imgs/car.png +0 -0
  51. package/lib/vtx-road-modal/imgs/dark_car.png +0 -0
  52. package/lib/vtx-road-modal/imgs/dark_person.png +0 -0
  53. package/lib/vtx-road-modal/imgs/person.png +0 -0
  54. package/lib/vtx-road-modal/imgs/schedule.png +0 -0
  55. package/lib/vtx-road-modal/imgs/work.png +0 -0
  56. package/lib/vtx-road-modal/imgs//344/274/230.png +0 -0
  57. package/lib/vtx-road-modal/imgs//345/267/256.png +0 -0
  58. package/lib/vtx-road-modal/imgs//350/211/257.png +0 -0
  59. package/lib/vtx-road-modal/index.js +18 -13
  60. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +2 -0
  61. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +2 -0
  62. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +2 -0
  63. package/package.json +1 -1
@@ -0,0 +1,194 @@
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 { Space } from 'antd';
14
+ import dayjs from 'dayjs';
15
+ import { useState } from 'react';
16
+ import { VmCalendar, VmCalendarInner, VmCalendarPercent, VmWrapper } from "../../../_components";
17
+ import { VMSelect } from "../../../_components/vm-filter";
18
+ import useSettings from "../../../_hooks/useSettings";
19
+ import { LaneService } from "../../api";
20
+ import darkWorkMileageIcon from "../../imgs/calendar/dark_green_mileage.png";
21
+ import darkMileageIcon from "../../imgs/calendar/dark_mileage.png";
22
+ import lightWorkMileageIcon from "../../imgs/calendar/green_mileage.png";
23
+ import lightMileageIcon from "../../imgs/calendar/mileage.png";
24
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
25
+ var Calendar = function Calendar(_ref) {
26
+ var id = _ref.id;
27
+ var _useSettings = useSettings(),
28
+ isDark = _useSettings.isDark;
29
+ var _useState = useState(dayjs()),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ month = _useState2[0],
32
+ setMonth = _useState2[1];
33
+ var _useState3 = useState(undefined),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ workTypeCodes = _useState4[0],
36
+ setWorkTypeCodes = _useState4[1];
37
+ var _useState5 = useState(undefined),
38
+ _useState6 = _slicedToArray(_useState5, 2),
39
+ facilityTypeCodes = _useState6[0],
40
+ setFacilityTypeCodes = _useState6[1];
41
+ var _LaneService$useCalen = LaneService.useCalendar({
42
+ id: id,
43
+ startDate: dayjs(month).startOf('month').format('YYYY-MM-DD'),
44
+ endDate: dayjs(month).endOf('month').format('YYYY-MM-DD'),
45
+ workTypeCodes: workTypeCodes,
46
+ facilityTypeCodes: facilityTypeCodes
47
+ }),
48
+ calendarInfo = _LaneService$useCalen.calendarInfo;
49
+ var workTypeCodeList = LaneService.useGetParams('param_zyqs_workingType');
50
+ var _LaneService$useGetLa = LaneService.useGetLaneList(),
51
+ laneList = _LaneService$useGetLa.laneList;
52
+ var mileageIcon = lightMileageIcon;
53
+ var workMileageIcon = lightWorkMileageIcon;
54
+ if (isDark) {
55
+ mileageIcon = darkMileageIcon;
56
+ workMileageIcon = darkWorkMileageIcon;
57
+ }
58
+ var dateCellRender = function dateCellRender(value) {
59
+ var date = dayjs(value).format('YYYY-MM-DD');
60
+ var info = calendarInfo[date];
61
+ var _ref2 = info || {},
62
+ planMileage = _ref2.planMileage,
63
+ workMileage = _ref2.workMileage,
64
+ completeRate = _ref2.completeRate;
65
+ var color = 'gray';
66
+ if (completeRate > 0 && completeRate <= 50) {
67
+ color = 'red';
68
+ } else if (completeRate > 50 && completeRate <= 80) {
69
+ color = 'yellow';
70
+ } else if (completeRate > 80 && completeRate < 100) {
71
+ color = 'blue';
72
+ } else if (completeRate >= 100) {
73
+ color = 'green';
74
+ }
75
+ return info && /*#__PURE__*/_jsxs(_Fragment, {
76
+ children: [/*#__PURE__*/_jsx(VmCalendarPercent, {
77
+ percent: completeRate,
78
+ color: color
79
+ }), /*#__PURE__*/_jsx(VmCalendarInner, {
80
+ type: "blue",
81
+ img: mileageIcon,
82
+ value: planMileage,
83
+ style: {
84
+ width: '139px',
85
+ justifyContent: 'space-between',
86
+ margin: '8px 0'
87
+ }
88
+ }), /*#__PURE__*/_jsx(VmCalendarInner, {
89
+ type: "green",
90
+ img: workMileageIcon,
91
+ value: workMileage,
92
+ style: {
93
+ width: '139px',
94
+ justifyContent: 'space-between'
95
+ }
96
+ })]
97
+ });
98
+ };
99
+ return /*#__PURE__*/_jsxs(VmWrapper, {
100
+ title: '作业分析',
101
+ extraLeft: /*#__PURE__*/_jsxs(Space, {
102
+ children: [/*#__PURE__*/_jsx(VMSelect, {
103
+ options: laneList,
104
+ style: {
105
+ width: 160
106
+ },
107
+ placeholder: "\u8BF7\u9009\u62E9\u8F66\u9053",
108
+ onChange: setFacilityTypeCodes,
109
+ value: facilityTypeCodes,
110
+ allowClear: true
111
+ }), /*#__PURE__*/_jsx(VMSelect, {
112
+ options: workTypeCodeList,
113
+ style: {
114
+ width: 160
115
+ },
116
+ placeholder: "\u8BF7\u9009\u62E9\u4F5C\u4E1A\u7C7B\u578B",
117
+ onChange: setWorkTypeCodes,
118
+ value: workTypeCodes,
119
+ allowClear: true
120
+ })]
121
+ }),
122
+ filterType: "monthPicker",
123
+ dateValue: month,
124
+ filterChange: setMonth,
125
+ disabledDate: function disabledDate(current) {
126
+ return current && current > dayjs().endOf('M');
127
+ },
128
+ children: [/*#__PURE__*/_jsxs("div", {
129
+ className: 'vtx-road-calendar-head',
130
+ children: [[{
131
+ name: '排班里程(km)',
132
+ img: mileageIcon,
133
+ type: 'blue'
134
+ }, {
135
+ name: '作业里程(km)',
136
+ img: workMileageIcon,
137
+ type: 'green'
138
+ }].map(function (item, index) {
139
+ return /*#__PURE__*/_jsx(VmCalendarInner, _objectSpread(_objectSpread({}, item), {}, {
140
+ value: item.name
141
+ }), index);
142
+ }), /*#__PURE__*/_jsxs(Space, {
143
+ children: [/*#__PURE__*/_jsx("div", {
144
+ children: "\u5B8C\u6210\u7387\uFF1A"
145
+ }), /*#__PURE__*/_jsx("div", {
146
+ className: 'vtx-road-calendar-complete-legend',
147
+ style: {
148
+ background: 'var(--gray-color)'
149
+ }
150
+ }), /*#__PURE__*/_jsx("div", {
151
+ children: "0%"
152
+ }), /*#__PURE__*/_jsx("div", {
153
+ className: 'vtx-road-calendar-complete-legend',
154
+ style: {
155
+ background: 'var(--red-color)'
156
+ }
157
+ }), /*#__PURE__*/_jsx("div", {
158
+ children: "(0%-50%]"
159
+ }), /*#__PURE__*/_jsx("div", {
160
+ className: 'vtx-road-calendar-complete-legend',
161
+ style: {
162
+ background: 'var(--yellow-color)'
163
+ }
164
+ }), /*#__PURE__*/_jsx("div", {
165
+ children: "(50%-80%]"
166
+ }), /*#__PURE__*/_jsx("div", {
167
+ className: 'vtx-road-calendar-complete-legend',
168
+ style: {
169
+ background: 'var(--blue-color)'
170
+ }
171
+ }), /*#__PURE__*/_jsx("div", {
172
+ children: "(80%-100%]"
173
+ }), /*#__PURE__*/_jsx("div", {
174
+ className: 'vtx-road-calendar-complete-legend',
175
+ style: {
176
+ background: 'var(--green-color)'
177
+ }
178
+ }), /*#__PURE__*/_jsx("div", {
179
+ children: "100%"
180
+ })]
181
+ })]
182
+ }), /*#__PURE__*/_jsx("div", {
183
+ style: {
184
+ flex: 1,
185
+ minHeight: 0
186
+ },
187
+ children: /*#__PURE__*/_jsx(VmCalendar, {
188
+ dateCellRender: dateCellRender,
189
+ value: month
190
+ })
191
+ })]
192
+ });
193
+ };
194
+ export default Calendar;
@@ -0,0 +1,312 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { useSetState } from 'ahooks';
8
+ import { Col, Row } from 'antd';
9
+ import classnames from 'classnames';
10
+ import dayjs from 'dayjs';
11
+ import { isEmpty } from 'lodash';
12
+ import { useEffect, useMemo, useState } from 'react';
13
+ import { VmBarCharts, VmFactor, VmLineCharts, VmWrapper } from "../../../_components";
14
+ import { VMSelect } from "../../../_components/vm-filter";
15
+ import useSettings from "../../../_hooks/useSettings";
16
+ import { LaneService } from "../../api";
17
+ import "./index.less";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
+ var Statistical = function Statistical(_ref) {
20
+ var id = _ref.id;
21
+ var _useSettings = useSettings(),
22
+ isDark = _useSettings.isDark,
23
+ sDate = _useSettings.startDate,
24
+ eDate = _useSettings.endDate;
25
+ var _useSetState = useSetState({
26
+ startDate: sDate ? sDate : dayjs().startOf('M'),
27
+ endDate: eDate ? eDate : dayjs()
28
+ }),
29
+ _useSetState2 = _slicedToArray(_useSetState, 2),
30
+ state = _useSetState2[0],
31
+ setState = _useSetState2[1];
32
+ var startDate = dayjs(state.startDate).format('YYYY-MM-DD');
33
+ var endDate = dayjs(state.endDate).format('YYYY-MM-DD');
34
+ var _useState = useState(''),
35
+ _useState2 = _slicedToArray(_useState, 2),
36
+ shiftId = _useState2[0],
37
+ setShiftId = _useState2[1];
38
+ var _LaneService$useWorkS = LaneService.useWorkSummary(id, startDate, endDate),
39
+ workSummary = _LaneService$useWorkS.workSummary;
40
+ var totalWorkInfo = workSummary.totalWorkInfo,
41
+ completeRate = workSummary.completeRate,
42
+ shiftInfoWorkInfos = workSummary.shiftInfoWorkInfos,
43
+ facilityTypeWorkInfos = workSummary.facilityTypeWorkInfos;
44
+ var _ref2 = totalWorkInfo || {},
45
+ days = _ref2.days,
46
+ workMileage = _ref2.workMileage,
47
+ planMileage = _ref2.planMileage;
48
+ useEffect(function () {
49
+ if (!isEmpty(shiftInfoWorkInfos)) {
50
+ setShiftId(shiftInfoWorkInfos[0].id);
51
+ }
52
+ }, [shiftInfoWorkInfos]);
53
+ var facilityTypeData = useMemo(function () {
54
+ var xAxis = [];
55
+ var dataList = [];
56
+ (facilityTypeWorkInfos || []).forEach(function (item, index) {
57
+ var facilityTypeName = item.facilityTypeName,
58
+ dayWorkInfos = item.dayWorkInfos;
59
+ var data = [];
60
+ dayWorkInfos.forEach(function (dayItem) {
61
+ data.push(dayItem.completeRate);
62
+ if (index === 0) {
63
+ xAxis.push(dayItem.date);
64
+ }
65
+ });
66
+ dataList.push({
67
+ name: facilityTypeName,
68
+ data: data,
69
+ smooth: true,
70
+ symbol: 'none'
71
+ });
72
+ });
73
+ return {
74
+ xAxis: xAxis,
75
+ dataList: dataList
76
+ };
77
+ }, [facilityTypeWorkInfos]);
78
+ var shiftData = useMemo(function () {
79
+ var shiftInfo = (shiftInfoWorkInfos || []).find(function (item) {
80
+ return item.id === shiftId;
81
+ });
82
+ if (shiftInfo) {
83
+ var xAxis = [];
84
+ var planMileageList = [];
85
+ var workMileageList = [];
86
+ (shiftInfo.dayWorkInfos || []).forEach(function (item) {
87
+ xAxis.push(item.date);
88
+ planMileageList.push(item.planMileage);
89
+ workMileageList.push(item.workMileage);
90
+ });
91
+ return {
92
+ xAxis: xAxis,
93
+ dataList: [{
94
+ name: '排班里程',
95
+ data: planMileageList,
96
+ color: 'geekblue'
97
+ }, {
98
+ name: '作业里程',
99
+ data: workMileageList,
100
+ color: 'green'
101
+ }]
102
+ };
103
+ }
104
+ return {};
105
+ }, [shiftInfoWorkInfos, shiftId]);
106
+ return /*#__PURE__*/_jsxs(Row, {
107
+ gutter: [16, 16],
108
+ children: [/*#__PURE__*/_jsx(Col, {
109
+ span: 24,
110
+ children: /*#__PURE__*/_jsx(VmWrapper, {
111
+ title: '作业汇总分析',
112
+ filterType: 'rangePicker',
113
+ filterChange: function filterChange(date) {
114
+ setState({
115
+ startDate: date[0],
116
+ endDate: date[1]
117
+ });
118
+ },
119
+ dateValue: [state.startDate, state.endDate],
120
+ children: /*#__PURE__*/_jsxs(Row, {
121
+ align: 'middle',
122
+ justify: 'center',
123
+ children: [/*#__PURE__*/_jsx(Col, {
124
+ span: 12,
125
+ children: /*#__PURE__*/_jsxs(Row, {
126
+ gutter: [26, 26],
127
+ align: 'middle',
128
+ justify: 'center',
129
+ children: [/*#__PURE__*/_jsx(Col, {
130
+ children: /*#__PURE__*/_jsx(VmFactor, {
131
+ name: '排班天数',
132
+ unit: '天',
133
+ fontType: 'cyan',
134
+ value: days,
135
+ img: isDark ? require("../../imgs/factor/dark_over_rate.png") : require("../../imgs/factor/over_rate.png")
136
+ })
137
+ }), /*#__PURE__*/_jsx(Col, {
138
+ children: /*#__PURE__*/_jsx(VmFactor, {
139
+ name: '排班总里程',
140
+ unit: '公里',
141
+ fontType: 'blue',
142
+ value: planMileage,
143
+ img: isDark ? require("../../imgs/factor/dark_plan_mileage.png") : require("../../imgs/factor/plan_mileage.png")
144
+ })
145
+ }), /*#__PURE__*/_jsx(Col, {
146
+ children: /*#__PURE__*/_jsx(VmFactor, {
147
+ name: '作业总里程',
148
+ unit: '公里',
149
+ fontType: 'green',
150
+ value: workMileage,
151
+ img: isDark ? require("../../imgs/factor/dark_valid_mileage.png") : require("../../imgs/factor/valid_mileage.png")
152
+ })
153
+ })]
154
+ })
155
+ }), /*#__PURE__*/_jsxs(Col, {
156
+ span: 12,
157
+ children: [/*#__PURE__*/_jsxs(Row, {
158
+ align: 'middle',
159
+ justify: 'space-between',
160
+ style: {
161
+ fontWeight: 600,
162
+ fontSize: 16,
163
+ marginBottom: 10
164
+ },
165
+ children: [/*#__PURE__*/_jsx("div", {
166
+ children: "\u5E73\u5747\u5B8C\u6210\u7387"
167
+ }), /*#__PURE__*/_jsxs("div", {
168
+ children: [totalWorkInfo === null || totalWorkInfo === void 0 ? void 0 : totalWorkInfo.completeRate, "%"]
169
+ })]
170
+ }), /*#__PURE__*/_jsxs("div", {
171
+ className: classnames('road-statistic-summary-main-rate', {
172
+ 'road-statistic-summary-main-rate-dark': isDark
173
+ }),
174
+ children: [/*#__PURE__*/_jsxs("div", {
175
+ className: "road-statistic-summary-main-rate--item",
176
+ children: [/*#__PURE__*/_jsxs("div", {
177
+ className: "road-statistic-summary-main-rate--label",
178
+ children: [/*#__PURE__*/_jsx("div", {
179
+ className: "road-statistic-summary-main-rate--block",
180
+ style: {
181
+ background: 'var(--red-color)'
182
+ }
183
+ }), /*#__PURE__*/_jsx("span", {
184
+ children: '<50%'
185
+ })]
186
+ }), /*#__PURE__*/_jsxs("div", {
187
+ className: classnames('road-statistic-summary-main-rate--value', {
188
+ white_yellow: isDark
189
+ }),
190
+ children: [/*#__PURE__*/_jsx("span", {
191
+ children: (completeRate === null || completeRate === void 0 ? void 0 : completeRate.rate1Days) || 0
192
+ }), "\u5929"]
193
+ })]
194
+ }), /*#__PURE__*/_jsxs("div", {
195
+ className: "road-statistic-summary-main-rate--item",
196
+ children: [/*#__PURE__*/_jsxs("div", {
197
+ className: "road-statistic-summary-main-rate--label",
198
+ children: [/*#__PURE__*/_jsx("div", {
199
+ className: "road-statistic-summary-main-rate--block",
200
+ style: {
201
+ background: 'var(--yellow-color)'
202
+ }
203
+ }), /*#__PURE__*/_jsx("span", {
204
+ children: '50%≤完成率<80%'
205
+ })]
206
+ }), /*#__PURE__*/_jsxs("div", {
207
+ className: classnames('road-statistic-summary-main-rate--value', {
208
+ white_blue: isDark
209
+ }),
210
+ children: [/*#__PURE__*/_jsx("span", {
211
+ children: (completeRate === null || completeRate === void 0 ? void 0 : completeRate.rate2Days) || 0
212
+ }), "\u5929"]
213
+ })]
214
+ }), /*#__PURE__*/_jsxs("div", {
215
+ className: "road-statistic-summary-main-rate--item",
216
+ children: [/*#__PURE__*/_jsxs("div", {
217
+ className: "road-statistic-summary-main-rate--label",
218
+ children: [/*#__PURE__*/_jsx("div", {
219
+ className: "road-statistic-summary-main-rate--block",
220
+ style: {
221
+ background: 'var(--blue-color)'
222
+ }
223
+ }), /*#__PURE__*/_jsx("span", {
224
+ children: '80%≤完成率<100%'
225
+ })]
226
+ }), /*#__PURE__*/_jsxs("div", {
227
+ className: classnames('road-statistic-summary-main-rate--value', {
228
+ white_green: isDark
229
+ }),
230
+ children: [/*#__PURE__*/_jsx("span", {
231
+ children: (completeRate === null || completeRate === void 0 ? void 0 : completeRate.rate3Days) || 0
232
+ }), "\u5929"]
233
+ })]
234
+ }), /*#__PURE__*/_jsxs("div", {
235
+ className: "road-statistic-summary-main-rate--item",
236
+ children: [/*#__PURE__*/_jsxs("div", {
237
+ className: "road-statistic-summary-main-rate--label",
238
+ children: [/*#__PURE__*/_jsx("div", {
239
+ className: "road-statistic-summary-main-rate--block",
240
+ style: {
241
+ background: 'var(--green-color)'
242
+ }
243
+ }), /*#__PURE__*/_jsx("span", {
244
+ children: '=100%'
245
+ })]
246
+ }), /*#__PURE__*/_jsxs("div", {
247
+ className: classnames('road-statistic-summary-main-rate--value', {
248
+ white_blue: isDark
249
+ }),
250
+ children: [/*#__PURE__*/_jsx("span", {
251
+ children: (completeRate === null || completeRate === void 0 ? void 0 : completeRate.rate4Days) || 0
252
+ }), "\u5929"]
253
+ })]
254
+ })]
255
+ })]
256
+ })]
257
+ })
258
+ })
259
+ }), /*#__PURE__*/_jsx(Col, {
260
+ span: 24,
261
+ flex: 'auto',
262
+ children: /*#__PURE__*/_jsxs(Row, {
263
+ gutter: [16, 16],
264
+ children: [/*#__PURE__*/_jsx(Col, {
265
+ span: 12,
266
+ children: /*#__PURE__*/_jsx(VmWrapper, {
267
+ title: '班次完成情况分析',
268
+ extraLeft: /*#__PURE__*/_jsx(VMSelect, {
269
+ options: (shiftInfoWorkInfos || []).filter(function (item) {
270
+ return item.startTime && item.endTime;
271
+ }).map(function (item) {
272
+ return {
273
+ label: "".concat(item.name, "(").concat(item.startTime.slice(0, 5), " ~ ").concat(item.endTime.slice(0, 5), ")"),
274
+ value: item.id
275
+ };
276
+ }),
277
+ value: shiftId,
278
+ onChange: setShiftId,
279
+ allowClear: false
280
+ }),
281
+ children: /*#__PURE__*/_jsx(VmBarCharts, {
282
+ height: 299,
283
+ dataList: shiftData.dataList,
284
+ xAxis: shiftData.xAxis,
285
+ unit: "km",
286
+ yAxisList: [{
287
+ key: '',
288
+ unit: 'km',
289
+ name: '(km)'
290
+ }]
291
+ })
292
+ })
293
+ }), /*#__PURE__*/_jsx(Col, {
294
+ span: 12,
295
+ children: /*#__PURE__*/_jsx(VmWrapper, {
296
+ title: '车道完成情况分析',
297
+ children: /*#__PURE__*/_jsx(VmLineCharts, {
298
+ dataList: facilityTypeData.dataList,
299
+ xAxis: facilityTypeData.xAxis,
300
+ unit: '%',
301
+ height: 299,
302
+ legendOption: {
303
+ left: 'center'
304
+ }
305
+ })
306
+ })
307
+ })]
308
+ })
309
+ })]
310
+ });
311
+ };
312
+ export default Statistical;
@@ -0,0 +1,32 @@
1
+ .road-statistic-summary-main-rate {
2
+ --bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
3
+ &-dark {
4
+ --bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
5
+ }
6
+ width: 100%;
7
+ height: 130px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-around;
11
+ padding: 0 24px;
12
+ background: var(--bg-color);
13
+ border-radius: 8px;
14
+ &--block {
15
+ width: 8px;
16
+ height: 8px;
17
+ border-radius: 50%;
18
+ }
19
+ &--label {
20
+ display: flex;
21
+ gap: 4px;
22
+ align-items: center;
23
+ font-size: 16px;
24
+ color: var(--img-text-color);
25
+ }
26
+ &--value {
27
+ margin-left: 12px;
28
+ font-weight: bold;
29
+ font-size: 24px;
30
+ color: #1F1F1F;
31
+ }
32
+ }
@@ -1,4 +1,7 @@
1
1
  import BaseInfo from "./BaseInfo";
2
2
  import Calendar from "./Calendar";
3
3
  import Statistical from "./Statistical";
4
- export { BaseInfo, Calendar, Statistical };
4
+ import LaneStatistical from "./LaneStatistical";
5
+ import LaneCalendar from "./LaneCalendar";
6
+ import LaneBaseInfo from "./LaneBaseInfo";
7
+ export { BaseInfo, Calendar, Statistical, LaneStatistical, LaneCalendar, LaneBaseInfo };
Binary file
Binary file
@@ -15,12 +15,15 @@ import { VmIframeModal } from "../_components";
15
15
  import useGetConfig from "../_hooks/useGetConfig";
16
16
  import VtxBaseModal from "../vtx-base-modal";
17
17
  import { BaseService } from "./api";
18
- import { BaseInfo, Calendar, Statistical } from "./components";
18
+ import { BaseInfo, Calendar, Statistical, LaneBaseInfo, LaneStatistical, LaneCalendar } from "./components";
19
19
  import "./style/index";
20
20
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  var TABS_BASE = 'base';
22
22
  var TABS_STATIC = 'statistical';
23
23
  var TABS_CALENDAR = 'calendar';
24
+ var TABS_LANE_BASE = 'lane-base';
25
+ var TABS_LANE_STATIC = 'lane-statistical';
26
+ var TABS_LANE_CALENDAR = 'lane-calendar';
24
27
  var VtxRoadModal = function VtxRoadModal(props) {
25
28
  var id = props.id,
26
29
  title = props.title,
@@ -47,11 +50,6 @@ var VtxRoadModal = function VtxRoadModal(props) {
47
50
  }
48
51
  var _useGetConfig = useGetConfig('tr', tabs),
49
52
  tabsData = _useGetConfig.tabsData;
50
- var _BaseService$useBaseI = BaseService.useBaseInfo(id, hasRule),
51
- info = _BaseService$useBaseI.info,
52
- baseInfo = _BaseService$useBaseI.baseInfo,
53
- rules = _BaseService$useBaseI.rules,
54
- workTypeColorMap = _BaseService$useBaseI.workTypeColorMap;
55
53
  var _useSetState = useSetState({
56
54
  src: '',
57
55
  visible: false,
@@ -73,14 +71,12 @@ var VtxRoadModal = function VtxRoadModal(props) {
73
71
  startDate: startDate,
74
72
  endDate: endDate,
75
73
  date: date,
76
- contents: _defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
74
+ tagList: [{
75
+ color: 'yellow',
76
+ value: jcssInfo.originTypeName
77
+ }],
78
+ contents: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
77
79
  id: id,
78
- data: {
79
- info: info,
80
- baseInfo: baseInfo,
81
- rules: rules,
82
- workTypeColorMap: workTypeColorMap
83
- },
84
80
  jcssInfo: jcssInfo,
85
81
  hasRule: hasRule,
86
82
  setIframeModalInfo: setIframeModalInfo
@@ -88,6 +84,15 @@ var VtxRoadModal = function VtxRoadModal(props) {
88
84
  id: id
89
85
  })), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {
90
86
  id: id
87
+ })), TABS_LANE_BASE, /*#__PURE__*/_jsx(LaneBaseInfo, {
88
+ id: id,
89
+ jcssInfo: jcssInfo,
90
+ hasRule: hasRule,
91
+ setIframeModalInfo: setIframeModalInfo
92
+ })), TABS_LANE_STATIC, /*#__PURE__*/_jsx(LaneStatistical, {
93
+ id: id
94
+ })), TABS_LANE_CALENDAR, /*#__PURE__*/_jsx(LaneCalendar, {
95
+ id: id
91
96
  }))
92
97
  }), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
93
98
  theme: theme,
@@ -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"),
@@ -69,12 +69,14 @@ var GDCLXL = function GDCLXL(_ref) {
69
69
  }), /*#__PURE__*/_jsx(Progress, {
70
70
  type: "dashboard",
71
71
  percent: ele.value,
72
+ size: 160,
72
73
  width: 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"),