@vtx/modals2 5.0.63 → 5.0.64
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-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-popover/index.less +7 -7
- package/lib/_components/vm-video/HistoryGrid.js +2 -0
- package/lib/_components/vm-video/RealtimeGrid.js +2 -0
- package/lib/_components/vm-video/index.js +22 -18
- package/lib/_hooks/useGetChannels.js +2 -12
- package/lib/_util/http.js +8 -8
- package/lib/vtx-area-modal/api.js +1 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/index.js +3 -0
- package/lib/vtx-base-modal/service.js +2 -2
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +2 -2
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +1 -1
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-default-modal/index.js +2 -1
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +2 -2
- package/lib/vtx-device-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-df-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-qyry-modal/api.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +1 -1
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +4 -4
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +1 -1
- package/lib/vtx-staff-modal/api.js +1 -1
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +2 -2
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-wr-modal/components/Build/index.js +3 -3
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +1 -1
- package/lib/vtx-zf-modal/components/File/index.js +2 -2
- package/package.json +81 -81
|
@@ -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,7 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -31,6 +31,8 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31
31
|
ref: ref,
|
|
32
32
|
beenHasVideo: channel.beenHasVideo // 对讲
|
|
33
33
|
,
|
|
34
|
+
beenHasAudio: channel.beenHasAudio // 音频
|
|
35
|
+
,
|
|
34
36
|
url: url,
|
|
35
37
|
type: channel === null || channel === void 0 ? void 0 : channel.player,
|
|
36
38
|
deviceIp: channel.deviceIp,
|
|
@@ -29,6 +29,8 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29
29
|
ref: ref,
|
|
30
30
|
beenHasVideo: channel.beenHasVideo // 对讲
|
|
31
31
|
,
|
|
32
|
+
beenHasAudio: channel.beenHasAudio // 音频
|
|
33
|
+
,
|
|
32
34
|
url: channel.url,
|
|
33
35
|
type: channel === null || channel === void 0 ? void 0 : channel.player,
|
|
34
36
|
deviceIp: channel.deviceIp,
|
|
@@ -61,6 +61,8 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
61
61
|
endTime = state.endTime,
|
|
62
62
|
history = state.history;
|
|
63
63
|
useEffect(function () {
|
|
64
|
+
var s,
|
|
65
|
+
e = '';
|
|
64
66
|
if (dateType === 'custom') {
|
|
65
67
|
setState({
|
|
66
68
|
datePickerDisabled: false
|
|
@@ -69,23 +71,25 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
69
71
|
setState({
|
|
70
72
|
datePickerDisabled: true
|
|
71
73
|
});
|
|
72
|
-
if (dateType === 'dayBeforeYesterday') {
|
|
73
|
-
setState({
|
|
74
|
-
startTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 00:00:00'),
|
|
75
|
-
endTime: dayjs().subtract(2, 'day').format('YYYY-MM-DD 23:59:59')
|
|
76
|
-
});
|
|
77
|
-
} else if (dateType === 'yesterday') {
|
|
78
|
-
setState({
|
|
79
|
-
startTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'),
|
|
80
|
-
endTime: dayjs().subtract(1, 'day').format('YYYY-MM-DD 23:59:59')
|
|
81
|
-
});
|
|
82
|
-
} else if (dateType === 'today') {
|
|
83
|
-
setState({
|
|
84
|
-
startTime: dayjs().format('YYYY-MM-DD 00:00:00'),
|
|
85
|
-
endTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
74
|
}
|
|
75
|
+
if (dateType === 'dayBeforeYesterday') {
|
|
76
|
+
s = dayjs().subtract(2, 'day').format('YYYY-MM-DD 00:00:00');
|
|
77
|
+
e = dayjs().subtract(2, 'day').format('YYYY-MM-DD 23:59:59');
|
|
78
|
+
} else if (dateType === 'yesterday') {
|
|
79
|
+
s = dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00');
|
|
80
|
+
e = dayjs().subtract(1, 'day').format('YYYY-MM-DD 23:59:59');
|
|
81
|
+
} else {
|
|
82
|
+
s = dayjs().format('YYYY-MM-DD 00:00:00');
|
|
83
|
+
e = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
84
|
+
}
|
|
85
|
+
setState({
|
|
86
|
+
startTime: s,
|
|
87
|
+
endTime: e
|
|
88
|
+
});
|
|
89
|
+
form.setFieldsValue({
|
|
90
|
+
beginTime: dayjs(s),
|
|
91
|
+
endTime: dayjs(e)
|
|
92
|
+
});
|
|
89
93
|
}, [dateType]);
|
|
90
94
|
useEffect(function () {
|
|
91
95
|
if (channels !== null && channels !== void 0 && channels.length && tabKey === '1') {
|
|
@@ -199,8 +203,8 @@ var VmVideo = function VmVideo(_ref) {
|
|
|
199
203
|
requiredMark: false,
|
|
200
204
|
colon: true,
|
|
201
205
|
initialValues: {
|
|
202
|
-
beginTime: startTime ? dayjs(startTime) : dayjs().
|
|
203
|
-
endTime: endTime ? dayjs(endTime) : dayjs().
|
|
206
|
+
beginTime: startTime ? dayjs(startTime) : dayjs().startOf('day'),
|
|
207
|
+
endTime: endTime ? dayjs(endTime) : dayjs().endOf('day')
|
|
204
208
|
},
|
|
205
209
|
autoComplete: "off",
|
|
206
210
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
@@ -6,27 +6,17 @@ import { useRequest } from 'ahooks';
|
|
|
6
6
|
import http from "../_util/http";
|
|
7
7
|
export default (function (billId, ready) {
|
|
8
8
|
var _useRequest = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9
|
-
var url
|
|
9
|
+
var url;
|
|
10
10
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11
11
|
while (1) switch (_context.prev = _context.next) {
|
|
12
12
|
case 0:
|
|
13
13
|
url = "".concat(process.env.PREFIX || '', "/cloud/vis/base/np/videoDevice/loadVideoChannelByBillId.smvc");
|
|
14
|
-
_context.next = 3;
|
|
15
|
-
return http.exists(url);
|
|
16
|
-
case 3:
|
|
17
|
-
exists = _context.sent;
|
|
18
|
-
if (exists) {
|
|
19
|
-
_context.next = 6;
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
return _context.abrupt("return");
|
|
23
|
-
case 6:
|
|
24
14
|
return _context.abrupt("return", http.get(url, {
|
|
25
15
|
body: {
|
|
26
16
|
billId: billId
|
|
27
17
|
}
|
|
28
18
|
}));
|
|
29
|
-
case
|
|
19
|
+
case 2:
|
|
30
20
|
case "end":
|
|
31
21
|
return _context.stop();
|
|
32
22
|
}
|
package/lib/_util/http.js
CHANGED
|
@@ -17,7 +17,7 @@ import pickBy from 'lodash/pickBy';
|
|
|
17
17
|
import qs from 'qs';
|
|
18
18
|
var SECOND = 30;
|
|
19
19
|
var MILL_SECOND = 1000;
|
|
20
|
-
var baseUrlPrefix = process.env.PREFIX ? "
|
|
20
|
+
var baseUrlPrefix = process.env.PREFIX ? "".concat(process.env.PREFIX) : '';
|
|
21
21
|
var Http = /*#__PURE__*/function () {
|
|
22
22
|
function Http(options) {
|
|
23
23
|
_classCallCheck(this, Http);
|
|
@@ -78,9 +78,9 @@ var Http = /*#__PURE__*/function () {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* 判断接口是否存在
|
|
83
|
-
* @param {*} url
|
|
81
|
+
/**
|
|
82
|
+
* 判断接口是否存在
|
|
83
|
+
* @param {*} url
|
|
84
84
|
*/
|
|
85
85
|
}, {
|
|
86
86
|
key: "exists",
|
|
@@ -103,10 +103,10 @@ var Http = /*#__PURE__*/function () {
|
|
|
103
103
|
return (error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) !== 404;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
/**
|
|
107
|
-
* get 请求
|
|
108
|
-
* @param {*} url
|
|
109
|
-
* @param {*} options {body}
|
|
106
|
+
/**
|
|
107
|
+
* get 请求
|
|
108
|
+
* @param {*} url
|
|
109
|
+
* @param {*} options {body}
|
|
110
110
|
*/
|
|
111
111
|
}, {
|
|
112
112
|
key: "getForTenantId",
|
|
@@ -62,7 +62,7 @@ var BaseService = {
|
|
|
62
62
|
layerType: 'staff',
|
|
63
63
|
staffName: item.staffName,
|
|
64
64
|
newType: item.icon ? 1 : item.statusCode === 'Normal' ? 2 : 3,
|
|
65
|
-
url: item.icon ? "/cloudFile/common/downloadFile?id=".concat(item.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.CommonIcon2({
|
|
65
|
+
url: item.icon ? "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(item.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.CommonIcon2({
|
|
66
66
|
canvasIcon: 'PERSONNEL',
|
|
67
67
|
color: ((_mapInfoRes = mapInfoRes) === null || _mapInfoRes === void 0 || (_mapInfoRes = _mapInfoRes.data) === null || _mapInfoRes === void 0 ? void 0 : _mapInfoRes.statusCode) === 'Normal' ? '#119FFB' : '#999999'
|
|
68
68
|
}).getImgUrl() : new MapIcon.CommonIcon({
|
|
@@ -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
|
+
}
|
|
@@ -157,6 +157,9 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
157
157
|
if (prefixList.length === 2) {
|
|
158
158
|
prefix = "/".concat(prefixList[0]);
|
|
159
159
|
}
|
|
160
|
+
if (prefixList.length === 3) {
|
|
161
|
+
prefix = "/".concat(prefixList[0], "/").concat(prefixList[1]);
|
|
162
|
+
}
|
|
160
163
|
var _theme = theme === 'light' ? 'light' : 'dark';
|
|
161
164
|
if (type === 'car') {
|
|
162
165
|
var path = 'index';
|
|
@@ -21,7 +21,7 @@ export var cancelFavorite = function cancelFavorite(params) {
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
export var getTenantById = function getTenantById(id) {
|
|
24
|
-
return http.get("
|
|
24
|
+
return http.get("/cloud/management/rest/np/tenant/getTenantById", {
|
|
25
25
|
body: {
|
|
26
26
|
parameters: JSON.stringify({
|
|
27
27
|
id: id
|
|
@@ -30,7 +30,7 @@ export var getTenantById = function getTenantById(id) {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
export var getUmsConfig = function getUmsConfig(componentCode) {
|
|
33
|
-
return http.get("
|
|
33
|
+
return http.get("/cloud/management/api/v101/user/config/component/page", {
|
|
34
34
|
body: {
|
|
35
35
|
componentCode: componentCode,
|
|
36
36
|
userId: getVtxToken('userId')
|
|
@@ -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
|
+
}
|
|
@@ -59,7 +59,7 @@ var Content = function Content(_ref) {
|
|
|
59
59
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(text, "&token=").concat(token),
|
|
60
60
|
preview: {
|
|
61
61
|
destroyOnClose: true,
|
|
62
|
-
src: "/cloudFile/common/downloadFile?id=".concat(text, "&token=").concat(token),
|
|
62
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(text, "&token=").concat(token),
|
|
63
63
|
maskClassName: 'maskClass'
|
|
64
64
|
},
|
|
65
65
|
alt: "\u7B7E\u5B57",
|
|
@@ -88,7 +88,7 @@ var Content = function Content(_ref) {
|
|
|
88
88
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(text, "&token=").concat(token),
|
|
89
89
|
preview: {
|
|
90
90
|
destroyOnClose: true,
|
|
91
|
-
src: "/cloudFile/common/downloadFile?id=".concat(text, "&token=").concat(token),
|
|
91
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(text, "&token=").concat(token),
|
|
92
92
|
maskClassName: 'maskClass'
|
|
93
93
|
},
|
|
94
94
|
alt: "\u7B7E\u5B57",
|
|
@@ -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
|
+
}
|
|
@@ -40,7 +40,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
40
40
|
height: 80,
|
|
41
41
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
42
42
|
preview: {
|
|
43
|
-
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
43
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
44
44
|
}
|
|
45
45
|
}, item.id);
|
|
46
46
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.vm-cc-unit-map-wrap {
|
|
2
|
-
flex: 1;
|
|
3
|
-
min-height: 230px;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
}
|
|
1
|
+
.vm-cc-unit-map-wrap {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 230px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
@@ -70,7 +70,7 @@ var DetailInfo = function DetailInfo(_ref) {
|
|
|
70
70
|
height: 80,
|
|
71
71
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
72
72
|
preview: {
|
|
73
|
-
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
73
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
74
74
|
}
|
|
75
75
|
}, item.id);
|
|
76
76
|
})
|
|
@@ -35,7 +35,7 @@ export default function TodayWork(props) {
|
|
|
35
35
|
var src = '';
|
|
36
36
|
if (productTypes !== null && productTypes !== void 0 && (_productTypes$id = productTypes[id]) !== null && _productTypes$id !== void 0 && _productTypes$id.icon) {
|
|
37
37
|
var icon = JSON.parse(productTypes[id].icon)[0];
|
|
38
|
-
src = "/cloudFile/common/downloadFile?id=".concat(icon.id, "&token=").concat(getVtxToken('token'));
|
|
38
|
+
src = "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(icon.id, "&token=").concat(getVtxToken('token'));
|
|
39
39
|
}
|
|
40
40
|
return src;
|
|
41
41
|
};
|
|
@@ -67,7 +67,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
67
67
|
},
|
|
68
68
|
children: photos.map(function (item) {
|
|
69
69
|
return /*#__PURE__*/_jsx(VtxImage, {
|
|
70
|
-
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
70
|
+
src: "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
71
71
|
alt: item.name,
|
|
72
72
|
style: {
|
|
73
73
|
width: '100%',
|
|
@@ -26,6 +26,7 @@ var TABS_METERING = 'metering';
|
|
|
26
26
|
var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
27
27
|
var _info$geometryInfo, _info$geometryInfo2, _info$geometryInfo3;
|
|
28
28
|
var id = props.id,
|
|
29
|
+
facilityId = props.facilityId,
|
|
29
30
|
title = props.title,
|
|
30
31
|
subTitle = props.subTitle,
|
|
31
32
|
theme = props.theme,
|
|
@@ -103,7 +104,7 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
103
104
|
tabsData.forEach(function (ele) {
|
|
104
105
|
if (ele.url) {
|
|
105
106
|
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
106
|
-
id: id,
|
|
107
|
+
id: ele.url.indexOf('type=1') > -1 ? facilityId : id,
|
|
107
108
|
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
108
109
|
});
|
|
109
110
|
}
|
|
@@ -37,7 +37,7 @@ var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
|
37
37
|
var onPreview = function onPreview(_ref2) {
|
|
38
38
|
var id = _ref2.id,
|
|
39
39
|
name = _ref2.name;
|
|
40
|
-
var url = "".concat(window.location.origin, "/cloudFile/common/downloadFile?id=").concat(id, "&fullfilename=").concat(id, "-").concat(name.replace(/\s*/g, ''), "&token=").concat(token);
|
|
40
|
+
var url = "".concat(window.location.origin).concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(id, "&fullfilename=").concat(id, "-").concat(name.replace(/\s*/g, ''), "&token=").concat(token);
|
|
41
41
|
var base64 = Buffer.from(url).toString('base64');
|
|
42
42
|
setIframeModalInfo({
|
|
43
43
|
src: "".concat(window.location.origin, "/cloud/kkPreview/onlinePreview?url=").concat(base64, "&token=").concat(token),
|
|
@@ -47,7 +47,7 @@ var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
|
47
47
|
};
|
|
48
48
|
//下载
|
|
49
49
|
var download = function download(obj) {
|
|
50
|
-
window.location.href = "/cloudFile/common/downloadFile?id=".concat(obj.id, "&token=").concat(token);
|
|
50
|
+
window.location.href = "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(obj.id, "&token=").concat(token);
|
|
51
51
|
};
|
|
52
52
|
var component = /*#__PURE__*/_jsxs("div", {
|
|
53
53
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
@@ -99,7 +99,7 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
99
99
|
if (info.photoIds) {
|
|
100
100
|
var _JSON$parse;
|
|
101
101
|
var id = (_JSON$parse = JSON.parse(info.photoIds)) === null || _JSON$parse === void 0 || (_JSON$parse = _JSON$parse[0]) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.id;
|
|
102
|
-
url = id ? "/cloudFile/common/downloadFile?id=".concat(id, "&token=").concat(getVtxToken('token') || '') : '';
|
|
102
|
+
url = id ? "".concat(process.env.PREFIX || '', "/cloudFile/common/downloadFile?id=").concat(id, "&token=").concat(getVtxToken('token') || '') : '';
|
|
103
103
|
}
|
|
104
104
|
var installLocationDTO = info.installLocationDTO;
|
|
105
105
|
var _ref2 = installLocationDTO !== null && installLocationDTO !== void 0 && installLocationDTO.lngLats ? installLocationDTO.lngLats.split(',') : [],
|