@vtx/modals2 5.0.56 → 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.
- package/lib/_components/vm-calendar/index.js +14 -4
- package/lib/_components/vm-calendar/style/index.less +4 -1
- package/lib/_components/vm-filter/index.js +25 -0
- package/lib/_components/vm-pie-charts/index.js +13 -3
- package/lib/_components/vm-progress/index.js +6 -0
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-table/style/index.less +12 -7
- package/lib/_components/vm-video/HistoryGrid.js +4 -2
- package/lib/_components/vm-video/index.js +10 -4
- package/lib/style/index.less +5 -0
- package/lib/vtx-area-modal/api.js +2 -0
- package/lib/vtx-base-modal/index.js +5 -0
- package/lib/vtx-car-modal/api.js +179 -74
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +133 -0
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +84 -0
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +71 -0
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +223 -0
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +549 -0
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.less +6 -0
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +291 -0
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
- package/lib/vtx-car-modal/content/JXH/index.js +9 -1
- package/lib/vtx-car-modal/imgs/calendar/auto.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_auto.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_electricity.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_oil.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_transition.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_water.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/dark_yy_mileage.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/electricity.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/oil.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/transition.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/water.png +0 -0
- package/lib/vtx-car-modal/imgs/calendar/yy_mileage.png +0 -0
- package/lib/vtx-car-modal/index.js +9 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +2 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +2 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -0
- package/lib/vtx-road-modal/api.js +348 -11
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -5
- package/lib/vtx-road-modal/components/BaseInfo/index.js +6 -5
- package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +63 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +434 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +80 -0
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +127 -0
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +194 -0
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +312 -0
- package/lib/vtx-road-modal/components/LaneStatistical/index.less +32 -0
- package/lib/vtx-road-modal/components/index.js +4 -1
- package/lib/vtx-road-modal/imgs/car.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_car.png +0 -0
- package/lib/vtx-road-modal/imgs/dark_person.png +0 -0
- package/lib/vtx-road-modal/imgs/person.png +0 -0
- package/lib/vtx-road-modal/imgs/schedule.png +0 -0
- package/lib/vtx-road-modal/imgs/work.png +0 -0
- package/lib/vtx-road-modal/imgs//344/274/230.png +0 -0
- package/lib/vtx-road-modal/imgs//345/267/256.png +0 -0
- package/lib/vtx-road-modal/imgs//350/211/257.png +0 -0
- package/lib/vtx-road-modal/index.js +18 -13
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +2 -0
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +2 -0
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var _excluded = ["style", "className", "dateCellRender"];
|
|
2
|
+
var _excluded = ["style", "className", "dateCellRender", "height"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -25,16 +25,21 @@ function VmCalendar(props) {
|
|
|
25
25
|
style = _props$style === void 0 ? {} : _props$style,
|
|
26
26
|
className = props.className,
|
|
27
27
|
dateCellRender = props.dateCellRender,
|
|
28
|
+
_props$height = props.height,
|
|
29
|
+
height = _props$height === void 0 ? 86 : _props$height,
|
|
28
30
|
rest = _objectWithoutProperties(props, _excluded);
|
|
29
31
|
return /*#__PURE__*/_jsx("div", {
|
|
30
32
|
className: classnames("".concat(prefix), className),
|
|
31
|
-
style: _objectSpread({}, style),
|
|
33
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
34
|
+
'--height': height + 'px'
|
|
35
|
+
}),
|
|
32
36
|
children: /*#__PURE__*/_jsx(Calendar, _objectSpread({
|
|
33
37
|
locale: locale,
|
|
34
38
|
headerRender: function headerRender() {
|
|
35
39
|
return null;
|
|
36
40
|
},
|
|
37
|
-
dateCellRender: dateCellRender
|
|
41
|
+
dateCellRender: dateCellRender,
|
|
42
|
+
cellRender: dateCellRender
|
|
38
43
|
}, rest))
|
|
39
44
|
});
|
|
40
45
|
}
|
|
@@ -67,8 +72,13 @@ export function VmCalendarPercent(_ref) {
|
|
|
67
72
|
percent: percent,
|
|
68
73
|
strokeColor: _color,
|
|
69
74
|
trailColor: transformRgb(_color, 0.1),
|
|
75
|
+
railColor: transformRgb(_color, 0.1),
|
|
70
76
|
showInfo: false,
|
|
71
|
-
strokeWidth: 4
|
|
77
|
+
strokeWidth: 4,
|
|
78
|
+
size: {
|
|
79
|
+
width: 40,
|
|
80
|
+
height: 4
|
|
81
|
+
}
|
|
72
82
|
})
|
|
73
83
|
}), /*#__PURE__*/_jsxs("div", {
|
|
74
84
|
style: {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.vm-calendar {
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
|
+
--height: 86px;
|
|
6
7
|
.ant-picker-date-panel,
|
|
7
8
|
.ant-picker-content {
|
|
8
9
|
width: 100% !important;
|
|
@@ -22,7 +23,9 @@
|
|
|
22
23
|
.ant-picker-body {
|
|
23
24
|
padding: 0 !important;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
.ant-picker-calendar-date-content {
|
|
27
|
+
height: var(--height) !important;
|
|
28
|
+
}
|
|
26
29
|
.ant-picker-content th {
|
|
27
30
|
color: var(--vm-calendar-cell-font-color);
|
|
28
31
|
}
|
|
@@ -34,6 +34,11 @@ export var VMRangePicker = function VMRangePicker(props) {
|
|
|
34
34
|
return /*#__PURE__*/_jsx(RangePicker, _objectSpread(_objectSpread({
|
|
35
35
|
className: "vm-range-picker ".concat(isDark ? 'dark' : ''),
|
|
36
36
|
dropdownClassName: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : ''),
|
|
37
|
+
classNames: {
|
|
38
|
+
popup: {
|
|
39
|
+
root: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : '')
|
|
40
|
+
}
|
|
41
|
+
},
|
|
37
42
|
allowClear: false
|
|
38
43
|
}, props), {}, {
|
|
39
44
|
locale: locale
|
|
@@ -45,6 +50,11 @@ export var VMDatePicker = function VMDatePicker(props) {
|
|
|
45
50
|
return /*#__PURE__*/_jsx(DatePicker, _objectSpread(_objectSpread({
|
|
46
51
|
className: "vm-range-picker ".concat(isDark ? 'dark' : ''),
|
|
47
52
|
dropdownClassName: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : ''),
|
|
53
|
+
classNames: {
|
|
54
|
+
popup: {
|
|
55
|
+
root: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : '')
|
|
56
|
+
}
|
|
57
|
+
},
|
|
48
58
|
allowClear: false
|
|
49
59
|
}, props), {}, {
|
|
50
60
|
locale: locale
|
|
@@ -56,6 +66,11 @@ export var VMMonthPicker = function VMMonthPicker(props) {
|
|
|
56
66
|
return /*#__PURE__*/_jsx(MonthPicker, _objectSpread(_objectSpread({
|
|
57
67
|
className: "vm-range-picker ".concat(isDark ? 'dark' : ''),
|
|
58
68
|
dropdownClassName: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : ''),
|
|
69
|
+
classNames: {
|
|
70
|
+
popup: {
|
|
71
|
+
root: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : '')
|
|
72
|
+
}
|
|
73
|
+
},
|
|
59
74
|
allowClear: false
|
|
60
75
|
}, props), {}, {
|
|
61
76
|
locale: locale
|
|
@@ -67,6 +82,11 @@ export var VMYearPicker = function VMYearPicker(props) {
|
|
|
67
82
|
return /*#__PURE__*/_jsx(YearPicker, _objectSpread(_objectSpread({
|
|
68
83
|
className: "vm-range-picker ".concat(isDark ? 'dark' : ''),
|
|
69
84
|
dropdownClassName: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : ''),
|
|
85
|
+
classNames: {
|
|
86
|
+
popup: {
|
|
87
|
+
root: "vm-range-picker-dropdown ".concat(isDark ? 'dark' : '')
|
|
88
|
+
}
|
|
89
|
+
},
|
|
70
90
|
allowClear: false
|
|
71
91
|
}, props), {}, {
|
|
72
92
|
locale: locale
|
|
@@ -78,6 +98,11 @@ export var VMSelect = function VMSelect(props) {
|
|
|
78
98
|
return /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
79
99
|
className: "vm-select ".concat(isDark ? 'dark' : '', " "),
|
|
80
100
|
dropdownClassName: "vm-select-dropdown ".concat(isDark ? 'dark' : ''),
|
|
101
|
+
classNames: {
|
|
102
|
+
popup: {
|
|
103
|
+
root: "vm-select-dropdown ".concat(isDark ? 'dark' : '')
|
|
104
|
+
}
|
|
105
|
+
},
|
|
81
106
|
notFoundContent: /*#__PURE__*/_jsx(VmEmpty, {})
|
|
82
107
|
}, props), {}, {
|
|
83
108
|
children: props.children
|
|
@@ -4,11 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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 { Spin } from 'antd';
|
|
7
|
+
import { Row, Spin } from 'antd';
|
|
8
8
|
import ReactEcharts from 'echarts-for-react';
|
|
9
|
-
import _ from 'lodash';
|
|
9
|
+
import _, { isEmpty } from 'lodash';
|
|
10
10
|
import useSettings from "../../_hooks/useSettings";
|
|
11
11
|
import { getPercentValue } from "../../_util";
|
|
12
|
+
import VmEmpty from "../vm-empty";
|
|
12
13
|
import "./index.less";
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
15
|
var PieCharts = function PieCharts(_ref) {
|
|
@@ -156,7 +157,16 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
156
157
|
style: {
|
|
157
158
|
height: height
|
|
158
159
|
},
|
|
159
|
-
children: loading ? /*#__PURE__*/_jsx(Spin, {}) : /*#__PURE__*/
|
|
160
|
+
children: loading ? /*#__PURE__*/_jsx(Spin, {}) : isEmpty(dataList) ? /*#__PURE__*/_jsx(Row, {
|
|
161
|
+
style: {
|
|
162
|
+
height: height
|
|
163
|
+
},
|
|
164
|
+
align: 'middle',
|
|
165
|
+
justify: 'center',
|
|
166
|
+
children: /*#__PURE__*/_jsx(VmEmpty, {
|
|
167
|
+
type: "NO_CHART"
|
|
168
|
+
})
|
|
169
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
160
170
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
161
171
|
className: 'vtx-car-pie-charts-title-wrap',
|
|
162
172
|
style: {
|
|
@@ -23,6 +23,9 @@ export function Line(props) {
|
|
|
23
23
|
return /*#__PURE__*/_jsx(Progress, {
|
|
24
24
|
percent: rate,
|
|
25
25
|
width: width,
|
|
26
|
+
size: {
|
|
27
|
+
width: width
|
|
28
|
+
},
|
|
26
29
|
strokeColor: strokeColor ? strokeColor : rate > 100 ? {
|
|
27
30
|
from: '#FF5861',
|
|
28
31
|
to: '#FF000E'
|
|
@@ -31,6 +34,7 @@ export function Line(props) {
|
|
|
31
34
|
to: '#00FFF6'
|
|
32
35
|
} : '#1677FF',
|
|
33
36
|
trailColor: trailColor ? trailColor : isDark ? 'rgba(255,255,255,0.05)' : 'rgba(0,0,0,0.05)',
|
|
37
|
+
railColor: trailColor ? trailColor : isDark ? 'rgba(255,255,255,0.05)' : 'rgba(0,0,0,0.05)',
|
|
34
38
|
showInfo: false
|
|
35
39
|
});
|
|
36
40
|
}
|
|
@@ -57,6 +61,7 @@ var Circle = function Circle(props) {
|
|
|
57
61
|
percent: rate,
|
|
58
62
|
type: type,
|
|
59
63
|
width: width,
|
|
64
|
+
size: width,
|
|
60
65
|
strokeWidth: strokeWidth,
|
|
61
66
|
strokeLinecap: "round",
|
|
62
67
|
strokeColor: strokeColor || (isDark ? {
|
|
@@ -64,6 +69,7 @@ var Circle = function Circle(props) {
|
|
|
64
69
|
'100%': '#44FF98'
|
|
65
70
|
} : '#1677FF'),
|
|
66
71
|
trailColor: trailColor ? trailColor : isDark ? 'rgba(0, 157, 255, 0.68)' : '#e1ecfd',
|
|
72
|
+
railColor: trailColor ? trailColor : isDark ? 'rgba(0, 157, 255, 0.68)' : '#e1ecfd',
|
|
67
73
|
format: function format(percent) {
|
|
68
74
|
return /*#__PURE__*/_jsxs("div", {
|
|
69
75
|
className: "vm-progress-text ".concat(isDark ? 'dark' : ''),
|
|
@@ -55,12 +55,12 @@ var VMTable = function VMTable(props) {
|
|
|
55
55
|
var tableRef = useRef();
|
|
56
56
|
var calculateHeight = useMemoizedFn(function () {
|
|
57
57
|
if (tableRef.current) {
|
|
58
|
-
var paginationEle = tableRef.current.querySelector('.ant-pagination');
|
|
58
|
+
var paginationEle = (tableRef.current.nativeElement || tableRef.current).querySelector('.ant-pagination');
|
|
59
59
|
var paginationHeight = paginationEle ? paginationEle.offsetHeight + 16 * 2 : 0;
|
|
60
60
|
var parentElement = tableRef.current.parentElement;
|
|
61
61
|
var rect = parentElement.getBoundingClientRect();
|
|
62
62
|
var paddding = getComputedStyle(parentElement).padding.replace('px', '');
|
|
63
|
-
var _height = rect.height - paddding * 2 - tableRef.current.querySelector('thead').offsetHeight - paginationHeight;
|
|
63
|
+
var _height = rect.height - paddding * 2 - (tableRef.current.nativeElement || tableRef.current).querySelector('thead').offsetHeight - paginationHeight;
|
|
64
64
|
setScrollY(_height);
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -74,7 +74,7 @@ var VMTable = function VMTable(props) {
|
|
|
74
74
|
resizeObserver.observe(tableRef.current.parentElement, {
|
|
75
75
|
box: 'border-box'
|
|
76
76
|
});
|
|
77
|
-
resizeObserver.observe(tableRef.current, {
|
|
77
|
+
resizeObserver.observe(tableRef.current.nativeElement || tableRef.current, {
|
|
78
78
|
box: 'border-box'
|
|
79
79
|
});
|
|
80
80
|
}
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
.ant-table-body {
|
|
98
98
|
// ScrollBar
|
|
99
99
|
&::-webkit-scrollbar {
|
|
100
|
-
width: 0px;
|
|
101
|
-
height: 4px;
|
|
100
|
+
width: 0px !important;
|
|
101
|
+
height: 4px !important;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// &::-webkit-scrollbar-track {
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
// }
|
|
108
108
|
|
|
109
109
|
&::-webkit-scrollbar-thumb {
|
|
110
|
-
background: var(--scroll-bar-hover-bg);
|
|
111
|
-
border-radius: 5px;
|
|
110
|
+
background: var(--scroll-bar-hover-bg) !important;
|
|
111
|
+
border-radius: 5px !important;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// &::-webkit-scrollbar-corner {
|
|
@@ -122,12 +122,14 @@
|
|
|
122
122
|
|
|
123
123
|
.ant-table {
|
|
124
124
|
background: var(--table-bg);
|
|
125
|
+
scrollbar-color: inherit;
|
|
125
126
|
.vm-table-row {
|
|
126
127
|
background: #2d575a;
|
|
127
128
|
}
|
|
128
129
|
.ant-table-thead {
|
|
129
130
|
.ant-table-cell-fix-left,
|
|
130
|
-
.ant-table-cell-fix-right
|
|
131
|
+
.ant-table-cell-fix-right,
|
|
132
|
+
th.ant-table-cell-fix {
|
|
131
133
|
background: var(--table-header-fixed-bg-color) !important;
|
|
132
134
|
}
|
|
133
135
|
}
|
|
@@ -163,7 +165,8 @@
|
|
|
163
165
|
|
|
164
166
|
tbody {
|
|
165
167
|
.ant-table-cell-fix-left,
|
|
166
|
-
.ant-table-cell-fix-right
|
|
168
|
+
.ant-table-cell-fix-right,
|
|
169
|
+
.ant-table-cell-fix {
|
|
167
170
|
background: var(--table-bd-fixed-bg-color) !important;
|
|
168
171
|
}
|
|
169
172
|
tr {
|
|
@@ -185,7 +188,8 @@
|
|
|
185
188
|
|
|
186
189
|
&:nth-child(odd) {
|
|
187
190
|
td,
|
|
188
|
-
td.ant-table-cell-fix-left
|
|
191
|
+
td.ant-table-cell-fix-left,
|
|
192
|
+
th.ant-table-cell-fix-start {
|
|
189
193
|
// background-color: var(--table-row-bg-color) !important;
|
|
190
194
|
background-color: var(--table-bd-fixed-bg-odd-color) !important;
|
|
191
195
|
// border-top: var(--table-row-border);
|
|
@@ -203,6 +207,7 @@
|
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
.ant-table-placeholder {
|
|
210
|
+
background: var(--table-bg) !important;
|
|
206
211
|
.ant-empty-description {
|
|
207
212
|
color: var(--modal-title-color);
|
|
208
213
|
}
|
|
@@ -4,14 +4,16 @@ import VmEmpty from "../vm-empty";
|
|
|
4
4
|
import "./index.less";
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
6
|
var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
|
+
var _channel$list;
|
|
7
8
|
var channel = props.channel,
|
|
8
9
|
onClose = props.onClose;
|
|
9
10
|
var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
|
|
11
|
+
var url = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list = channel.list) === null || _channel$list === void 0 || (_channel$list = _channel$list[0]) === null || _channel$list === void 0 ? void 0 : _channel$list.playbackUrl);
|
|
10
12
|
var gridItemRef = useRef(null);
|
|
11
13
|
return /*#__PURE__*/_jsx("div", {
|
|
12
14
|
className: "vm-video-content-container",
|
|
13
15
|
ref: gridItemRef,
|
|
14
|
-
children:
|
|
16
|
+
children: url ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
15
17
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
16
18
|
className: "vm-video-content-container-header",
|
|
17
19
|
children: [/*#__PURE__*/_jsx("span", {
|
|
@@ -29,7 +31,7 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29
31
|
ref: ref,
|
|
30
32
|
beenHasVideo: channel.beenHasVideo // 对讲
|
|
31
33
|
,
|
|
32
|
-
url:
|
|
34
|
+
url: url,
|
|
33
35
|
type: channel === null || channel === void 0 ? void 0 : channel.player,
|
|
34
36
|
deviceIp: channel.deviceIp,
|
|
35
37
|
devicePort: channel.devicePort,
|
|
@@ -128,13 +128,14 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
128
128
|
channelNum: values.channelNum,
|
|
129
129
|
deviceId: channel.videoDeviceId
|
|
130
130
|
}).then(function (res) {
|
|
131
|
-
var
|
|
132
|
-
|
|
131
|
+
var _data$list;
|
|
132
|
+
var data = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
133
|
+
if (!(data !== null && data !== void 0 && data.totalTimeUrl) && !((_data$list = data.list) !== null && _data$list !== void 0 && (_data$list = _data$list[0]) !== null && _data$list !== void 0 && _data$list.playbackUrl)) {
|
|
133
134
|
message.info('未查询到视频!');
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
137
|
setState({
|
|
137
|
-
history:
|
|
138
|
+
history: data
|
|
138
139
|
});
|
|
139
140
|
});
|
|
140
141
|
};
|
|
@@ -246,7 +247,12 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
246
247
|
},
|
|
247
248
|
showTime: true,
|
|
248
249
|
disabled: datePickerDisabled,
|
|
249
|
-
dropdownClassName: "date-dark"
|
|
250
|
+
dropdownClassName: "date-dark",
|
|
251
|
+
classNames: {
|
|
252
|
+
popup: {
|
|
253
|
+
root: "date-dark"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
250
256
|
})
|
|
251
257
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
252
258
|
label: "\u7ED3\u675F\u65F6\u95F4",
|
package/lib/style/index.less
CHANGED
|
@@ -5,6 +5,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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
7
|
import { MapIcon } from '@vtx/map-icon';
|
|
8
|
+
import * as VtxMapIcon from '@vtx/map-icon';
|
|
9
|
+
console.log(VtxMapIcon, 'VtxMapIcon');
|
|
8
10
|
import { getUrlParam, getVtxToken, request } from '@vtx/utils';
|
|
9
11
|
import { useRequest } from 'ahooks';
|
|
10
12
|
import dayjs from 'dayjs';
|
|
@@ -129,6 +129,11 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
129
129
|
var _theme = theme === 'light' ? 'light' : 'dark';
|
|
130
130
|
if (type === 'car') {
|
|
131
131
|
var path = 'index';
|
|
132
|
+
if (tabs.find(function (item) {
|
|
133
|
+
return item.code === 'jxh-base-hw2';
|
|
134
|
+
})) {
|
|
135
|
+
path = 'zyqsLaneHistory';
|
|
136
|
+
}
|
|
132
137
|
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') : '');
|
|
133
138
|
}
|
|
134
139
|
if (type === 'staff') {
|