@vtx/modals2 5.0.14 → 5.0.17

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 (64) hide show
  1. package/lib/_components/vm-card-statistics/index.less +27 -27
  2. package/lib/_components/vm-extra-tab/style/index.less +1 -1
  3. package/lib/_components/vm-factor/index.js +1 -1
  4. package/lib/_components/vm-factor-list/index.js +4 -1
  5. package/lib/_components/vm-factor-list/index.less +11 -11
  6. package/lib/_components/vm-filter/style/index.less +4 -3
  7. package/lib/_components/vm-pie-charts/index.js +3 -0
  8. package/lib/_components/vm-table/index.js +4 -4
  9. package/lib/_components/vm-wrapper/style/index.less +1 -1
  10. package/lib/_util/iconSvgHtml.js +653 -224
  11. package/lib/index.js +4 -1
  12. package/lib/style/index.less +1 -6
  13. package/lib/vtx-base-modal/Header/index.less +98 -98
  14. package/lib/vtx-base-modal/Tabs/index.js +31 -4
  15. package/lib/vtx-base-modal/Tabs/index.less +54 -31
  16. package/lib/vtx-base-modal/index.js +2 -2
  17. package/lib/vtx-base-modal/style/index.less +3 -1
  18. package/lib/vtx-car-modal/components/Info/index.js +3 -0
  19. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  20. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +16 -7
  21. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  22. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  23. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +2 -1
  24. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +21 -10
  25. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +16 -7
  26. package/lib/vtx-car-modal/index.js +29 -29
  27. package/lib/vtx-cc-cp-modal/index.js +6 -6
  28. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  29. package/lib/vtx-cc-unit-modal/index.js +6 -6
  30. package/lib/vtx-cp-modal/index.js +10 -14
  31. package/lib/vtx-default-modal/components/BaseInfo/index.less +1 -0
  32. package/lib/vtx-default-modal/index.js +3 -3
  33. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  34. package/lib/vtx-device-modal/index.js +5 -5
  35. package/lib/vtx-df-modal/index.js +5 -6
  36. package/lib/vtx-housing-estate-modal/index.js +1 -1
  37. package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +20 -0
  38. package/lib/vtx-jzlj-gcxm-modal/components/index.js +2 -0
  39. package/lib/vtx-jzlj-gcxm-modal/index.js +77 -0
  40. package/lib/vtx-jzlj-gcxm-modal/style/index.js +1 -0
  41. package/lib/vtx-jzlj-gcxm-modal/style/index.less +1 -0
  42. package/lib/vtx-qyry-modal/api.js +2 -0
  43. package/lib/vtx-qyry-modal/index.js +5 -9
  44. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  45. package/lib/vtx-restaurant-modal/config.js +52 -52
  46. package/lib/vtx-restaurant-modal/index.js +6 -6
  47. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  48. package/lib/vtx-road-modal/index.js +3 -3
  49. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +1 -1
  50. package/lib/vtx-shxq-modal/components/Tfd/index.js +1 -1
  51. package/lib/vtx-shxq-modal/components/Tfd/index.less +6 -0
  52. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +1 -1
  53. package/lib/vtx-shxq-modal/index.js +2 -2
  54. package/lib/vtx-staff-modal/index.js +5 -9
  55. package/lib/vtx-tfd-modal/index.js +2 -2
  56. package/lib/vtx-wr-modal/components/Base/Ptss.js +71 -31
  57. package/lib/vtx-wr-modal/components/Base/assets/alert.png +0 -0
  58. package/lib/vtx-wr-modal/components/Base/index.js +15 -3
  59. package/lib/vtx-wr-modal/components/Base/index.less +14 -1
  60. package/lib/vtx-wr-modal/index.js +3 -1
  61. package/lib/vtx-zf-modal/components/Record/index.js +10 -2
  62. package/lib/vtx-zf-modal/index.js +1 -17
  63. package/lib/vtx-zzz-modal/style/index.js +1 -0
  64. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -17,4 +17,7 @@ export { default as VtxCcCpModal } from "./vtx-cc-cp-modal";
17
17
  export { default as VtxKhModal } from "./vtx-kh-modal";
18
18
  export { default as VtxZgModal } from "./vtx-zg-modal";
19
19
  export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
