@zgfe/modules-interval 1.0.0-interval.16 → 1.0.0-interval.17
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.
|
@@ -11,12 +11,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import { Form, Button
|
|
14
|
+
import { Form, Button } from 'antd';
|
|
15
15
|
import { BizAttributeSelector, BizUserGroupHeader } from '@zgfe/business-lib';
|
|
16
16
|
import EventFilter from "../../components/eventFilter";
|
|
17
17
|
import "./styles/index.less";
|
|
18
|
-
import _ from 'lodash';
|
|
19
|
-
import { transformData } from "../content/utils";
|
|
20
18
|
var classPrefix = 'top-panel-interval';
|
|
21
19
|
var TopPanel = function TopPanel(props) {
|
|
22
20
|
var _defaultValue$associa, _defaultValue$associa2, _defaultValue$associa3, _defaultValue$associa4, _defaultValue$associa5, _defaultValue$associa6, _defaultValue$associa7, _defaultValue$associa8, _defaultValue$dimensi, _defaultValue$dimensi2, _defaultValue$dimensi3, _defaultValue$dimensi4;
|
|
@@ -74,18 +72,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
74
72
|
setRelevancyFl(true);
|
|
75
73
|
}
|
|
76
74
|
if (allData.userGroup) {
|
|
77
|
-
_data.userGroup =
|
|
78
|
-
if (
|
|
79
|
-
if (allData.userGroup[0].length > 20) {
|
|
80
|
-
message.warning('最多添加20个');
|
|
81
|
-
}
|
|
82
|
-
var app = [transformData(allData.userGroup)];
|
|
83
|
-
allData.userGroup = app;
|
|
84
|
-
} else {
|
|
85
|
-
allData.userGroup = allData === null || allData === void 0 ? void 0 : allData.userGroup.map(function (group) {
|
|
86
|
-
return group === null || group === void 0 ? void 0 : group.id;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
75
|
+
_data.userGroup = allData.userGroup;
|
|
76
|
+
if (_data.userGroup.length <= 0) _data.userGroup = [0];
|
|
89
77
|
}
|
|
90
78
|
props.onChange(allData, (finalSearchData === null || finalSearchData === void 0 ? void 0 : finalSearchData.chartType) === 'boxplot' ? true : false);
|
|
91
79
|
};
|
|
@@ -155,7 +143,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
155
143
|
className: "panel-form",
|
|
156
144
|
layout: "vertical",
|
|
157
145
|
initialValues: {
|
|
158
|
-
userGroup:
|
|
146
|
+
userGroup: userGroup ? userGroup : [0],
|
|
159
147
|
start: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.start,
|
|
160
148
|
end: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.end,
|
|
161
149
|
associatedNextAttr: _objectSpread(_objectSpread({}, defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.associated_next_attr), {}, {
|
|
@@ -187,9 +175,6 @@ var TopPanel = function TopPanel(props) {
|
|
|
187
175
|
paddingLeft: 0
|
|
188
176
|
}
|
|
189
177
|
}, /*#__PURE__*/React.createElement(BizUserGroupHeader, {
|
|
190
|
-
value: [{
|
|
191
|
-
id: 0
|
|
192
|
-
}],
|
|
193
178
|
enableTags: true,
|
|
194
179
|
max: 1
|
|
195
180
|
})), /*#__PURE__*/React.createElement("div", {
|
package/dist/esm/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.0-interval.
|
|
3
|
+
"version": "1.0.0-interval.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/uuid": "^9.0.2",
|
|
44
44
|
"@umijs/fabric": "^2.8.1",
|
|
45
45
|
"@umijs/test": "^3.0.5",
|
|
46
|
-
"@zgfe/business-lib": "1.1.81-page.
|
|
46
|
+
"@zgfe/business-lib": "1.1.81-page.9",
|
|
47
47
|
"@zgfe/modules-demo-manage": "^1.0.1",
|
|
48
48
|
"antd": "^4.22.6",
|
|
49
49
|
"dumi": "^1.1.0",
|