@zgfe/modules-interval 1.0.3-alpha.15 → 1.0.3-alpha.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.
|
@@ -98,11 +98,11 @@ var IntervalEventChart = function IntervalEventChart(props) {
|
|
|
98
98
|
showList: showList,
|
|
99
99
|
dataSourceList: dataSourceList,
|
|
100
100
|
params: params
|
|
101
|
-
}),
|
|
101
|
+
}), /*#__PURE__*/React.createElement(EventTable, {
|
|
102
102
|
dataSource: dataSource,
|
|
103
103
|
searchData: params,
|
|
104
104
|
showList: [],
|
|
105
105
|
changeShow: onChangeShow
|
|
106
|
-
})
|
|
106
|
+
}));
|
|
107
107
|
};
|
|
108
108
|
export default IntervalEventChart;
|
|
@@ -19,7 +19,7 @@ import { AnalysisMode } from "./types";
|
|
|
19
19
|
import { IntervalContext } from "../../types";
|
|
20
20
|
var classPrefix = 'top-panel-interval';
|
|
21
21
|
var TopPanel = function TopPanel(props) {
|
|
22
|
-
var _props$defaultValue, _props$defaultValue2, _props$defaultValue3, _defaultValue$associa, _defaultValue$associa2, _finalSearchData$asso, _finalSearchData$asso2, _defaultValue$associa3, _finalSearchData$asso3, _defaultValue$associa4, _finalSearchData$asso4, _defaultValue$associa5, _finalSearchData$asso5, _defaultValue$associa6, _finalSearchData$asso6, _defaultValue$associa7, _finalSearchData$asso7, _defaultValue$associa8, _finalSearchData$asso8, _defaultValue$associa9, _finalSearchData$asso9, _defaultValue$associa10, _finalSearchData$asso10, _defaultValue$dimensi, _finalSearchData$dime, _defaultValue$dimensi2, _finalSearchData$dime2, _defaultValue$dimensi3, _finalSearchData$dime3, _defaultValue$dimensi4, _finalSearchData$dime4;
|
|
22
|
+
var _props$defaultValue, _props$defaultValue2, _props$defaultValue3, _defaultValue$associa, _defaultValue$associa2, _finalSearchData$asso, _finalSearchData$asso2, _defaultValue$associa3, _finalSearchData$asso3, _defaultValue$associa4, _finalSearchData$asso4, _defaultValue$associa5, _finalSearchData$asso5, _defaultValue$associa6, _finalSearchData$asso6, _defaultValue$associa7, _finalSearchData$asso7, _defaultValue$associa8, _finalSearchData$asso8, _defaultValue$associa9, _finalSearchData$asso9, _defaultValue$associa10, _finalSearchData$asso10, _defaultValue$dimensi, _finalSearchData$dime, _defaultValue$dimensi2, _finalSearchData$dime2, _defaultValue$dimensi3, _finalSearchData$dime3, _defaultValue$dimensi4, _finalSearchData$dime4, _currentParams$start2, _currentParams$end2, _currentParams$start3, _currentParams$end3;
|
|
23
23
|
var defaultValue = props.defaultValue,
|
|
24
24
|
loading = props.loading,
|
|
25
25
|
collapseRef = props.collapseRef,
|
|
@@ -72,6 +72,10 @@ var TopPanel = function TopPanel(props) {
|
|
|
72
72
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
73
73
|
currentParams = _useState18[0],
|
|
74
74
|
setCurrentParams = _useState18[1];
|
|
75
|
+
var _useState19 = useState(true),
|
|
76
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
77
|
+
searchDisabled = _useState20[0],
|
|
78
|
+
setSearchDisabled = _useState20[1];
|
|
75
79
|
// 用户组和事件变更
|
|
76
80
|
var onValuesChange = function onValuesChange(data, allData) {
|
|
77
81
|
var _data = {};
|
|
@@ -107,6 +111,27 @@ var TopPanel = function TopPanel(props) {
|
|
|
107
111
|
} : undefined
|
|
108
112
|
}));
|
|
109
113
|
};
|
|
114
|
+
useEffect(function () {
|
|
115
|
+
var _currentParams$start, _currentParams$start$, _currentParams$start$2, _currentParams$end, _currentParams$end$fi, _currentParams$end$fi2;
|
|
116
|
+
var conditionValid = true;
|
|
117
|
+
currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$start = currentParams.start) === null || _currentParams$start === void 0 ? void 0 : (_currentParams$start$ = _currentParams$start.filters) === null || _currentParams$start$ === void 0 ? void 0 : (_currentParams$start$2 = _currentParams$start$.conditions) === null || _currentParams$start$2 === void 0 ? void 0 : _currentParams$start$2.forEach(function (item) {
|
|
118
|
+
var _item$values;
|
|
119
|
+
if (!/null/.test(item.operator || '') && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
|
|
120
|
+
conditionValid = false;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$end = currentParams.end) === null || _currentParams$end === void 0 ? void 0 : (_currentParams$end$fi = _currentParams$end.filters) === null || _currentParams$end$fi === void 0 ? void 0 : (_currentParams$end$fi2 = _currentParams$end$fi.conditions) === null || _currentParams$end$fi2 === void 0 ? void 0 : _currentParams$end$fi2.forEach(function (item) {
|
|
124
|
+
var _item$values2;
|
|
125
|
+
if (!/null/.test(item.operator || '') && !((_item$values2 = item.values) !== null && _item$values2 !== void 0 && _item$values2.length)) {
|
|
126
|
+
conditionValid = false;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
if (loading || !(currentParams !== null && currentParams !== void 0 && currentParams.start) || !(currentParams !== null && currentParams !== void 0 && currentParams.start.id) || !(currentParams !== null && currentParams !== void 0 && currentParams.end) || !(currentParams !== null && currentParams !== void 0 && currentParams.end.id) || !conditionValid || relevancy && !(currentParams !== null && currentParams !== void 0 && currentParams.associatedNextAttr) && !(currentParams !== null && currentParams !== void 0 && currentParams.associatedNextAttr) || analysisType === 'eventProp' && !currentSubject) {
|
|
130
|
+
setSearchDisabled(true);
|
|
131
|
+
} else {
|
|
132
|
+
setSearchDisabled(false);
|
|
133
|
+
}
|
|
134
|
+
}, [currentParams]);
|
|
110
135
|
var resetting = function resetting() {
|
|
111
136
|
form.resetFields();
|
|
112
137
|
form.setFieldsValue({
|
|
@@ -252,6 +277,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
252
277
|
keyField: "id",
|
|
253
278
|
onChange: function onChange(val) {
|
|
254
279
|
setCurrentSubject(val);
|
|
280
|
+
setRelevancy(false);
|
|
255
281
|
form.setFieldsValue({
|
|
256
282
|
start: undefined,
|
|
257
283
|
end: undefined
|
|
@@ -304,6 +330,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
304
330
|
value: bizAttributeSelectorValue,
|
|
305
331
|
enableDelete: true,
|
|
306
332
|
onChange: onChangeAttr,
|
|
333
|
+
key: "".concat(currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$start2 = currentParams.start) === null || _currentParams$start2 === void 0 ? void 0 : _currentParams$start2.id, "-").concat(currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$end2 = currentParams.end) === null || _currentParams$end2 === void 0 ? void 0 : _currentParams$end2.id, "-pre"),
|
|
307
334
|
onDelete: function onDelete() {
|
|
308
335
|
onChangeAttr(undefined, 'associatedPreAttr');
|
|
309
336
|
}
|
|
@@ -322,6 +349,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
322
349
|
value: bizAttributeSelectorValue,
|
|
323
350
|
enableDelete: true,
|
|
324
351
|
onChange: onChangeAttr,
|
|
352
|
+
key: "".concat(currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$start3 = currentParams.start) === null || _currentParams$start3 === void 0 ? void 0 : _currentParams$start3.id, "-").concat(currentParams === null || currentParams === void 0 ? void 0 : (_currentParams$end3 = currentParams.end) === null || _currentParams$end3 === void 0 ? void 0 : _currentParams$end3.id, "-next"),
|
|
325
353
|
onDelete: function onDelete() {
|
|
326
354
|
onChangeAttr(undefined, 'associatedNextAttr');
|
|
327
355
|
}
|
|
@@ -353,6 +381,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
353
381
|
enableEventProp: true,
|
|
354
382
|
enableUserProp: analysisType === 'user',
|
|
355
383
|
enableEnvProp: true,
|
|
384
|
+
key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-dimension"),
|
|
356
385
|
eventIdList: startId === endId ? [startId] : [startId, endId],
|
|
357
386
|
value: bizAttributeSelectorValue,
|
|
358
387
|
enableDelete: true,
|
|
@@ -374,7 +403,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
374
403
|
onClick: resetting
|
|
375
404
|
}, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(Button, {
|
|
376
405
|
loading: loading || subjectLoading,
|
|
377
|
-
disabled:
|
|
406
|
+
disabled: searchDisabled,
|
|
378
407
|
type: "primary",
|
|
379
408
|
onClick: function onClick() {
|
|
380
409
|
props.onChange(currentParams, (finalSearchData === null || finalSearchData === void 0 ? void 0 : finalSearchData.chartType) === 'boxplot' ? true : false);
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
.panel-form-interval {
|
|
20
20
|
&-item {
|
|
21
21
|
.ant-form-item-label {
|
|
22
|
-
padding-left: 24px;
|
|
22
|
+
padding-left: 24px !important;
|
|
23
23
|
font-weight: 500;
|
|
24
24
|
}
|
|
25
25
|
.ant-form-item-control-input-content {
|
|
26
26
|
height: 40px;
|
|
27
|
-
padding: 0 24px;
|
|
28
|
-
line-height: 40px;
|
|
27
|
+
padding: 0 24px !important;
|
|
28
|
+
line-height: 40px !important;
|
|
29
29
|
.biz-select-handle {
|
|
30
30
|
display: inline-block;
|
|
31
31
|
width: 208px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.3-alpha.
|
|
3
|
+
"version": "1.0.3-alpha.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"umi-request": "^1.4.0",
|
|
63
63
|
"yorkie": "^2.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f58883f81626f6976b35134494d53fcaa5fc1ea0"
|
|
66
66
|
}
|