20
- export { default as VtxZfModal } from "./vtx-zf-modal";
20
+ export { default as VtxZfModal } from "./vtx-zf-modal";
21
+
22
+ // 建筑垃圾产品弹窗
23
+ export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
@@ -26,15 +26,10 @@
26
26
  #cef0ff 100%
27
27
  );
28
28
  --modal-head-line-shadow: 0 4px 4px 0 rgba(0, 0, 0, 25%);
29
- --modal-content-bg: linear-gradient(
30
- 180deg,
31
- rgba(0, 120, 199, 0.8) 0%,
32
- rgba(15, 72, 118, 0) 100%
33
- );
34
29
  --modal-head-split-line-color: rgba(255, 255, 255, 0.2);
35
30
  --modal-content-bg: linear-gradient(
36
31
  180deg,
37
- rgba(0, 120, 199, 0.5) 0%,
32
+ rgba(0, 120, 199, 0.4) 0%,
38
33
  rgba(15, 72, 118, 0) 100%
39
34
  );
40
35
  --modal-content-box-shadow: 0 4px 4px 0 rgba(22, 119, 255, 25%),
@@ -1,98 +1,98 @@
1
- .vm-modal-header-container {
2
- width: 100%;
3
- height: 116px;
4
- border-radius: 8px 8px 0 0;
5
- background: var(--modal-head-bg);
6
- padding: 0 16px;
7
- margin-top: 1px;
8
- }
9
-
10
- .vm-modal-header-wrap {
11
- width: 100%;
12
- height: 56px;
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- position: relative;
17
- &::after {
18
- position: absolute;
19
- top: 54px;
20
- left: 0;
21
- content: '';
22
- width: 180px;
23
- height: 1px;
24
- background: var(--modal-head-line-bg);
25
- box-shadow: var(--modal-head-line-shadow);
26
- border-radius: 8px;
27
- animation: move 6s linear infinite;
28
-
29
- @keyframes move {
30
- 0% {
31
- left: 0;
32
- }
33
-
34
- 100% {
35
- left: calc(100% - 180px);
36
- }
37
- }
38
- }
39
-
40
- &-left {
41
- display: flex;
42
- align-items: center;
43
- gap: 8px;
44
-
45
- &-title {
46
- font-weight: bold;
47
- font-size: 20px;
48
- color: var(--modal-title-color);
49
- }
50
-
51
- &-tag {
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- gap: 4px;
56
- height: 24px;
57
- border-radius: 16px;
58
- font-size: 12px;
59
- padding: 0 8px;
60
- border: 1px solid;
61
- }
62
- }
63
-
64
- &-right {
65
- display: flex;
66
- align-items: center;
67
- gap: 16px;
68
-
69
- &-close {
70
- display: flex;
71
- align-items: center;
72
- justify-content: center;
73
- color: var(--modal-close-color);
74
- width: 28px;
75
- height: 28px;
76
- cursor: pointer;
77
- font-size: 16px;
78
- }
79
-
80
- &-line {
81
- width: 1px;
82
- height: 14px;
83
- background-color: var(--modal-head-split-line-color);
84
- }
85
-
86
- &-collect {
87
- width: 28px;
88
- height: 28px;
89
- border-radius: 8px;
90
- text-align: center;
91
- cursor: pointer;
92
-
93
- &.active {
94
- background: var(--collect-bg);
95
- }
96
- }
97
- }
98
- }
1
+ .vm-modal-header-container {
2
+ width: 100%;
3
+ height: 116px;
4
+ border-radius: 8px 8px 0 0;
5
+ background: var(--modal-head-bg);
6
+ padding: 0 16px;
7
+ margin-top: 1px;
8
+ }
9
+
10
+ .vm-modal-header-wrap {
11
+ width: 100%;
12
+ height: 56px;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ position: relative;
17
+ &::after {
18
+ position: absolute;
19
+ top: 54px;
20
+ left: 0;
21
+ content: '';
22
+ width: 180px;
23
+ height: 1px;
24
+ background: var(--modal-head-line-bg);
25
+ box-shadow: var(--modal-head-line-shadow);
26
+ border-radius: 8px;
27
+ animation: move 6s linear infinite;
28
+
29
+ @keyframes move {
30
+ 0% {
31
+ left: 0;
32
+ }
33
+
34
+ 100% {
35
+ left: calc(100% - 180px);
36
+ }
37
+ }
38
+ }
39
+
40
+ &-left {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+
45
+ &-title {
46
+ font-weight: bold;
47
+ font-size: 20px;
48
+ color: var(--modal-title-color);
49
+ }
50
+
51
+ &-tag {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ gap: 4px;
56
+ height: 24px;
57
+ border-radius: 16px;
58
+ font-size: 12px;
59
+ padding: 0 8px;
60
+ border: 1px solid;
61
+ }
62
+ }
63
+
64
+ &-right {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 16px;
68
+
69
+ &-close {
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ color: var(--modal-close-color);
74
+ width: 28px;
75
+ height: 28px;
76
+ cursor: pointer;
77
+ font-size: 16px;
78
+ }
79
+
80
+ &-line {
81
+ width: 1px;
82
+ height: 14px;
83
+ background-color: var(--modal-head-split-line-color);
84
+ }
85
+
86
+ &-collect {
87
+ width: 28px;
88
+ height: 28px;
89
+ border-radius: 8px;
90
+ text-align: center;
91
+ cursor: pointer;
92
+
93
+ &.active {
94
+ background: var(--collect-bg);
95
+ }
96
+ }
97
+ }
98
+ }
@@ -1,5 +1,5 @@
1
1
  import classNames from 'classnames';
