@vtx/modals2 5.0.28 → 5.0.30
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-map/index.js +0 -2
- package/lib/vtx-base-modal/index.js +3 -3
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +2 -2
- package/lib/vtx-car-modal/index.js +4 -4
- package/lib/vtx-qyry-modal/api.js +1 -2
- package/lib/vtx-staff-modal/api.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +1 -1
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +23 -8
- package/lib/vtx-wr-modal/components/Base/index.less +6 -0
- package/package.json +1 -1
|
@@ -21,8 +21,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
export default function VmOlMap(_ref) {
|
|
22
22
|
var _mapInfo$olProps, _points$data2, _polygons$data2, _newPoints$data3;
|
|
23
23
|
var mapCenter = _ref.mapCenter,
|
|
24
|
-
_ref$mapType = _ref.mapType,
|
|
25
|
-
mapType = _ref$mapType === void 0 ? 'bmap' : _ref$mapType,
|
|
26
24
|
_ref$mapPoints = _ref.mapPoints,
|
|
27
25
|
mapPoints = _ref$mapPoints === void 0 ? [] : _ref$mapPoints,
|
|
28
26
|
_ref$newMapPoints = _ref.newMapPoints,
|
|
@@ -108,9 +108,9 @@ var VmBaseModal = function VmBaseModal(props) {
|
|
|
108
108
|
var value = useMemo(function () {
|
|
109
109
|
return {
|
|
110
110
|
theme: theme,
|
|
111
|
-
startDate: startDate,
|
|
112
|
-
endDate: endDate,
|
|
113
|
-
date: date,
|
|
111
|
+
startDate: startDate ? dayjs(startDate) : '',
|
|
112
|
+
endDate: endDate ? dayjs(endDate) : '',
|
|
113
|
+
date: date ? dayjs(date) : '',
|
|
114
114
|
mapInfo: mapInfo,
|
|
115
115
|
tabPosition: tabPosition,
|
|
116
116
|
chartFontColor: theme === 'light' ? '#595959' : '#FFFFFF',
|
|
@@ -47,7 +47,7 @@ export default function Pies(_ref) {
|
|
|
47
47
|
});
|
|
48
48
|
var info = startDataList[index] || {};
|
|
49
49
|
var value = info.value;
|
|
50
|
-
return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value, "\u5904\u7F6E\u8BC1)");
|
|
50
|
+
return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5904\u7F6E\u8BC1)");
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
})
|
|
@@ -68,7 +68,7 @@ export default function Pies(_ref) {
|
|
|
68
68
|
});
|
|
69
69
|
var info = endDataList[index] || {};
|
|
70
70
|
var value = info.value;
|
|
71
|
-
return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value, "\u5904\u7F6E\u8BC1)");
|
|
71
|
+
return "{name|".concat(name.slice(0, 6)).concat(name.length > 6 ? '...' : '', "}(\u5173\u8054").concat(value !== null && value !== void 0 ? value : 0, "\u5904\u7F6E\u8BC1)");
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
})
|
|
@@ -87,8 +87,8 @@ export var CarContext = /*#__PURE__*/React.createContext({
|
|
|
87
87
|
id: '',
|
|
88
88
|
info: {},
|
|
89
89
|
detail: {},
|
|
90
|
-
startDate: dayjs()
|
|
91
|
-
endDate: dayjs()
|
|
90
|
+
startDate: dayjs(),
|
|
91
|
+
endDate: dayjs(),
|
|
92
92
|
showFields: []
|
|
93
93
|
});
|
|
94
94
|
var Provider = CarContext.Provider;
|
|
@@ -287,8 +287,8 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
287
287
|
id: id,
|
|
288
288
|
info: info,
|
|
289
289
|
detail: detail,
|
|
290
|
-
startDate: startDate,
|
|
291
|
-
endDate: endDate,
|
|
290
|
+
startDate: startDate ? dayjs(startDate) : null,
|
|
291
|
+
endDate: endDate ? dayjs(endDate) : null,
|
|
292
292
|
showFields: showFields,
|
|
293
293
|
onTdClick: onTdClick,
|
|
294
294
|
onCancel: onCancel,
|
|
@@ -97,8 +97,7 @@ var BaseService = {
|
|
|
97
97
|
},
|
|
98
98
|
lng: mapInfoRes.data.lngDone,
|
|
99
99
|
lat: mapInfoRes.data.latDone,
|
|
100
|
-
|
|
101
|
-
url: mapInfoRes !== null && mapInfoRes !== void 0 && (_mapInfoRes$data2 = mapInfoRes.data) !== null && _mapInfoRes$data2 !== void 0 && _mapInfoRes$data2.icon ? "/cloudFile/common/downloadFile?id=".concat(mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data3 = mapInfoRes.data) === null || _mapInfoRes$data3 === void 0 ? void 0 : _mapInfoRes$data3.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.CommonIcon2({
|
|
100
|
+
url: mapInfoRes !== null && mapInfoRes !== void 0 && (_mapInfoRes$data2 = mapInfoRes.data) !== null && _mapInfoRes$data2 !== void 0 && _mapInfoRes$data2.icon ? "/cloudFile/common/downloadFile?id=".concat(mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data3 = mapInfoRes.data) === null || _mapInfoRes$data3 === void 0 ? void 0 : _mapInfoRes$data3.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.CommonIcon({
|
|
102
101
|
canvasIcon: 'PERSONNEL',
|
|
103
102
|
color: (mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data4 = mapInfoRes.data) === null || _mapInfoRes$data4 === void 0 ? void 0 : _mapInfoRes$data4.statusCode) === 'Normal' ? '#119FFB' : '#999999'
|
|
104
103
|
}).getImgUrl() : new MapIcon.CommonIcon({
|
|
@@ -104,8 +104,8 @@ var BaseService = {
|
|
|
104
104
|
},
|
|
105
105
|
lng: mapInfoRes.data.lngDone,
|
|
106
106
|
lat: mapInfoRes.data.latDone,
|
|
107
|
-
labelClass: 'vtx-map-carCode',
|
|
108
|
-
url: mapInfoRes !== null && mapInfoRes !== void 0 && (_mapInfoRes$data3 = mapInfoRes.data) !== null && _mapInfoRes$data3 !== void 0 && _mapInfoRes$data3.icon ? "/cloudFile/common/downloadFile?id=".concat(mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data4 = mapInfoRes.data) === null || _mapInfoRes$data4 === void 0 ? void 0 : _mapInfoRes$data4.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.
|
|
107
|
+
// labelClass: 'vtx-map-carCode',
|
|
108
|
+
url: mapInfoRes !== null && mapInfoRes !== void 0 && (_mapInfoRes$data3 = mapInfoRes.data) !== null && _mapInfoRes$data3 !== void 0 && _mapInfoRes$data3.icon ? "/cloudFile/common/downloadFile?id=".concat(mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data4 = mapInfoRes.data) === null || _mapInfoRes$data4 === void 0 ? void 0 : _mapInfoRes$data4.icon, "&token=").concat(getVtxToken('token')) : isDark ? new MapIcon.CommonIcon({
|
|
109
109
|
canvasIcon: 'PERSONNEL',
|
|
110
110
|
color: (mapInfoRes === null || mapInfoRes === void 0 || (_mapInfoRes$data5 = mapInfoRes.data) === null || _mapInfoRes$data5 === void 0 ? void 0 : _mapInfoRes$data5.statusCode) === 'Normal' ? '#119FFB' : '#999999'
|
|
111
111
|
}).getImgUrl() : new MapIcon.CommonIcon({
|
|
@@ -118,7 +118,8 @@ var ListZymx = function ListZymx(props) {
|
|
|
118
118
|
total: (todayWorkRes === null || todayWorkRes === void 0 ? void 0 : todayWorkRes.total) || 0,
|
|
119
119
|
defaultPageSize: 20,
|
|
120
120
|
onChange: pageChange
|
|
121
|
-
})
|
|
121
|
+
}),
|
|
122
|
+
dataSource: (todayWorkRes === null || todayWorkRes === void 0 ? void 0 : todayWorkRes.rows) || []
|
|
122
123
|
};
|
|
123
124
|
return /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
124
125
|
columns: columns,
|
|
@@ -80,7 +80,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
80
80
|
children: (center === null || center === void 0 ? void 0 : center.length) > 0 && /*#__PURE__*/_jsx(VmMap, _objectSpread({
|
|
81
81
|
mapCenter: center,
|
|
82
82
|
mapType: (mapInfo === null || mapInfo === void 0 ? void 0 : mapInfo.mapType) || 'bmap',
|
|
83
|
-
|
|
83
|
+
mapPoints: mapPoints,
|
|
84
84
|
mapPolygons: mapPolygons,
|
|
85
85
|
geometryType: "polygon",
|
|
86
86
|
address: realtimeInfo === null || realtimeInfo === void 0 ? void 0 : realtimeInfo.address
|
|
@@ -14,7 +14,7 @@ import { VtxImage } from '@vtx/components';
|
|
|
14
14
|
import '@vtx/components/lib/vtx-image/style/index';
|
|
15
15
|
import { getVtxToken, request } from '@vtx/utils';
|
|
16
16
|
import { useEffect, useState } from 'react';
|
|
17
|
-
import { VmEmpty } from "../../../_components";
|
|
17
|
+
import { VmEmpty, VmMap } from "../../../_components";
|
|
18
18
|
import Sjjg from "./Sjjg";
|
|
19
19
|
|
|
20
20
|
//基础设施详情
|
|
@@ -25,6 +25,7 @@ var getJcssDetail = function getJcssDetail(params) {
|
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
export default (function (props) {
|
|
28
|
+
var _gcDetail$geometryInf, _gcDetail$geometryInf2, _gcDetail$geometryInf3, _gcDetail$geometryInf4;
|
|
28
29
|
var theme = props.theme,
|
|
29
30
|
gcDetail = props.gcDetail,
|
|
30
31
|
fields = props.fields;
|
|
@@ -69,10 +70,6 @@ export default (function (props) {
|
|
|
69
70
|
name: '行政区划',
|
|
70
71
|
key: 'divisionName',
|
|
71
72
|
isShow: isShow('divisionId')
|
|
72
|
-
}, {
|
|
73
|
-
name: '详细地址',
|
|
74
|
-
key: 'address',
|
|
75
|
-
isShow: isShow('address')
|
|
76
73
|
}, {
|
|
77
74
|
name: '开放时间',
|
|
78
75
|
key: 'openTime',
|
|
@@ -117,6 +114,10 @@ export default (function (props) {
|
|
|
117
114
|
name: '保洁时间',
|
|
118
115
|
key: 'cleanTime',
|
|
119
116
|
isShow: isShow('bjsjId')
|
|
117
|
+
}, {
|
|
118
|
+
name: '详细地址',
|
|
119
|
+
key: 'address',
|
|
120
|
+
isShow: isShow('address')
|
|
120
121
|
}];
|
|
121
122
|
return /*#__PURE__*/_jsxs("div", {
|
|
122
123
|
className: "wr-base-inner",
|
|
@@ -137,9 +138,9 @@ export default (function (props) {
|
|
|
137
138
|
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
138
139
|
type: "NO_PICTURE"
|
|
139
140
|
})
|
|
140
|
-
}), /*#__PURE__*/
|
|
141
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
141
142
|
className: "wr-base-info",
|
|
142
|
-
children: basicList.filter(function (item) {
|
|
143
|
+
children: [basicList.filter(function (item) {
|
|
143
144
|
return item.isShow;
|
|
144
145
|
}).map(function (item) {
|
|
145
146
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -151,7 +152,21 @@ export default (function (props) {
|
|
|
151
152
|
children: [item.name, "\uFF1A"]
|
|
152
153
|
}), gcDetail[item.key] || '--']
|
|
153
154
|
}, item.key);
|
|
154
|
-
})
|
|
155
|
+
}), isShow('address') && ((_gcDetail$geometryInf = gcDetail.geometryInfo) === null || _gcDetail$geometryInf === void 0 ? void 0 : _gcDetail$geometryInf.lngLats) && /*#__PURE__*/_jsx("div", {
|
|
156
|
+
className: "wr-map",
|
|
157
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
158
|
+
mapCenter: (_gcDetail$geometryInf2 = gcDetail.geometryInfo) === null || _gcDetail$geometryInf2 === void 0 ? void 0 : _gcDetail$geometryInf2.lngLats.split(','),
|
|
159
|
+
mapType: "bmap",
|
|
160
|
+
geometryType: "point",
|
|
161
|
+
mapPoints: [{
|
|
162
|
+
id: 'wrPoint',
|
|
163
|
+
name: 'wrPoint',
|
|
164
|
+
lng: (_gcDetail$geometryInf3 = gcDetail.geometryInfo) === null || _gcDetail$geometryInf3 === void 0 ? void 0 : _gcDetail$geometryInf3.lngLats.split(',')[0],
|
|
165
|
+
lat: (_gcDetail$geometryInf4 = gcDetail.geometryInfo) === null || _gcDetail$geometryInf4 === void 0 ? void 0 : _gcDetail$geometryInf4.lngLats.split(',')[1],
|
|
166
|
+
icon: 'HW_GC'
|
|
167
|
+
}]
|
|
168
|
+
})
|
|
169
|
+
})]
|
|
155
170
|
}), /*#__PURE__*/_jsx("div", {
|
|
156
171
|
className: "divider"
|
|
157
172
|
}), gcDetail.hasDevice && /*#__PURE__*/_jsxs(_Fragment, {
|