@vtx/modals2 5.0.30 → 5.0.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.
Files changed (61) hide show
  1. package/lib/_components/index.js +2 -1
  2. package/lib/_components/vm-card-statistics/index.less +27 -27
  3. package/lib/_components/vm-factor-list/index.less +11 -11
  4. package/lib/_components/vm-info-collection/style/index.js +1 -0
  5. package/lib/_components/vm-pie-charts/index.js +4 -2
  6. package/lib/_components/vm-popover/index.js +19 -0
  7. package/lib/_components/vm-popover/index.less +7 -0
  8. package/lib/_components/vm-table/index.js +4 -4
  9. package/lib/style/index.less +1 -1
  10. package/lib/vtx-base-modal/Header/index.less +98 -98
  11. package/lib/vtx-base-modal/Tabs/index.less +54 -54
  12. package/lib/vtx-base-modal/style/index.less +0 -1
  13. package/lib/vtx-car-modal/api.js +47 -4
  14. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  15. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  16. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  17. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +6 -6
  18. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +27 -20
  19. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +21 -6
  20. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +11 -6
  21. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +19 -12
  22. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +9 -7
  23. package/lib/vtx-car-modal/index.js +1 -1
  24. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  25. package/lib/vtx-device-modal/components/BaseInfo/KnowledgeBasesDetail.js +77 -0
  26. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +92 -0
  27. package/lib/vtx-device-modal/components/BaseInfo/index.js +104 -46
  28. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  29. package/lib/vtx-jzlj-df-tpd-modal/api.js +31 -0
  30. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +5 -4
  31. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +9 -6
  32. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +8 -6
  33. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +7 -6
  34. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +5 -4
  35. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +5 -4
  36. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +11 -3
  37. package/lib/vtx-jzlj-gcxm-modal/api.js +31 -0
  38. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +5 -4
  39. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +9 -6
  40. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +9 -7
  41. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +6 -5
  42. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +5 -4
  43. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +9 -8
  44. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -2
  45. package/lib/vtx-jzlj-xnc-modal/api.js +31 -0
  46. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +5 -4
  47. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +9 -6
  48. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +9 -7
  49. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +7 -6
  50. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +5 -4
  51. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +8 -7
  52. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +11 -3
  53. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  54. package/lib/vtx-restaurant-modal/config.js +52 -52
  55. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  56. package/lib/vtx-staff-modal/api.js +62 -26
  57. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +118 -33
  58. package/lib/vtx-staff-modal/components/BaseInfo/index.js +12 -80
  59. package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
  60. package/package.json +1 -1
  61. package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +0 -48
@@ -19,4 +19,5 @@ export { default as VmTabs } from "./vm-tabs";
19
19
  export { default as VmTag } from "./vm-tag";
20
20
  export { default as VmTitle } from "./vm-title";
21
21
  export { default as VmVideo } from "./vm-video";
