@vtx/modals2 5.0.4 → 5.0.5
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-bar-charts/index.js +9 -5
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-pie-charts/index.js +3 -1
- package/lib/_components/vm-tag/style/index.less +1 -0
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/index.js +6 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +131 -104
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +206 -158
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +19 -4
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +9 -3
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
- package/lib/vtx-default-modal/index.js +0 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +0 -1
- package/lib/vtx-df-modal/index.js +0 -2
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +15 -5
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -8
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +0 -1
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
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; }
|
|
9
|
+
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; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import { Select } from 'antd';
|
|
12
|
+
import dayjs from 'dayjs';
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { VmWrapper } from "../../../_components";
|
|
15
|
+
import { getViolateBehavior } from "../../api";
|
|
16
|
+
import { filterCode } from "../../config";
|
|
17
|
+
import WGXWContent from "./Content";
|
|
18
|
+
import "./index.less";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
var Option = Select.Option;
|
|
21
|
+
var WGXW = function WGXW(_ref) {
|
|
22
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
23
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
24
|
+
id = _ref.id,
|
|
25
|
+
_ref$throwPoints = _ref.throwPoints,
|
|
26
|
+
throwPoints = _ref$throwPoints === void 0 ? [] : _ref$throwPoints,
|
|
27
|
+
serviceList = _ref.serviceList;
|
|
28
|
+
var prefix = "".concat(classPrefix, "-wgxw");
|
|
29
|
+
var _useState = useState('all'),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
tab = _useState2[0],
|
|
32
|
+
setTab = _useState2[1];
|
|
33
|
+
var _useState3 = useState([dayjs(), dayjs()]),
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
+
times = _useState4[0],
|
|
36
|
+
setTimes = _useState4[1];
|
|
37
|
+
// 违规行为
|
|
38
|
+
var _useState5 = useState('all'),
|
|
39
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
40
|
+
throwAberrantCode = _useState6[0],
|
|
41
|
+
setThrowAberrantCode = _useState6[1];
|
|
42
|
+
// 违规行为
|
|
43
|
+
var _useState7 = useState([]),
|
|
44
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
45
|
+
throwAberrantList = _useState8[0],
|
|
46
|
+
setThrowAberrantList = _useState8[1];
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
getViolateBehavior().then(function (data) {
|
|
49
|
+
setThrowAberrantList([{
|
|
50
|
+
text: '全部',
|
|
51
|
+
value: 'all'
|
|
52
|
+
}].concat(_toConsumableArray(data || [])));
|
|
53
|
+
});
|
|
54
|
+
}, []);
|
|
55
|
+
var onTabChange = function onTabChange(tab) {
|
|
56
|
+
setTab(tab);
|
|
57
|
+
};
|
|
58
|
+
var searchContent = /*#__PURE__*/_jsxs("div", {
|
|
59
|
+
style: {
|
|
60
|
+
textAlign: 'right',
|
|
61
|
+
paddingRight: 10
|
|
62
|
+
},
|
|
63
|
+
className: "searchContent ",
|
|
64
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
65
|
+
style: {
|
|
66
|
+
color: '#B3C4CE'
|
|
67
|
+
},
|
|
68
|
+
children: " \u8FDD\u89C4\u884C\u4E3A\uFF1A"
|
|
69
|
+
}), /*#__PURE__*/_jsx(Select, {
|
|
70
|
+
value: throwAberrantCode,
|
|
71
|
+
onChange: function onChange(value) {
|
|
72
|
+
return setThrowAberrantCode(value);
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
width: 120
|
|
76
|
+
},
|
|
77
|
+
children: throwAberrantList.map(function (item) {
|
|
78
|
+
return /*#__PURE__*/_jsx(Option, {
|
|
79
|
+
children: item.text
|
|
80
|
+
}, item.value);
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
return /*#__PURE__*/_jsx("div", {
|
|
85
|
+
className: prefix,
|
|
86
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
87
|
+
tabList: [{
|
|
88
|
+
label: '所有投放点',
|
|
89
|
+
key: 'all'
|
|
90
|
+
}].concat(throwPoints === null || throwPoints === void 0 ? void 0 : throwPoints.map(function (ele) {
|
|
91
|
+
return {
|
|
92
|
+
label: ele.pointName,
|
|
93
|
+
key: ele.id
|
|
94
|
+
};
|
|
95
|
+
})),
|
|
96
|
+
activeKey: tab,
|
|
97
|
+
onChangeTab: onTabChange,
|
|
98
|
+
filterType: "rangePicker",
|
|
99
|
+
dateValue: times,
|
|
100
|
+
filterChange: function filterChange(date) {
|
|
101
|
+
setTimes(date);
|
|
102
|
+
},
|
|
103
|
+
children: [tab === 'all' && /*#__PURE__*/_jsx(WGXWContent, {
|
|
104
|
+
classPrefix: prefix,
|
|
105
|
+
id: id,
|
|
106
|
+
throwAberrantCode: throwAberrantCode,
|
|
107
|
+
startTime: times[0].format('YYYY-MM-DD 00:00:00'),
|
|
108
|
+
endTime: times[1].format('YYYY-MM-DD 23:59:59'),
|
|
109
|
+
throwPointId: ""
|
|
110
|
+
}), tab !== 'all' && filterCode(serviceList, ['CHUYU_QUALITY', 'LANDING', 'ON_LID', 'QITA_QUALITY']) && /*#__PURE__*/_jsx(WGXWContent, {
|
|
111
|
+
classPrefix: prefix,
|
|
112
|
+
id: id,
|
|
113
|
+
throwAberrantCode: throwAberrantCode,
|
|
114
|
+
startTime: times[0].format('YYYY-MM-DD 00:00:00'),
|
|
115
|
+
endTime: times[1].format('YYYY-MM-DD 23:59:59'),
|
|
116
|
+
throwPointId: tab
|
|
117
|
+
})]
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
export default WGXW;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@import '../../style/index';
|
|
2
|
+
|
|
3
|
+
.@{prefix-cls}-wgxw {
|
|
4
|
+
&-content {
|
|
5
|
+
--wgxw-main-color: #000;
|
|
6
|
+
--wgwx-label-color: #595959;
|
|
7
|
+
--wgxw-border-color: rgba(0, 0, 0, 0.1);
|
|
8
|
+
--wgxw-bg-color: transparent;
|
|
9
|
+
|
|
10
|
+
&.dark {
|
|
11
|
+
--wgxw-main-color: #fff;
|
|
12
|
+
--wgwx-label-color: #fff;
|
|
13
|
+
--wgxw-border-color: #1064a7;
|
|
14
|
+
--wgxw-bg-color: rgba(0, 155, 233, 0.1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-spin {
|
|
18
|
+
position: absolute;
|
|
19
|
+
margin: 150px 0 0 50%;
|
|
20
|
+
transform: translateX(-50%);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
25
|
+
gap: 16px;
|
|
26
|
+
overflow: auto;
|
|
27
|
+
color: var(--modal-title-color);
|
|
28
|
+
position: relative;
|
|
29
|
+
&-item {
|
|
30
|
+
padding-bottom: 0;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
height: 233px;
|
|
34
|
+
background: var(--wgxw-bg-color);
|
|
35
|
+
border: 1px solid var(--wgxw-border-color);
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
&-img {
|
|
38
|
+
flex: 1;
|
|
39
|
+
img {
|
|
40
|
+
border-radius: 8px 8px 0 0;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 133px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
& > p {
|
|
46
|
+
padding: 12px 6px;
|
|
47
|
+
height: 101px;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-info1 {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
margin-bottom: 4px;
|
|
56
|
+
& > span:nth-child(1) {
|
|
57
|
+
color: var(--wgxw-main-color);
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&-info2 {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
align-items: center;
|
|
65
|
+
margin-bottom: 4px;
|
|
66
|
+
& > span {
|
|
67
|
+
color: var(--wgwx-label-color);
|
|
68
|
+
}
|
|
69
|
+
& > div {
|
|
70
|
+
color: var(--wgwx-label-color);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&-info3 {
|
|
74
|
+
display: flex;
|
|
75
|
+
gap: 8px;
|
|
76
|
+
align-items: center;
|
|
77
|
+
color: var(--wgwx-label-color);
|
|
78
|
+
}
|
|
79
|
+
&-TO_BE_RESOLVED,
|
|
80
|
+
&-PENDING {
|
|
81
|
+
color: #faad14;
|
|
82
|
+
}
|
|
83
|
+
&-TO_BE_AUDITED {
|
|
84
|
+
color: #faad14;
|
|
85
|
+
}
|
|
86
|
+
&-FAILED {
|
|
87
|
+
color: #ff4d4f;
|
|
88
|
+
}
|
|
89
|
+
&-PASSED {
|
|
90
|
+
color: #52c41a;
|
|
91
|
+
}
|
|
92
|
+
&-IGNORED {
|
|
93
|
+
color: #999999;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
7
|
+
export var OverViewLeftFields = [{
|
|
8
|
+
key: 'householdNum',
|
|
9
|
+
label: '居民户数(户)'
|
|
10
|
+
}, {
|
|
11
|
+
key: 'supervisorNum',
|
|
12
|
+
label: '督导员数量'
|
|
13
|
+
}, {
|
|
14
|
+
key: 'personNum',
|
|
15
|
+
label: '居民人数(人)'
|
|
16
|
+
}, {
|
|
17
|
+
key: 'throwPointNum',
|
|
18
|
+
label: '投放点数量'
|
|
19
|
+
}, {
|
|
20
|
+
key: 'divisionName',
|
|
21
|
+
label: '行政区划'
|
|
22
|
+
}, {
|
|
23
|
+
key: 'jcssTypeName',
|
|
24
|
+
label: '分类主体'
|
|
25
|
+
},
|
|
26
|
+
// {
|
|
27
|
+
// key: 'jcssTypeName',
|
|
28
|
+
// label: '投放时间',
|
|
29
|
+
// },
|
|
30
|
+
{
|
|
31
|
+
key: 'manageOrgName',
|
|
32
|
+
label: '管理单位'
|
|
33
|
+
}, {
|
|
34
|
+
key: 'responsibleOrgName',
|
|
35
|
+
label: '运营公司'
|
|
36
|
+
}, {
|
|
37
|
+
key: 'address',
|
|
38
|
+
label: '地址'
|
|
39
|
+
}];
|
|
40
|
+
|
|
41
|
+
// 过滤echarts数据
|
|
42
|
+
export var getFilterEcharts = function getFilterEcharts(data, filterList) {
|
|
43
|
+
var _data = [];
|
|
44
|
+
if (!(data !== null && data !== void 0 && data.length)) return;
|
|
45
|
+
filterList.forEach(function (item) {
|
|
46
|
+
switch (item) {
|
|
47
|
+
case 'CHUYU_QUALITY':
|
|
48
|
+
_data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
|
|
49
|
+
return ele.alarmTypeName === '厨余混投' || ele.alarmTypeName === '厨余未破袋';
|
|
50
|
+
}));
|
|
51
|
+
break;
|
|
52
|
+
case 'LANDING':
|
|
53
|
+
_data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
|
|
54
|
+
return ele.alarmTypeName === '误时落地' || ele.alarmTypeName === '正时落地';
|
|
55
|
+
}));
|
|
56
|
+
break;
|
|
57
|
+
case 'OVERFLOW':
|
|
58
|
+
_data = _data.concat(data === null || data === void 0 ? void 0 : data.filter(function (ele) {
|
|
59
|
+
return ele.alarmTypeName === '满溢';
|
|
60
|
+
}));
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
_data = data;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return _data;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// 取两个数组的交集
|
|
71
|
+
export var filterCode = function filterCode(arr, codes) {
|
|
72
|
+
var newArr = new Set(arr);
|
|
73
|
+
var newCodes = new Set(codes);
|
|
74
|
+
return new Set(_toConsumableArray(newArr).filter(function (x) {
|
|
75
|
+
return newCodes.has(x);
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import VmCustom from "../_components/vm-custom";
|
|
3
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
4
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
5
|
+
import { overViewService, useGetLoadEnumValue } from "./api";
|
|
6
|
+
import { Alarm, OverView, TFRD, WGGS, WGXW } from "./components";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var VtxHousingEstateModal = function VtxHousingEstateModal(props) {
|
|
9
|
+
var _props$visible = props.visible,
|
|
10
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
11
|
+
onCancel = props.onCancel,
|
|
12
|
+
_props$theme = props.theme,
|
|
13
|
+
theme = _props$theme === void 0 ? '' : _props$theme,
|
|
14
|
+
id = props.id,
|
|
15
|
+
_props$title = props.title,
|
|
16
|
+
title = _props$title === void 0 ? '' : _props$title;
|
|
17
|
+
var PREFIX = 'estate';
|
|
18
|
+
var tabs = [{
|
|
19
|
+
key: 'base',
|
|
20
|
+
title: '总览信息'
|
|
21
|
+
}, {
|
|
22
|
+
key: 'wgrgs',
|
|
23
|
+
title: '违规人公示'
|
|
24
|
+
}, {
|
|
25
|
+
key: 'tfrd',
|
|
26
|
+
title: '居民投放热度'
|
|
27
|
+
}, {
|
|
28
|
+
key: 'wgxw',
|
|
29
|
+
title: '居民违规行为'
|
|
30
|
+
}, {
|
|
31
|
+
key: 'alarm',
|
|
32
|
+
title: '报警时间分析'
|
|
33
|
+
}];
|
|
34
|
+
var _useGetConfig = useGetConfig('estate', tabs),
|
|
35
|
+
tabsData = _useGetConfig.tabsData;
|
|
36
|
+
// 小区基本信息
|
|
37
|
+
var basicInfo = overViewService.useEstateStatistics({
|
|
38
|
+
housingEstateId: id
|
|
39
|
+
});
|
|
40
|
+
// 系统配置获取垃圾类型配置的图标
|
|
41
|
+
var garbageIcons = overViewService.useGetGarbageIcons();
|
|
42
|
+
// 小区关联投放点
|
|
43
|
+
var throwPoints = overViewService.useThrowPoints({
|
|
44
|
+
housingEstateId: id
|
|
45
|
+
});
|
|
46
|
+
// 小区业务包code
|
|
47
|
+
var serviceList = useGetLoadEnumValue(id) || [];
|
|
48
|
+
var tabsList = useMemo(function () {
|
|
49
|
+
var tabsList = tabsData;
|
|
50
|
+
if (!serviceList.includes('THROW')) {
|
|
51
|
+
tabsList = tabsList.filter(function (ele) {
|
|
52
|
+
return ele.key !== 'tfrd';
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return tabsList;
|
|
56
|
+
}, [JSON.stringify(tabsData), JSON.stringify(serviceList)]);
|
|
57
|
+
var tabContents = {
|
|
58
|
+
base: /*#__PURE__*/_jsx(OverView, {
|
|
59
|
+
classPrefix: PREFIX,
|
|
60
|
+
id: id,
|
|
61
|
+
basicInfo: basicInfo,
|
|
62
|
+
throwPoints: throwPoints,
|
|
63
|
+
serviceList: serviceList,
|
|
64
|
+
garbageIcons: garbageIcons
|
|
65
|
+
}),
|
|
66
|
+
wgrgs: /*#__PURE__*/_jsx(WGGS, {
|
|
67
|
+
classPrefix: PREFIX,
|
|
68
|
+
id: id,
|
|
69
|
+
throwPoints: throwPoints,
|
|
70
|
+
serviceList: serviceList
|
|
71
|
+
}),
|
|
72
|
+
tfrd: /*#__PURE__*/_jsx(TFRD, {
|
|
73
|
+
classPrefix: PREFIX,
|
|
74
|
+
id: id
|
|
75
|
+
}),
|
|
76
|
+
alarm: /*#__PURE__*/_jsx(Alarm, {
|
|
77
|
+
classPrefix: PREFIX,
|
|
78
|
+
id: id
|
|
79
|
+
}),
|
|
80
|
+
wgxw: /*#__PURE__*/_jsx(WGXW, {
|
|
81
|
+
classPrefix: PREFIX,
|
|
82
|
+
id: id,
|
|
83
|
+
throwPoints: throwPoints,
|
|
84
|
+
serviceList: serviceList
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
// 自定义页签可配置多个,
|
|
88
|
+
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
89
|
+
tabsData.forEach(function (ele) {
|
|
90
|
+
if (ele.url) {
|
|
91
|
+
tabContents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
92
|
+
id: id,
|
|
93
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
99
|
+
title: title,
|
|
100
|
+
theme: theme,
|
|
101
|
+
width: 1344,
|
|
102
|
+
tabs: tabs,
|
|
103
|
+
contents: tabContents,
|
|
104
|
+
visible: visible,
|
|
105
|
+
onCancel: onCancel
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
export default VtxHousingEstateModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@prefix-cls: estate;
|
|
@@ -102,7 +102,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
102
102
|
}), index);
|
|
103
103
|
}), /*#__PURE__*/_jsxs(Space, {
|
|
104
104
|
children: [/*#__PURE__*/_jsx("div", {
|
|
105
|
-
children: "\u6709\u6548\
|
|
105
|
+
children: "\u6709\u6548\u5B8C\u6210\u7387\uFF1A"
|
|
106
106
|
}), /*#__PURE__*/_jsx("div", {
|
|
107
107
|
className: 'vtx-road-calendar-complete-legend',
|
|
108
108
|
style: {
|
|
@@ -27,7 +27,6 @@ var ThrowCalendar = function ThrowCalendar(_ref) {
|
|
|
27
27
|
var id = _ref.id,
|
|
28
28
|
_ref$areaDimension = _ref.areaDimension,
|
|
29
29
|
areaDimension = _ref$areaDimension === void 0 ? 'COMMUNITY' : _ref$areaDimension;
|
|
30
|
-
console.log(areaDimension);
|
|
31
30
|
var _useSetState = useSetState({
|
|
32
31
|
date: dayjs(),
|
|
33
32
|
tabKey: 'calendar' // chart, list
|
|
@@ -40,7 +40,8 @@ var ListZymx = function ListZymx(props) {
|
|
|
40
40
|
var columns = [{
|
|
41
41
|
title: '作业日期',
|
|
42
42
|
dataIndex: 'shiftDate',
|
|
43
|
-
key: 'shiftDate'
|
|
43
|
+
key: 'shiftDate',
|
|
44
|
+
width: 80
|
|
44
45
|
}, {
|
|
45
46
|
title: '班次名称',
|
|
46
47
|
dataIndex: 'shiftName',
|
|
@@ -63,12 +64,18 @@ var ListZymx = function ListZymx(props) {
|
|
|
63
64
|
dataIndex: 'shiftWorkElementNames',
|
|
64
65
|
key: 'shiftWorkElementNames',
|
|
65
66
|
width: 110,
|
|
66
|
-
ellipsis: true
|
|
67
|
+
ellipsis: true,
|
|
68
|
+
render: function render(text) {
|
|
69
|
+
return text ? text : '--';
|
|
70
|
+
}
|
|
67
71
|
}, {
|
|
68
72
|
title: '排班时长',
|
|
69
73
|
dataIndex: 'shiftDurationStr',
|
|
70
74
|
key: 'shiftDurationStr',
|
|
71
|
-
width: 100
|
|
75
|
+
width: 100,
|
|
76
|
+
render: function render(text) {
|
|
77
|
+
return text ? text : '--';
|
|
78
|
+
}
|
|
72
79
|
}, {
|
|
73
80
|
title: '出勤时间',
|
|
74
81
|
dataIndex: 'clockInTime',
|
|
@@ -78,12 +85,15 @@ var ListZymx = function ListZymx(props) {
|
|
|
78
85
|
return text ? /*#__PURE__*/_jsx("span", {
|
|
79
86
|
title: "".concat(record.clockInTime || '', "-").concat(record.clockOutTime || ''),
|
|
80
87
|
children: "".concat(record.clockInTime || '', "-").concat(record.clockOutTime || '')
|
|
81
|
-
}) : '';
|
|
88
|
+
}) : '--';
|
|
82
89
|
}
|
|
83
90
|
}, {
|
|
84
91
|
title: '出勤时长',
|
|
85
92
|
dataIndex: 'clockDurationStr',
|
|
86
|
-
key: 'clockDurationStr'
|
|
93
|
+
key: 'clockDurationStr',
|
|
94
|
+
render: function render(text) {
|
|
95
|
+
return text ? text : '--';
|
|
96
|
+
}
|
|
87
97
|
}, {
|
|
88
98
|
title: '完成度',
|
|
89
99
|
dataIndex: 'completionRate',
|
|
@@ -50,7 +50,9 @@ var VtxStaffModal = function VtxStaffModal(props) {
|
|
|
50
50
|
_props$customMapInfo = props.customMapInfo,
|
|
51
51
|
customMapInfo = _props$customMapInfo === void 0 ? {} : _props$customMapInfo,
|
|
52
52
|
_props$tabChose = props.tabChose,
|
|
53
|
-
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose
|
|
53
|
+
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose,
|
|
54
|
+
_props$iframeUrl = props.iframeUrl,
|
|
55
|
+
iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl;
|
|
54
56
|
var _useGetConfig = useGetConfig('staff', tabs),
|
|
55
57
|
tabsData = _useGetConfig.tabsData;
|
|
56
58
|
var _BaseService$useDetai = BaseService.useDetailInfo(id),
|
|
@@ -102,6 +104,7 @@ var VtxStaffModal = function VtxStaffModal(props) {
|
|
|
102
104
|
frameParams: frameParams,
|
|
103
105
|
tabChose: tabChose,
|
|
104
106
|
top: top,
|
|
107
|
+
iframeUrl: iframeUrl,
|
|
105
108
|
tabs: tabsList,
|
|
106
109
|
tagList: [{
|
|
107
110
|
color: 'blue',
|
|
@@ -26,7 +26,7 @@ import "./index.less";
|
|
|
26
26
|
import { sumBy } from 'lodash';
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
var BaseInfo = function BaseInfo(props) {
|
|
29
|
-
var
|
|
29
|
+
var _throwAnalysis$garbag, _alarmAnalysis$violat;
|
|
30
30
|
var _useSettings = useSettings(),
|
|
31
31
|
isDark = _useSettings.isDark;
|
|
32
32
|
var id = props.id,
|
|
@@ -53,13 +53,6 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
53
53
|
throwAnalysis = _BaseService$useThrow.throwAnalysis;
|
|
54
54
|
var _BaseService$useAlarm = BaseService.useAlarmInfo(id, formatType[dateType], date.startOf(formatType[dateType]).format('YYYY-MM-DD'), date.endOf(formatType[dateType]).format('YYYY-MM-DD')),
|
|
55
55
|
alarmAnalysis = _BaseService$useAlarm.alarmAnalysis;
|
|
56
|
-
console.log(throwAnalysis, alarmAnalysis);
|
|
57
|
-
console.log(alarmAnalysis === null || alarmAnalysis === void 0 || (_alarmAnalysis$garbag = alarmAnalysis.garbageValues) === null || _alarmAnalysis$garbag === void 0 ? void 0 : _alarmAnalysis$garbag.map(function (ele) {
|
|
58
|
-
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
59
|
-
name: ele.garbageTypeName,
|
|
60
|
-
value: ele.value || 10
|
|
61
|
-
});
|
|
62
|
-
}));
|
|
63
56
|
return /*#__PURE__*/_jsxs("div", {
|
|
64
57
|
className: "tfd-base",
|
|
65
58
|
children: [/*#__PURE__*/_jsx("div", {
|