@vtx/modals2 5.0.5 → 5.0.7
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-filter/style/index.less +4 -2
- package/lib/_components/vm-map/index.js +1 -1
- package/lib/_components/vm-pie-charts/index.js +8 -4
- package/lib/index.js +1 -0
- package/lib/vtx-car-modal/index.js +4 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -1
- package/lib/vtx-default-modal/index.js +9 -5
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +61 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +7 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js +44 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +104 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +13 -1
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +4 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +162 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX.js +43 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +183 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +97 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +103 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +13 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +62 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +12 -0
- package/lib/vtx-housing-estate-modal/imgs/BOTTLE.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/CAN.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/KRAFT_PAPER_BOX.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/NAPKIN.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/NAPKIN_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/PLASTIC_BAG.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/garbage_default.png +0 -0
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-wr-modal/components/Appraise/assets/blue/bgR.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/blue/bgY.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/blue/pjcs.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/blue/pjfs.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/light/bgR.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/light/bgY.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/light/pjcs.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/assets/light/pjfs.png +0 -0
- package/lib/vtx-wr-modal/components/Appraise/index.js +153 -0
- package/lib/vtx-wr-modal/components/Appraise/index.less +74 -0
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +243 -0
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +86 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/aq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/cq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/dw.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/female.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasNursery.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasNurseryN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasSign.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasSignN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasThird.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/hasThirdN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/lhq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/male.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/rll.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/sd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/ty.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/wd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/wza.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/xbd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/ydl.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/ysl.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/blue/zw.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/aq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/cq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/dw.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/female.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasNursery.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasNurseryN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasSign.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasSignN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasThird.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/hasThirdN.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/lhq.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/male.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/rll.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/sd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/ty.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/wd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/wza.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/xbd.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/ydl.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/ysl.png +0 -0
- package/lib/vtx-wr-modal/components/Base/assets/light/zw.png +0 -0
- package/lib/vtx-wr-modal/components/Base/index.js +125 -0
- package/lib/vtx-wr-modal/components/Base/index.less +327 -0
- package/lib/vtx-wr-modal/components/Score/assets/blue/df.png +0 -0
- package/lib/vtx-wr-modal/components/Score/assets/blue/rs.png +0 -0
- package/lib/vtx-wr-modal/components/Score/assets/light/df.png +0 -0
- package/lib/vtx-wr-modal/components/Score/assets/light/rs.png +0 -0
- package/lib/vtx-wr-modal/components/Score/index.js +111 -0
- package/lib/vtx-wr-modal/components/Score/index.less +68 -0
- package/lib/vtx-wr-modal/components/index.js +4 -0
- package/lib/vtx-wr-modal/index.js +40 -0
- package/lib/vtx-wr-modal/style/index.js +4 -0
- package/lib/vtx-wr-modal/style/index.less +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
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 { Space } from 'antd';
|
|
12
|
+
import dayjs from 'dayjs';
|
|
13
|
+
import ReactEcharts from 'echarts-for-react';
|
|
14
|
+
import groupBy from 'lodash/groupBy';
|
|
15
|
+
import { useState } from 'react';
|
|
16
|
+
import { VmEmpty, VmFilter, VmTitle } from "../../../_components";
|
|
17
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
18
|
+
import { alarmService } from "../../api";
|
|
19
|
+
import "./index.less";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
var MYSDFZB = function MYSDFZB(_ref) {
|
|
22
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
23
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
24
|
+
id = _ref.id;
|
|
25
|
+
var _useSettings = useSettings(),
|
|
26
|
+
isDark = _useSettings.isDark;
|
|
27
|
+
var _useState = useState(dayjs()),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
times = _useState2[0],
|
|
30
|
+
setTimes = _useState2[1];
|
|
31
|
+
var mySumByGarbageTypeAndPeriod = alarmService.useMySumByGarbageTypeAndPeriod({
|
|
32
|
+
housingEstateId: id,
|
|
33
|
+
beginTime: times.format('YYYY-MM-DD 00:00:00'),
|
|
34
|
+
endTime: times.format('YYYY-MM-DD 23:59:59')
|
|
35
|
+
});
|
|
36
|
+
function transferData(data) {
|
|
37
|
+
var chartData = [];
|
|
38
|
+
var xAxis = [];
|
|
39
|
+
var dataGroupByDate = groupBy(data, 'garbageTypeName');
|
|
40
|
+
var count = 0;
|
|
41
|
+
// eslint-disable-next-line guard-for-in
|
|
42
|
+
for (var key in dataGroupByDate) {
|
|
43
|
+
dataGroupByDate[key].forEach(function (item, index) {
|
|
44
|
+
var x = "".concat(item.periodBegin, "-").concat(item.periodEnd);
|
|
45
|
+
if (!xAxis.includes(x)) {
|
|
46
|
+
xAxis.push(x);
|
|
47
|
+
}
|
|
48
|
+
chartData.push([index, count, item.count]);
|
|
49
|
+
});
|
|
50
|
+
count++;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
xAxis: xAxis,
|
|
54
|
+
yAxis: Object.keys(dataGroupByDate),
|
|
55
|
+
chartData: chartData
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
var getDistributionChart = function getDistributionChart(data) {
|
|
59
|
+
var _transferData = transferData(data),
|
|
60
|
+
xAxis = _transferData.xAxis,
|
|
61
|
+
yAxis = _transferData.yAxis,
|
|
62
|
+
chartData = _transferData.chartData;
|
|
63
|
+
var max = Math.max.apply(Math, _toConsumableArray(chartData.map(function (item) {
|
|
64
|
+
return item[2];
|
|
65
|
+
})));
|
|
66
|
+
if (!(chartData !== null && chartData !== void 0 && chartData.length)) return {};
|
|
67
|
+
return {
|
|
68
|
+
tooltip: {
|
|
69
|
+
show: false,
|
|
70
|
+
position: 'top',
|
|
71
|
+
formatter: function formatter(params) {
|
|
72
|
+
var value = params.value,
|
|
73
|
+
marker = params.marker,
|
|
74
|
+
name = params.name;
|
|
75
|
+
var garbageType = yAxis[value[1]];
|
|
76
|
+
return "<div>".concat(garbageType, " ").concat(name, "</div><div>").concat(marker, " \u91CD\u91CF\uFF1A").concat(value[2], "kg</div>");
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
grid: {
|
|
80
|
+
top: 50,
|
|
81
|
+
bottom: 0,
|
|
82
|
+
right: 0,
|
|
83
|
+
left: 0,
|
|
84
|
+
containLabel: true
|
|
85
|
+
},
|
|
86
|
+
xAxis: {
|
|
87
|
+
type: 'category',
|
|
88
|
+
data: xAxis,
|
|
89
|
+
splitArea: {
|
|
90
|
+
show: true
|
|
91
|
+
},
|
|
92
|
+
axisLabel: {
|
|
93
|
+
color: isDark ? '#fff' : '#000'
|
|
94
|
+
},
|
|
95
|
+
axisTick: {
|
|
96
|
+
show: false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
yAxis: {
|
|
100
|
+
type: 'category',
|
|
101
|
+
data: yAxis,
|
|
102
|
+
splitArea: {
|
|
103
|
+
show: true
|
|
104
|
+
},
|
|
105
|
+
axisLabel: {
|
|
106
|
+
color: isDark ? '#fff' : '#000'
|
|
107
|
+
},
|
|
108
|
+
axisTick: {
|
|
109
|
+
show: false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
visualMap: {
|
|
113
|
+
min: 0,
|
|
114
|
+
max: max,
|
|
115
|
+
calculable: true,
|
|
116
|
+
orient: 'horizontal',
|
|
117
|
+
left: 48,
|
|
118
|
+
top: 0,
|
|
119
|
+
inRange: {
|
|
120
|
+
color: ['rgba(34,154,239,0.5)', '#1CC10D', '#009DFF', '#FF9500', '#F5222D']
|
|
121
|
+
},
|
|
122
|
+
textStyle: {
|
|
123
|
+
color: '#fff'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
series: [{
|
|
127
|
+
name: '满溢时段分布',
|
|
128
|
+
type: 'heatmap',
|
|
129
|
+
data: chartData,
|
|
130
|
+
label: {
|
|
131
|
+
show: true
|
|
132
|
+
},
|
|
133
|
+
emphasis: {
|
|
134
|
+
itemStyle: {
|
|
135
|
+
shadowBlur: 10,
|
|
136
|
+
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}]
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
var legend = {
|
|
143
|
+
xs: '少',
|
|
144
|
+
sm: '较少',
|
|
145
|
+
md: '中等',
|
|
146
|
+
lg: '多',
|
|
147
|
+
xxl: '较多'
|
|
148
|
+
};
|
|
149
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
150
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
151
|
+
className: "".concat(classPrefix, "-row"),
|
|
152
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
153
|
+
title: "\u6EE1\u6EA2\u65F6\u6BB5\u5206\u5E03",
|
|
154
|
+
border: false
|
|
155
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
156
|
+
value: times,
|
|
157
|
+
onChange: function onChange(date) {
|
|
158
|
+
setTimes(date);
|
|
159
|
+
}
|
|
160
|
+
})]
|
|
161
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
162
|
+
style: {
|
|
163
|
+
height: '300px',
|
|
164
|
+
position: 'relative'
|
|
165
|
+
},
|
|
166
|
+
children: [!(mySumByGarbageTypeAndPeriod !== null && mySumByGarbageTypeAndPeriod !== void 0 && mySumByGarbageTypeAndPeriod.length) ? /*#__PURE__*/_jsx(VmEmpty, {}) : /*#__PURE__*/_jsx(ReactEcharts, {
|
|
167
|
+
option: getDistributionChart(mySumByGarbageTypeAndPeriod || [])
|
|
168
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
169
|
+
className: "".concat(classPrefix, "-legends"),
|
|
170
|
+
children: /*#__PURE__*/_jsx(Space, {
|
|
171
|
+
size: 8,
|
|
172
|
+
children: ['xs', 'sm', 'md', 'lg', 'xxl'].map(function (item) {
|
|
173
|
+
return /*#__PURE__*/_jsx("div", {
|
|
174
|
+
className: "".concat(classPrefix, "-legends-item ").concat(item),
|
|
175
|
+
children: legend[item]
|
|
176
|
+
}, item);
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
})]
|
|
180
|
+
})]
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
export default MYSDFZB;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
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 _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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { Progress } from 'antd';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { VmFilter, VmTitle } from "../../../_components";
|
|
11
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
12
|
+
import { alarmService } from "../../api";
|
|
13
|
+
import { getPercent } from "../OverView/RightBottom";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
var GDCLXL = function GDCLXL(_ref) {
|
|
17
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
18
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
19
|
+
id = _ref.id;
|
|
20
|
+
var _useSettings = useSettings(),
|
|
21
|
+
isDark = _useSettings.isDark;
|
|
22
|
+
var _useState = useState(dayjs()),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
date = _useState2[0],
|
|
25
|
+
setDate = _useState2[1];
|
|
26
|
+
// 工单处理效率
|
|
27
|
+
var efficiencyData = alarmService.useMyEfficiency({
|
|
28
|
+
housingEstateId: id,
|
|
29
|
+
beginTime: date.format('YYYY-MM-DD 00:00:00'),
|
|
30
|
+
endTime: date.format('YYYY-MM-DD 23:59:59')
|
|
31
|
+
});
|
|
32
|
+
var strokeColor = {
|
|
33
|
+
alarm: {
|
|
34
|
+
'0%': '#FF575F',
|
|
35
|
+
'100%': '#F5222D'
|
|
36
|
+
},
|
|
37
|
+
normal: {
|
|
38
|
+
'0%': '#02E574',
|
|
39
|
+
'100%': '#0FB964'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
43
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
44
|
+
className: "".concat(classPrefix, "-row"),
|
|
45
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
46
|
+
title: "\u5DE5\u5355\u5904\u7406\u6548\u7387",
|
|
47
|
+
border: false
|
|
48
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
49
|
+
value: date,
|
|
50
|
+
onChange: function onChange(value) {
|
|
51
|
+
return setDate(value);
|
|
52
|
+
}
|
|
53
|
+
})]
|
|
54
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
55
|
+
className: "".concat(classPrefix, "-progress"),
|
|
56
|
+
style: {
|
|
57
|
+
justifyContent: 'center'
|
|
58
|
+
},
|
|
59
|
+
children: [{
|
|
60
|
+
name: '满溢处理时长',
|
|
61
|
+
value: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.resolveMinute),
|
|
62
|
+
avg: getPercent(efficiencyData === null || efficiencyData === void 0 ? void 0 : efficiencyData.resolveMinute),
|
|
63
|
+
unit: '分'
|
|
64
|
+
}].map(function (ele, index) {
|
|
65
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
66
|
+
className: "".concat(classPrefix, "-progress-item"),
|
|
67
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
68
|
+
children: ele.name
|
|
69
|
+
}), /*#__PURE__*/_jsx(Progress, {
|
|
70
|
+
type: "dashboard",
|
|
71
|
+
percent: ele.value,
|
|
72
|
+
width: 160,
|
|
73
|
+
strokeWidth: 10,
|
|
74
|
+
gapDegree: 180,
|
|
75
|
+
strokeLinecap: "butt",
|
|
76
|
+
strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
|
|
77
|
+
trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
|
|
78
|
+
showInfo: false
|
|
79
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
80
|
+
className: "".concat(classPrefix, "-progress-desc"),
|
|
81
|
+
style: {
|
|
82
|
+
bottom: 30
|
|
83
|
+
},
|
|
84
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
85
|
+
className: ele.value < ele.avg ? 'white_red' : 'white_green',
|
|
86
|
+
style: {
|
|
87
|
+
fontSize: 16
|
|
88
|
+
},
|
|
89
|
+
children: [ele.value, ele.unit]
|
|
90
|
+
})
|
|
91
|
+
})]
|
|
92
|
+
}, index);
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
export default GDCLXL;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
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 _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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import { sumBy } from 'lodash';
|
|
9
|
+
import { useState } from 'react';
|
|
10
|
+
import { VmFilter, VmPieCharts, VmTitle } from "../../../_components";
|
|
11
|
+
import { alarmService } from "../../api";
|
|
12
|
+
import "./index.less";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var FSSD = function FSSD(_ref) {
|
|
15
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
16
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
17
|
+
id = _ref.id;
|
|
18
|
+
var _useState = useState(dayjs()),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
times = _useState2[0],
|
|
21
|
+
setTimes = _useState2[1];
|
|
22
|
+
|
|
23
|
+
// 事件类型分布
|
|
24
|
+
var mySumByGarbageType = alarmService.useMySumByGarbageType({
|
|
25
|
+
housingEstateId: id,
|
|
26
|
+
beginTime: times.format('YYYY-MM-DD 00:00:00'),
|
|
27
|
+
endTime: times.format('YYYY-MM-DD 23:59:59')
|
|
28
|
+
});
|
|
29
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
30
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
31
|
+
className: "".concat(classPrefix, "-row"),
|
|
32
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
33
|
+
title: "\u6EE1\u6EA2\u5783\u573E\u7C7B\u578B\u5360\u6BD4",
|
|
34
|
+
border: false
|
|
35
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMDatePicker, {
|
|
36
|
+
value: times,
|
|
37
|
+
onChange: function onChange(value) {
|
|
38
|
+
return setTimes(value);
|
|
39
|
+
}
|
|
40
|
+
})]
|
|
41
|
+
}), /*#__PURE__*/_jsx(VmPieCharts, {
|
|
42
|
+
dataList: (mySumByGarbageType === null || mySumByGarbageType === void 0 ? void 0 : mySumByGarbageType.map(function (ele) {
|
|
43
|
+
return {
|
|
44
|
+
name: ele.garbageTypeName || '-',
|
|
45
|
+
value: ele.count || 0
|
|
46
|
+
};
|
|
47
|
+
})) || [],
|
|
48
|
+
title: "\u603B\u6570(\u6B21)",
|
|
49
|
+
total: sumBy(mySumByGarbageType, 'count'),
|
|
50
|
+
name: "\u843D\u5730\u5305\u53D1\u751F\u65F6\u6BB5"
|
|
51
|
+
// loading={loading}
|
|
52
|
+
,
|
|
53
|
+
unit: "\u6B21",
|
|
54
|
+
height: 150,
|
|
55
|
+
legendConfig: {
|
|
56
|
+
right: '12%'
|
|
57
|
+
},
|
|
58
|
+
innerRadius: ['65%', '85%'],
|
|
59
|
+
outerRadius: ['85%', '95%'],
|
|
60
|
+
colors: ['#1890FF', '#1CEF86', '#FF3E48', '#999999'],
|
|
61
|
+
colors2: ['#1890FF20', '#1CEF8620', '#FF3E4820', '#99999920']
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
export default FSSD;
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import dayjs from 'dayjs';
|
|
14
|
+
import groupBy from 'lodash/groupBy';
|
|
15
|
+
import { useState } from 'react';
|
|
16
|
+
import { VmFilter, VmLineCharts, VmTitle } from "../../../_components";
|
|
17
|
+
import { alarmService } from "../../api";
|
|
18
|
+
import "./index.less";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
var TREND = function TREND(_ref) {
|
|
21
|
+
var _ref$classPrefix = _ref.classPrefix,
|
|
22
|
+
classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
|
|
23
|
+
id = _ref.id;
|
|
24
|
+
var _useState = useState([dayjs().subtract(6, 'days'), dayjs()]),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
times = _useState2[0],
|
|
27
|
+
setTimes = _useState2[1];
|
|
28
|
+
// 满溢一周趋势分布
|
|
29
|
+
var mySumByGarbageTypeAndDay = alarmService.useMySumByGarbageTypeAndDay({
|
|
30
|
+
housingEstateId: id,
|
|
31
|
+
beginTime: times[0].format('YYYY-MM-DD 00:00:00'),
|
|
32
|
+
endTime: times[1].format('YYYY-MM-DD 23:59:59')
|
|
33
|
+
});
|
|
34
|
+
var lineData = (mySumByGarbageTypeAndDay || []).map(function (item) {
|
|
35
|
+
return {
|
|
36
|
+
name: item.garbageTypeName || '',
|
|
37
|
+
count: item.count || 0,
|
|
38
|
+
day: item.day || ''
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
var disabledDate = function disabledDate(current) {
|
|
42
|
+
var _times = _slicedToArray(times, 2),
|
|
43
|
+
startDate = _times[0],
|
|
44
|
+
endDate = _times[1];
|
|
45
|
+
if (!startDate || !endDate) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
var tooLate = startDate && current.diff(startDate, 'days') > 7;
|
|
49
|
+
var tooEarly = endDate && endDate.diff(current, 'days') > 7;
|
|
50
|
+
return !!tooEarly || !!tooLate;
|
|
51
|
+
};
|
|
52
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
53
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
54
|
+
className: "".concat(classPrefix, "-row"),
|
|
55
|
+
children: [/*#__PURE__*/_jsx(VmTitle, {
|
|
56
|
+
title: "\u6EE1\u6EA2\u4E00\u5468\u53D8\u5316\u8D8B\u52BF",
|
|
57
|
+
border: false
|
|
58
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMRangePicker, {
|
|
59
|
+
value: times,
|
|
60
|
+
onChange: function onChange(dates) {
|
|
61
|
+
return dates && setTimes(dates);
|
|
62
|
+
},
|
|
63
|
+
disabledDate: disabledDate,
|
|
64
|
+
style: {
|
|
65
|
+
width: '280px'
|
|
66
|
+
}
|
|
67
|
+
})]
|
|
68
|
+
}), /*#__PURE__*/_jsx(VmLineCharts, _objectSpread(_objectSpread({
|
|
69
|
+
height: "250px"
|
|
70
|
+
}, transferLineData(lineData)), {}, {
|
|
71
|
+
// loading={loading}
|
|
72
|
+
unit: "\u6B21",
|
|
73
|
+
legendOption: {
|
|
74
|
+
width: '95%',
|
|
75
|
+
top: 24
|
|
76
|
+
}
|
|
77
|
+
}))]
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
export default TREND;
|
|
81
|
+
var transferLineData = function transferLineData(data) {
|
|
82
|
+
var groupByThrowPoint = groupBy(data || [], 'name');
|
|
83
|
+
var groupByDay = groupBy(data || [], 'day');
|
|
84
|
+
var lineData = [];
|
|
85
|
+
// eslint-disable-next-line guard-for-in
|
|
86
|
+
for (var key in groupByThrowPoint) {
|
|
87
|
+
var item = groupByThrowPoint[key];
|
|
88
|
+
lineData.push({
|
|
89
|
+
name: item[0].name || '',
|
|
90
|
+
data: item.map(function (item) {
|
|
91
|
+
return item.count || 0;
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
// 去除日期中的年
|
|
96
|
+
var xAxis = Object.keys(groupByDay).map(function (item) {
|
|
97
|
+
return item.substring(5);
|
|
98
|
+
});
|
|
99
|
+
return {
|
|
100
|
+
xAxis: xAxis,
|
|
101
|
+
dataList: lineData
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -9,10 +9,12 @@ import { useState } from 'react';
|
|
|
9
9
|
import { VmWrapper } from "../../../_components";
|
|
10
10
|
import useSettings from "../../../_hooks/useSettings";
|
|
11
11
|
import { alarmService } from "../../api";
|
|
12
|
+
import FLZLFX from "./FLZL";
|
|
12
13
|
import FSCSFB from "./FSCSFB";
|
|
13
14
|
import FSSD from "./FSSD";
|
|
14
|
-
import GDCLXL from "./GDCLXL";
|
|
15
15
|
import FSYZQS from "./FSYZQS";
|
|
16
|
+
import GDCLXL from "./GDCLXL";
|
|
17
|
+
import MYFX from "./MYFX";
|
|
16
18
|
import "./index.less";
|
|
17
19
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
18
20
|
var Option = Select.Option;
|
|
@@ -41,9 +43,10 @@ var WGXW = function WGXW(_ref) {
|
|
|
41
43
|
businessPackage: tab,
|
|
42
44
|
areaDimension: 'COMMUNITY'
|
|
43
45
|
});
|
|
46
|
+
console.log(tab);
|
|
44
47
|
return /*#__PURE__*/_jsx("div", {
|
|
45
48
|
className: prefix,
|
|
46
|
-
children: /*#__PURE__*/
|
|
49
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
47
50
|
tabList: tabs === null || tabs === void 0 ? void 0 : tabs.filter(function (ele) {
|
|
48
51
|
return ['LANDING', 'CHUYU_QUALITY', 'OVERFLOW'].includes(ele);
|
|
49
52
|
}).reverse().map(function (ele) {
|
|
@@ -65,7 +68,7 @@ var WGXW = function WGXW(_ref) {
|
|
|
65
68
|
children: ["\u9ED1\u699C\u6392\u540D ", "".concat((blackRank === null || blackRank === void 0 ? void 0 : blackRank.ranking) || 0, "/").concat((blackRank === null || blackRank === void 0 ? void 0 : blackRank.total) || 0)]
|
|
66
69
|
})
|
|
67
70
|
}),
|
|
68
|
-
children: /*#__PURE__*/_jsxs(Row, {
|
|
71
|
+
children: [tab === 'LANDING' && /*#__PURE__*/_jsxs(Row, {
|
|
69
72
|
gutter: [128, 24],
|
|
70
73
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
71
74
|
span: 12,
|
|
@@ -92,7 +95,13 @@ var WGXW = function WGXW(_ref) {
|
|
|
92
95
|
id: id
|
|
93
96
|
})
|
|
94
97
|
})]
|
|
95
|
-
})
|
|
98
|
+
}), tab === 'OVERFLOW' && /*#__PURE__*/_jsx(FLZLFX, {
|
|
99
|
+
classPrefix: prefix,
|
|
100
|
+
id: id
|
|
101
|
+
}), tab === 'CHUYU_QUALITY' && /*#__PURE__*/_jsx(MYFX, {
|
|
102
|
+
classPrefix: prefix,
|
|
103
|
+
id: id
|
|
104
|
+
})]
|
|
96
105
|
})
|
|
97
106
|
});
|
|
98
107
|
};
|
|
@@ -51,4 +51,66 @@
|
|
|
51
51
|
color: #9b9fa8;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
&-btns {
|
|
56
|
+
.ant-radio-button-wrapper {
|
|
57
|
+
background: transparent;
|
|
58
|
+
border: 1px solid var(--modal-head-split-line-color);
|
|
59
|
+
color: var(--modal-title-color);
|
|
60
|
+
|
|
61
|
+
&::before {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.ant-radio-button-wrapper:first-child {
|
|
66
|
+
border-top-left-radius: 6px;
|
|
67
|
+
border-bottom-left-radius: 6px;
|
|
68
|
+
}
|
|
69
|
+
.ant-radio-button-wrapper:last-child {
|
|
70
|
+
border-top-right-radius: 6px;
|
|
71
|
+
border-bottom-right-radius: 6px;
|
|
72
|
+
}
|
|
73
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
74
|
+
border-color: var(--blue-color);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-overflow {
|
|
79
|
+
&-rank {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 250px;
|
|
82
|
+
|
|
83
|
+
&-type {
|
|
84
|
+
width: 56px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&-legends {
|
|
89
|
+
position: absolute;
|
|
90
|
+
right: 0;
|
|
91
|
+
top: 6px;
|
|
92
|
+
&-item {
|
|
93
|
+
width: 44px;
|
|
94
|
+
height: 20px;
|
|
95
|
+
line-height: 19px;
|
|
96
|
+
color: #fff;
|
|
97
|
+
text-align: center;
|
|
98
|
+
|
|
99
|
+
&.xs {
|
|
100
|
+
background: rgba(34, 154, 239, 0.5);
|
|
101
|
+
}
|
|
102
|
+
&.sm {
|
|
103
|
+
background: #1cc10d;
|
|
104
|
+
}
|
|
105
|
+
&.md {
|
|
106
|
+
background: #009dff;
|
|
107
|
+
}
|
|
108
|
+
&.lg {
|
|
109
|
+
background: #ff9500;
|
|
110
|
+
}
|
|
111
|
+
&.xxl {
|
|
112
|
+
background: #f5222d;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
54
116
|
}
|
|
@@ -30,6 +30,17 @@ var WGGS = function WGGS(_ref) {
|
|
|
30
30
|
var onTabChange = function onTabChange(tab) {
|
|
31
31
|
setTab(tab);
|
|
32
32
|
};
|
|
33
|
+
var disabledDate = function disabledDate(current) {
|
|
34
|
+
var _times = _slicedToArray(times, 2),
|
|
35
|
+
startDate = _times[0],
|
|
36
|
+
endDate = _times[1];
|
|
37
|
+
if (!startDate || !endDate) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
var tooLate = startDate && current.diff(startDate, 'days') > 7;
|
|
41
|
+
var tooEarly = endDate && endDate.diff(current, 'days') > 7;
|
|
42
|
+
return !!tooEarly || !!tooLate;
|
|
43
|
+
};
|
|
33
44
|
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
34
45
|
tabList: [{
|
|
35
46
|
label: '所有投放点',
|
|
@@ -44,6 +55,7 @@ var WGGS = function WGGS(_ref) {
|
|
|
44
55
|
onChangeTab: onTabChange,
|
|
45
56
|
filterType: "rangePicker",
|
|
46
57
|
dateValue: times,
|
|
58
|
+
disabledDate: disabledDate,
|
|
47
59
|
filterChange: function filterChange(date) {
|
|
48
60
|
if (date[1].diff(date[0], 'd') > 7) {
|
|
49
61
|
message.warning('时间跨度不能超过7天');
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -52,7 +52,9 @@ var VtxStaffModal = function VtxStaffModal(props) {
|
|
|
52
52
|
_props$tabChose = props.tabChose,
|
|
53
53
|
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose,
|
|
54
54
|
_props$iframeUrl = props.iframeUrl,
|
|
55
|
-
iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl
|
|
55
|
+
iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl,
|
|
56
|
+
_props$width = props.width,
|
|
57
|
+
width = _props$width === void 0 ? null : _props$width;
|
|
56
58
|
var _useGetConfig = useGetConfig('staff', tabs),
|
|
57
59
|
tabsData = _useGetConfig.tabsData;
|
|
58
60
|
var _BaseService$useDetai = BaseService.useDetailInfo(id),
|
|
@@ -95,6 +97,7 @@ var VtxStaffModal = function VtxStaffModal(props) {
|
|
|
95
97
|
return /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
96
98
|
id: id,
|
|
97
99
|
type: "staff",
|
|
100
|
+
width: width,
|
|
98
101
|
title: title,
|
|
99
102
|
subTitle: subTitle,
|
|
100
103
|
visible: visible,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|