22
- export { default as VmWrapper } from "./vm-wrapper";
22
+ export { default as VmWrapper } from "./vm-wrapper";
23
+ export { default as VmPopover } from "./vm-popover";
@@ -1,27 +1,27 @@
1
- .vm-car-statistics {
2
- width: 208px;
3
- height: 84px;
4
- display: flex;
5
- flex-direction: column;
6
- justify-content: space-between;
7
- padding: 20px;
8
- background-size: 100% 100%;
9
- &-label {
10
- color: var(--img-text-color);
11
- }
12
- &-value, &-unit {
13
- color: #1f1f1f;
14
- }
15
- &.vm-car-statistics-dark {
16
- .vm-car-statistics-value,.vm-car-statistics-unit {
17
- background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
- background-clip: text;
19
- -webkit-text-fill-color: transparent;
20
- }
21
- }
22
- &-value {
23
- font-size: 20px;
24
- font-weight: bold;
25
- margin-right: 4px;
26
- }
27
- }
1
+ .vm-car-statistics {
2
+ width: 208px;
3
+ height: 84px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: space-between;
7
+ padding: 20px;
8
+ background-size: 100% 100%;
9
+ &-label {
10
+ color: var(--img-text-color);
11
+ }
12
+ &-value, &-unit {
13
+ color: #1f1f1f;
14
+ }
15
+ &.vm-car-statistics-dark {
16
+ .vm-car-statistics-value,.vm-car-statistics-unit {
17
+ background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
+ background-clip: text;
19
+ -webkit-text-fill-color: transparent;
20
+ }
21
+ }
22
+ &-value {
23
+ font-size: 20px;
24
+ font-weight: bold;
25
+ margin-right: 4px;
26
+ }
27
+ }
@@ -1,11 +1,11 @@
1
- .vm-factor-list-wrap {
2
- display: flex;
3
- padding: 12px 16px;
4
- height: 68px;
5
- background: #F3F8FF;
6
- border-radius: 8px;
7
- gap: 26px;
8
- &.dark {
9
- background: rgba(0,136,240,0.15);
10
- }
11
- }
1
+ .vm-factor-list-wrap {
2
+ display: flex;
3
+ padding: 12px 16px;
4
+ height: 68px;
5
+ background: #F3F8FF;
6
+ border-radius: 8px;
7
+ gap: 26px;
8
+ &.dark {
9
+ background: rgba(0,136,240,0.15);
10
+ }
11
+ }
@@ -1 +1,2 @@
1
+ import '@vtx/components/lib/vtx-image/style/index';
1
2
  import "./index.less";