2
- import { AccessIcon, AlarmIcon, AnalysisIcon, AnnouncementIcon, AnnualInspectionIcon, AssessmentIcon, AssetIcon, AttendanceIcon, CalendarIcon, CaseIcon, ChargingIcon, CollectionIcon, ContractIcon, DeviceIcon, DocumentIcon, EvaluationIcon, FactoryIcon, HistoryIcon, IndexIcon, InspectionIcon, InsuranceIcon, InterviewIcon, LifeCycleIcon, LogIcon, MaintenanceIcon, MeasurementIcon, OilIcon, OperationIcon, PointIcon, ProcessIcon, ProductionUnitIcon, RouteIcon, SchedulingIcon, SparePartsIcon, SpeedCurveIcon, StatisticsIcon, SummaryIcon, TrashIcon, VideoIcon, ViolationIcon, WaterIcon, WorkInfoIcon, WorkingConditionIcon, WorkOrderIcon } from "../../_util/iconSvgHtml";
2
+ import { AccessIcon, AlarmIcon, AnalysisIcon, AnnouncementIcon, AnnualInspectionIcon, AppraisalIcon, AppraiseIcon, AssessmentIcon, AssetIcon, AttendanceIcon, CalendarIcon, CaseIcon, ChargingIcon, CollectionIcon, ContractIcon, DeviceIcon, DocumentIcon, EquipmentIcon, EvaluationIcon, FactoryIcon, HistoryIcon, IndexIcon, InspectionIcon, InsuranceIcon, InterviewIcon, LifeCycleIcon, LogIcon, MaintenanceIcon, MeasurementIcon, MeteringIcon, OilIcon, OperationIcon, PointIcon, ProcessIcon, ProductionUnitIcon, RmIcon, RouteIcon, SbzjIcon, SchedulingIcon, ScoreIcon, SparePartsIcon, SpeedCurveIcon, StatisticsIcon, SummaryIcon, SyInfoIcon, TfdIcon, TfrdIcon, ThrowIcon, TrashIcon, VideoIcon, ViolationIcon, WaterIcon, WgrgsIcon, WgxwIcon, WorkConditionIcon, WorkInfoIcon, WorkingConditionIcon, WorkOrderIcon } from "../../_util/iconSvgHtml";
3
3
  import "./index.less";
