@vtx/modals2 5.0.44 → 5.0.45
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.
|
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { ChartIcon, ListIcon } from "../../../_util/iconSvgHtml";
|
|
12
12
|
import { useSetState } from 'ahooks';
|
|
13
|
-
import { Col, Row, Space, Spin } from 'antd';
|
|
13
|
+
import { Col, Row, Space, Spin, message } from 'antd';
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
16
|
import * as echarts from 'echarts';
|
|
@@ -434,6 +434,13 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
|
|
|
434
434
|
},
|
|
435
435
|
filterType: 'rangePicker',
|
|
436
436
|
filterChange: function filterChange(date) {
|
|
437
|
+
if (!(date !== null && date !== void 0 && date[0]) || !(date !== null && date !== void 0 && date[1])) {
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
if (date[1].diff(date[0], 'd') > 7) {
|
|
441
|
+
message.warning('时间跨度不能超过7天');
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
437
444
|
setState({
|
|
438
445
|
startDate: date[0],
|
|
439
446
|
endDate: date[1]
|