@@ -39,7 +39,9 @@ var PieCharts = function PieCharts(_ref) {
39
39
  _ref$colors2 = _ref.colors2,
40
40
  colors2 = _ref$colors2 === void 0 ? null : _ref$colors2,
41
41
  _ref$subTitle = _ref.subTitle,
42
- subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle;
42
+ subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle,
43
+ _ref$tooltipFormatter = _ref.tooltipFormatter,
44
+ tooltipFormatter = _ref$tooltipFormatter === void 0 ? null : _ref$tooltipFormatter;
43
45
  var _useSettings = useSettings(),
44
46
  chartFontColor = _useSettings.chartFontColor,
45
47
  isDark = _useSettings.isDark;
@@ -51,7 +53,7 @@ var PieCharts = function PieCharts(_ref) {
51
53
  var option = {
52
54
  tooltip: {
53
55
  trigger: 'item',
54
- formatter: "{a} <br/>{b}: {c}".concat(unit, " ({d}%)"),
56
+ formatter: tooltipFormatter || "{a} <br/>{b}: {c}".concat(unit, " ({d}%)"),
55
57
  position: function position(point, _params, _dom, _rect, size) {
56
58
  // 固定在顶部
57
59
  var leftSize = point[0] - size.contentSize[0];
@@ -0,0 +1,19 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { Popover } from 'antd';
8
+ import useSettings from "../../_hooks/useSettings";
9
+ import "./index.less";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ var VmPopover = function VmPopover(props) {
12
+ var _useSettings = useSettings(),
13
+ isDark = _useSettings.isDark;
14
+ return /*#__PURE__*/_jsx(Popover, _objectSpread(_objectSpread({}, props), {}, {
15
+ overlayClassName: "vm-popover ".concat(isDark ? 'dark' : ''),
16
+ children: props.children
17
+ }));
18
+ };
19
+ export default VmPopover;
@@ -0,0 +1,7 @@
1
+ .vm-popover {
2
+ &.dark {
3
+ .ant-popover-inner-content, .ant-popover-arrow-content, .ant-popover-arrow-content::before {
4
+ background: rgb(51 95 135);
5
+ }
6
+ }
7
+ }
@@ -173,10 +173,10 @@ var VMTable = function VMTable(props) {
173
173
  });
174
174
  };
175
175
 
176
- /**
177
- * 表格导出按钮
178
- * @param props
179
- * @returns
176
+ /**
177
+ * 表格导出按钮
178
+ * @param props
179
+ * @returns
180
180
  */
181
181
 
182
182
  export var ExportBtn = function ExportBtn(props) {
@@ -89,7 +89,7 @@
89
89
  --modal-head-line-bg: transparent;
90
90
  --modal-head-split-line-color: rgba(89, 89, 89, 0.2);
91
91
  --modal-head-line-shadow: transparent;
92
- --modal-content-bg: #ecf0f5;
92
+ --modal-content-bg: rgba(236, 240, 245, 0.8);
93
93
  --modal-content-box-shadow: #ecf0f5;
94
94
  --modal-close-color: #595959;
95
95
  --modal-content-border-color: linear-gradient(
@@ -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,54 +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
- &.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
- }
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
+ }
@@ -44,7 +44,6 @@
44
44
  width: 100%;
45
45
  background: var(--modal-content-bg);
46
46
  border-radius: 8px;
47
- opacity: 0.8;
48
47
  }
49
48
  .vm-base-modal-content-wrap {
50
49
  flex: 1;
@@ -1145,6 +1145,19 @@ export var JzljService = {
1145
1145
  data = _useRequest46$data === void 0 ? {} : _useRequest46$data;
1146
1146
  return (data === null || data === void 0 ? void 0 : data.data) || [];
1147
1147
  },
1148
+ // 字段配置
1149
+ fieldConfig: function fieldConfig() {
1150
+ var _useRequest47 = useRequest(function () {
1151
+ return http.get("/cloud/jzlj/web/field/config/list?ledgerType=CZHZBA", {
1152
+ body: {}
1153
+ });
1154
+ }, {
1155
+ refreshDeps: []
1156
+ }),
1157
+ _useRequest47$data = _useRequest47.data,
1158
+ data = _useRequest47$data === void 0 ? {} : _useRequest47$data;
1159
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
1160
+ },
1148
1161
  // 联单-分页
1149
1162
  ldPage: function ldPage(_ref27) {
1150
1163
  var carId = _ref27.carId,
@@ -1226,7 +1239,7 @@ export var JzljService = {
1226
1239
  var carId = _ref32.carId,
1227
1240
  startDate = _ref32.startDate,
1228
1241
  endDate = _ref32.endDate;
1229
- var _useRequest47 = useRequest(function () {
1242
+ var _useRequest48 = useRequest(function () {
1230
1243
  return http.get("/cloud/jzlj/web/dz/kanban/carAlarmTypeCountSummaryInfo", {
1231
1244
  body: {
1232
1245
  carId: carId,
@@ -1238,7 +1251,7 @@ export var JzljService = {
1238
1251
  }, {
1239
1252
  refreshDeps: [carId, startDate, endDate]
1240
1253
  }),
1241
- alarmSummaryRes = _useRequest47.data;
1254
+ alarmSummaryRes = _useRequest48.data;
1242
1255
  return {
1243
1256
  alarmSummaryData: (alarmSummaryRes === null || alarmSummaryRes === void 0 ? void 0 : alarmSummaryRes.data) || {}
1244
1257
  };
@@ -1248,7 +1261,7 @@ export var JzljService = {
1248
1261
  var id = _ref33.id,
1249
1262
  startDate = _ref33.startDate,
1250
1263
  endDate = _ref33.endDate;
1251
- var _useRequest48 = useRequest(function () {
1264
+ var _useRequest49 = useRequest(function () {
1252
1265
  return http.get("/cloud/jzlj/web/api/gis/real/time/carOrderAlarmAnalyse", {
1253
1266
  body: {
1254
1267
  id: id,
@@ -1259,9 +1272,39 @@ export var JzljService = {
1259
1272
  }, {
1260
1273
  refreshDeps: [id, startDate, endDate]
1261
1274
  }),
1262
- alarmTrendRes = _useRequest48.data;
1275
+ alarmTrendRes = _useRequest49.data;
1263
1276
  return {
1264
1277
  alarmTrendData: (alarmTrendRes === null || alarmTrendRes === void 0 ? void 0 : alarmTrendRes.data) || []
1265
1278
  };
1279
+ },
1280
+ // 单位
1281
+ useUnit: function useUnit() {
1282
+ var _data$data3, _unitStr;
1283
+ var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
1284
+ var _useRequest50 = useRequest(function () {
1285
+ return http.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
1286
+ body: {}
1287
+ });
1288
+ }, {
1289
+ refreshDeps: [groupCode]
1290
+ }),
1291
+ data = _useRequest50.data;
1292
+ var obj = {};
1293
+ var originalData = data === null || data === void 0 || (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3[groupCode];
1294
+ for (var group in originalData) {
1295
+ if (originalData.hasOwnProperty(group)) {
1296
+ for (var item in originalData[group]) {
1297
+ var _originalData$group;
1298
+ obj[item] = (_originalData$group = originalData[group]) === null || _originalData$group === void 0 ? void 0 : _originalData$group[item];
1299
+ }
1300
+ }
1301
+ }
1302
+ var jointOrderWeightUnitTypeName = obj === null || obj === void 0 ? void 0 : obj.jointOrderWeightUnitTypeName;
1303
+ var nameSplitArr = jointOrderWeightUnitTypeName === null || jointOrderWeightUnitTypeName === void 0 ? void 0 : jointOrderWeightUnitTypeName.split('(');
1304
+ var unitStr = (nameSplitArr === null || nameSplitArr === void 0 ? void 0 : nameSplitArr[1]) || '吨)';
1305
+ unitStr = (_unitStr = unitStr) === null || _unitStr === void 0 ? void 0 : _unitStr.replace(')', '');
1306
+ return {
1307
+ unitStr: unitStr
1308
+ };
1266
1309
  }
1267
1310
  };
@@ -1,6 +1,6 @@
1
- .vm-car-map-wrap {
2
- flex: 1;
3
- min-height: 0;
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
+ }
@@ -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
+ }
@@ -93,11 +93,11 @@ export default function Bottom(_ref) {
93
93
  width: 150,
94
94
  ellipsis: true
95
95
  }], ['报警开始时间', 'alarmStartTime', {
96
- width: 180
96
+ width: 160
97
97
  }], ['报警结束时间', 'alarmEndTime', {
98
- width: 180
98
+ width: 160
99
99
  }], ['处置状态', 'processStatusChs', {
100
- width: 150,
100
+ width: 100,
101
101
  render: function render(text, record) {
102
102
  return text ? /*#__PURE__*/_jsx("span", {
103
103
  style: {
@@ -107,7 +107,7 @@ export default function Bottom(_ref) {
107
107
  }) : '-';
108
108
  }
109
109
  }], ['处置结果', 'processResultChs', {
110
- width: 150,
110
+ width: 120,
111
111
  render: function render(text, record) {
112
112
  return text ? /*#__PURE__*/_jsx("span", {
113
113
  style: {
@@ -170,7 +170,7 @@ export default function Bottom(_ref) {
170
170
  }) : '-';
171
171
  }
172
172
  }], ['处置状态', 'processStatusChs', {
173
- width: 150,
173
+ width: 100,
174
174
  render: function render(text, record) {
175
175
  return text ? /*#__PURE__*/_jsx("span", {
176
176
  style: {
@@ -180,7 +180,7 @@ export default function Bottom(_ref) {
180
180
  }) : '-';
181
181
  }
182
182
  }], ['处置结果', 'processResultChs', {
183
- width: 150,
183
+ width: 120,
184
184
  render: function render(text, record) {
185
185
  return text ? /*#__PURE__*/_jsx("span", {
186
186
  style: {