4
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  var Tabs = function Tabs(props) {
@@ -10,9 +10,28 @@ var Tabs = function Tabs(props) {
10
10
  _props$theme = props.theme,
11
11
  theme = _props$theme === void 0 ? 'light' : _props$theme;
12
12
  var iconRender = {
13
+ 'default-base': SummaryIcon,
14
+ base: SummaryIcon,
13
15
  summary: SummaryIcon,
14
16
  history: HistoryIcon,
15
17
  alarm: AlarmIcon,
18
+ 'cp-sy': SyInfoIcon,
19
+ 'cp-warning': AlarmIcon,
20
+ 'cp-exeception': AlarmIcon,
21
+ sy: SyInfoIcon,
22
+ warning: AlarmIcon,
23
+ exeception: AlarmIcon,
24
+ rm: RmIcon,
25
+ 'default-rm': RmIcon,
26
+ appraisal: AppraisalIcon,
27
+ 'default-appraisal': AppraisalIcon,
28
+ equipment: EquipmentIcon,
29
+ sbzj: SbzjIcon,
30
+ wgxw: WgxwIcon,
31
+ tfrd: TfrdIcon,
32
+ throw: ThrowIcon,
33
+ tfd: TfdIcon,
34
+ wgrgs: WgrgsIcon,
16
35
  water: WaterIcon,
17
36
  oil: OilIcon,
18
37
  video: VideoIcon,
@@ -49,23 +68,31 @@ var Tabs = function Tabs(props) {
49
68
  route: RouteIcon,
50
69
  measurement: MeasurementIcon,
51
70
  workingCondition: WorkingConditionIcon,
71
+ workCondition: WorkConditionIcon,
72
+ metering: MeteringIcon,
52
73
  evaluation: EvaluationIcon,
53
74
  scheduling: SchedulingIcon,
54
75
  workOrder: WorkOrderIcon,
55
76
  assessment: AssessmentIcon,
56
- index: IndexIcon
77
+ index: IndexIcon,
78
+ appraise: AppraiseIcon,
79
+ score: ScoreIcon,
80
+ build: WorkInfoIcon,
81
+ file: DocumentIcon
57
82
  };
58
83
  return tabs.length ? /*#__PURE__*/_jsx("div", {
59
84
  className: 'vm-modal-tabs',
60
85
  children: tabs.map(function (tab, index) {
61
86
  var width = 26,
62
87
  height = 26;
63
- var ComponentIcon = iconRender[tab.key];
88
+ var ComponentIcon = iconRender[tab.key] || SummaryIcon;
64
89
  return /*#__PURE__*/_jsxs("div", {
65
90
  onClick: function onClick() {
66
91
  onChange(tab.key);
67
92
  },
68
- className: classNames('vm-modal-tabs-item', active === tab.key ? 'vm-modal-tabs-item-active' : 'vm-modal-tabs-item-normal'),
93
+ className: classNames('vm-modal-tabs-item', active === tab.key ? 'vm-modal-tabs-item-active' : 'vm-modal-tabs-item-normal', {
94
+ 'vm-modal-tabs-item-dark': theme !== 'light'
95
+ }),
69
96
  children: [ComponentIcon && /*#__PURE__*/_jsx(ComponentIcon, {
70
97
  width: width,
71
98
  height: height,
@@ -1,31 +1,54 @@
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
+ &.vm-modal-tabs-item-dark {
30
+ position: relative;
31
+ &::before {
32
+ content: '';
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ right: 0;
37
+ bottom: 0;
38
+ background: linear-gradient(
39
+ 180deg,
40
+ rgba(255, 255, 255, 1),
41
+ rgba(54, 161, 255, 1)
42
+ );
43
+ border-radius: 26px;
44
+ padding: 1px;
45
+ -webkit-mask: linear-gradient(#fff 0 0) content-box,
46
+ linear-gradient(#fff 0 0);
47
+ -webkit-mask-composite: xor;
48
+ mask-composite: exclude;
49
+ z-index: -1;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -126,7 +126,7 @@ var VmBaseModal = function VmBaseModal(props) {
126
126
  if (prefixList.length === 2) {
127
127
  prefix = "/".concat(prefixList[0]);
128
128
  }
129
- var _theme = theme === 'blue' ? 'dark' : theme;
129
+ var _theme = theme === 'light' ? 'light' : 'dark';
130
130
  if (type === 'car') {
131
131
  var path = 'index';
132
132
  src = iframeUrl || "".concat(prefix, "/carHistory/#/").concat(path, "?carId=").concat(id, "&theme=").concat(_theme, "&startTime=").concat(startDate ? dayjs(startDate).format('YYYY-MM-DD 00:00:00') : '', "&endTime=").concat(endDate ? dayjs(endDate).format('YYYY-MM-DD 23:59:59') : '');
@@ -184,7 +184,7 @@ var VmBaseModal = function VmBaseModal(props) {
184
184
  setCurrentTabKey(key);
185
185
  },
186
186
  active: currentTabKey,
187
- theme: "dark"
187
+ theme: theme
188
188
  }), /*#__PURE__*/_jsx(VtxThemeProvider, {
189
189
  value: value,
190
190
  children: /*#__PURE__*/_jsx("div", {
@@ -44,6 +44,7 @@
44
44
  width: 100%;
45
45
  background: var(--modal-content-bg);
46
46
  border-radius: 8px;
47
+ opacity: 0.8;
47
48
  }
48
49
  .vm-base-modal-content-wrap {
49
50
  flex: 1;
@@ -52,7 +53,8 @@
52
53
  padding: 0 16px 16px;
53
54
  .vm-base-modal-content {
54
55
  height: 100%;
55
- overflow: auto;
56
+ overflow-x: hidden;
57
+ overflow-y: auto;
56
58
  }
57
59
  }
58
60
  * {
@@ -87,6 +87,9 @@ var Info = function Info() {
87
87
  }];
88
88
  return /*#__PURE__*/_jsx(Col, {
89
89
  flex: '400px',
90
+ style: {
91
+ height: '100%'
92
+ },
90
93
  children: /*#__PURE__*/_jsxs(VmWrapper, {
91
94
  title: '基本信息',
92
95
  children: [/*#__PURE__*/_jsx(VmInfoCollection, {
@@ -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: 0;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -34,6 +34,14 @@ var BaseInfo = function BaseInfo() {
34
34
  loading = _BaseService$useDaily.loading;
35
35
  var todayInfo = _.last(dailyCarRunRes);
36
36
  var xAxis = _.map(dailyCarRunRes, 'reportDate');
37
+ var blueColor = '#1677FF';
38
+ var greenColor = '#0FB964';
39
+ var colorOpacity = 0.2;
40
+ if (isDark) {
41
+ blueColor = '#0095FF';
42
+ greenColor = '#36AB78';
43
+ colorOpacity = 0.6;
44
+ }
37
45
  return /*#__PURE__*/_jsxs(Row, {
38
46
  gutter: [16, 16],
39
47
  style: {
@@ -42,7 +50,8 @@ var BaseInfo = function BaseInfo() {
42
50
  children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
43
51
  flex: '1',
44
52
  style: {
45
- minWidth: 0
53
+ minWidth: 0,
54
+ height: '100%'
46
55
  },
47
56
  children: /*#__PURE__*/_jsxs("div", {
48
57
  className: 'vtx-car-info-right-wrap',
@@ -77,18 +86,18 @@ var BaseInfo = function BaseInfo() {
77
86
  dataList: [{
78
87
  name: '行驶里程',
79
88
  data: _.map(dailyCarRunRes, 'sumMileage'),
80
- color: 'rgba(22, 119, 255, 0.20)',
89
+ color: transformRgb(blueColor, colorOpacity),
81
90
  smooth: true,
82
91
  symbol: 'none',
83
92
  areaStyle: {
84
93
  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
85
94
  offset: 0,
86
- color: 'rgba(22, 119, 255, 0.20)'
95
+ color: transformRgb(blueColor, colorOpacity)
87
96
  },
88
97
  // 半透明
89
98
  {
90
99
  offset: 1,
91
- color: 'rgba(22, 119, 255, 0)'
100
+ color: transformRgb(blueColor, 0)
92
101
  } // 更透明
93
102
  ])
94
103
  }
@@ -132,18 +141,18 @@ var BaseInfo = function BaseInfo() {
132
141
  dataList: [{
133
142
  name: '行驶时长',
134
143
  data: _.map(dailyCarRunRes, 'driveDuration'),
135
- color: 'rgba(15, 185, 100, 0.20)',
144
+ color: transformRgb(greenColor, colorOpacity),
136
145
  smooth: true,
137
146
  symbol: 'none',
138
147
  areaStyle: {
139
148
  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
140
149
  offset: 0,
141
- color: 'rgba(15, 185, 100, 0.20)'
150
+ color: transformRgb(greenColor, colorOpacity)
142
151
  },
143
152
  // 半透明
144
153
  {
145
154
  offset: 1,
146
- color: 'rgba(15, 185, 100, 0)'
155
+ color: transformRgb(greenColor, 0)
147
156
  } // 更透明
148
157
  ])
149
158
  }
@@ -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
+ }
@@ -32,7 +32,8 @@ var BaseInfo = function BaseInfo() {
32
32
  children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
33
33
  flex: '1',
34
34
  style: {
35
- minWidth: 0
35
+ minWidth: 0,
36
+ height: '100%'
36
37
  },
37
38
  children: /*#__PURE__*/_jsxs("div", {
38
39
  className: 'vtx-car-info-right-wrap',
@@ -10,6 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
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
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
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { transformRgb } from "../../../../_util";
13
14
  import { Col, Row } from 'antd';
14
15
  import dayjs from 'dayjs';
15
16
  import * as echarts from 'echarts';
@@ -108,6 +109,15 @@ var BaseInfo = function BaseInfo() {
108
109
  fontType: 'blue'
109
110
  });
110
111
  }
112
+ var blueColor = '#1677FF';
113
+ var greenColor = '#0FB964';
114
+ var yellowColor = '#ffaa00';
115
+ var colorOpacity = 0.2;
116
+ if (isDark) {
117
+ blueColor = '#0095FF';
118
+ greenColor = '#36AB78';
119
+ colorOpacity = 0.6;
120
+ }
111
121
  return /*#__PURE__*/_jsxs(Row, {
112
122
  gutter: [16, 16],
113
123
  style: {
@@ -116,7 +126,8 @@ var BaseInfo = function BaseInfo() {
116
126
  children: [/*#__PURE__*/_jsx(Info, {}), /*#__PURE__*/_jsx(Col, {
117
127
  flex: '1',
118
128
  style: {
119
- minWidth: 0
129
+ minWidth: 0,
130
+ height: '100%'
120
131
  },
121
132
  children: /*#__PURE__*/_jsxs("div", {
122
133
  className: 'vtx-car-info-right-wrap',
@@ -179,18 +190,18 @@ var BaseInfo = function BaseInfo() {
179
190
  dataList: [{
180
191
  name: '已收点位',
181
192
  data: _.map(taskDaySummary, 'collectPointNum'),
182
- color: 'rgba(22, 119, 255, 0.20)',
193
+ color: transformRgb(greenColor, colorOpacity),
183
194
  smooth: true,
184
195
  symbol: 'none',
185
196
  areaStyle: {
186
197
  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
187
198
  offset: 0,
188
- color: 'rgba(22, 119, 255, 0.20)'
199
+ color: transformRgb(greenColor, colorOpacity)
189
200
  },
190
201
  // 半透明
191
202
  {
192
203
  offset: 1,
193
- color: 'rgba(22, 119, 255, 0)'
204
+ color: transformRgb(greenColor, 0)
194
205
  } // 更透明
195
206
  ])
196
207
  }
@@ -230,18 +241,18 @@ var BaseInfo = function BaseInfo() {
230
241
  dataList: [{
231
242
  name: '收集桶数',
232
243
  data: _.map(taskDaySummary, 'bucketNum'),
233
- color: 'rgba(15, 185, 100, 0.20)',
244
+ color: transformRgb(blueColor, colorOpacity),
234
245
  smooth: true,
235
246
  symbol: 'none',
236
247
  areaStyle: {
237
248
  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
238
249
  offset: 0,
239
- color: 'rgba(15, 185, 100, 0.20)'
250
+ color: transformRgb(blueColor, colorOpacity)
240
251
  },
241
252
  // 半透明
242
253
  {
243
254
  offset: 1,
244
- color: 'rgba(15, 185, 100, 0)'
255
+ color: transformRgb(blueColor, 0)
245
256
  } // 更透明
246
257
  ])
247
258
  }
@@ -282,18 +293,18 @@ var BaseInfo = function BaseInfo() {
282
293
  dataList: [{
283
294
  name: '收集重量',
284
295
  data: _.map(taskDaySummary, 'weight'),
285
- color: 'rgba(17, 159, 251, 0.20)',
296
+ color: transformRgb(yellowColor, colorOpacity),
286
297
  smooth: true,
287
298
  symbol: 'none',
288
299
  areaStyle: {
289
300
  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
290
301
  offset: 0,
291
- color: 'rgba(17, 159, 251, 0.20)'
302
+ color: transformRgb(yellowColor, colorOpacity)
292
303
  },
293
304
  // 半透明
294
305
  {
295
306
  offset: 1,
296
- color: 'rgba(17, 159, 251, 0)'
307
+ color: transformRgb(yellowColor, 0)
297
308
  } // 更透明
298
309
  ])
299
310
  }